How to use the response in the next message?

Hello,

How can I use the response of the user in the next message? For example, I want to ask the user where is from and then repeat that place:

Bot: Where are you from?
User: New York
Bot: {userResponse} is a great place to live

I am guessing I need to save it as an entity and then use that entity later, but I can’t figure it out from documentation

Hi @milancheee,

The user inputs/messages would be stored in the context object of the bot. You can retrieve the values by using the correct path.
Please refer the following link for further reference:

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/context-object/

Let us know if you need any further information.

Regards,
Yoga Ramya.

So I have an intent called “name”, where I ask the user what is their name, and in the next intent, I set a bot response:

Hello context.intent.<< name >>

Should that not show Hello Yoga (if the answer to the first question was Yoga)

Hi @milancheee,

If you are asking for input from the user, you would be using an Entity node. Then you would need to set the bot response as

Hello {{context.entities.EntityName}}

Please go through the document link given above.

Regards,
Yoga Ramya.