How to handle manual user input in button related messages in custom action?


I have created a button in custom actions, which I then prompt to the user using dispatcher.utter_button_message().

Is there a way to handle cases where the user decides to type something instead of pressing one of the buttons? I know there is a validity function that is used with forms. Is there something similar for individual buttons?

Well, the buttons do nothing other than ‘typing’ the content of payload for the user, so it always depends on how you handle the input.

But it’s afaik possible to lock the text input, which effectively just allows the user to hit a button. Havent used that so far, so Im not sure how to do it exactly.

1 Like