Hi, is there any way to get the exact input receivend from the user? I am using contex.input but is returning error.
Thanks for your help
Hi, is there any way to get the exact input receivend from the user? I am using contex.input but is returning error.
Thanks for your help
Hello @lorenacursos ,
There are few ways you can capture the user’s input from context depending on the dialog and bot design.
In some cases, you can obtain the input from BotUserSession - context.session.BotUserSession.lastMessage.messagePayload.message.body
In other cases, you can set up an entity for the user input. so that we have it in entity itself.
It is to be noted that the lastMessage will be overridden if the user provides any further input so you need to capture the lastMessage data at the right node.
Hope this helps!!