User select s buttons from previous message

Hi,

I have created a bot and certain messages from the bot has buttons. The user gives a different text input or even selects a button from that bot message. After the bot responded, the user is scrolling up and selecting button from the previous bot message. Since the bot was not configured in that flow, the intent is failing.

Can you please help me fix this issue by disabling the button options from the bot message once the user gave any input and not let them access buttons from previous message.

Thanks,
Sushma.

Hi @sushma.polakam ,

Thank you for reaching out to Kore.ai Community.
Could you please try using the context variables to store information about the state of the conversation.

When the user provides input, set a context variable to indicate that input has been received.
This can be done in the dialog flow where you process the user messages.

Example:
Set context variable ‘userInputReceived’ to ‘true’ and this will process the request.

In message node where you have buttons, try to include logic to check the context variable before displaying the buttons. If the variable indicates that input has been received, do not include the buttons.

By using context variables and conditional logic, you will be able to display buttons based on whether the user has provided input in the current conversation context.

We recommend you to adjust the conditions and context variable names based on your specific use case and requirement

Please try and let us know if that works for your requirement.

Please refer to the below documentation for more information on using context variables.

Thank you,
Srujan Madderla
Kore.ai Community Team