Display message based on intent

Hello,

I have three dialog tasks (get transactions, get balance, get details) and at end of each task, I want to ask the user “Do you want to <> of your other accounts?”
37%20AM

Is it possible to create a generic Confirmation node to display this mesage based on the current intent?

Thanks.

@pastapareo
Use the concept of BotUserSession variables ( refer https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/using-session-and-context-variables-in-tasks/ )
Use a script node to update this variable each time you enter a task.
Now use a message node’s java script option to get the value from the above variable to form a string before displaying a message. refer: https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/working-with-the-message-nodes/#Step_3_Configuring_the_Instance_Properties

Thanks @swagata.sengupta
This worked. And I also tried using context.intent