How to disable user input text options and select input only from buttons?

Sometimes I want to take user input from buttons not from user text as in the cases of multiple yes/no question the intent get misclassified .

On way would be to have a custom action checking if the user message was exactly the button text and if not, you tell the user to use the buttons. Having said this, I am very surprised that simple yes/no intents would get misclassified. What’s your NLU pipeline and Rasa version?

There are chances that the user provides some other input other than the buttons! So, is there any way to disable user inputs and maintain the conversation flow only using buttons?

@AryaPulkit I think for this you’d have to modify your chat window / front end. Otherwise, you could train rasa to just repeat the question if anything other than the button intents come back.

1 Like

can you please provide some code how to deal with this with front-end… and also can you please give a example for train rasa to just repeat the question