I have an action that receives large amounts of information. Currently I only output the first record, but what if I want to add a “Would you like to read more?” functionality using buttons.
user: <input> bot: <output1> bot: Would you like me to tell you more? (I have 4 more source(s) remaining! :D) <yes/no> button #suppose yes bot: <output2> bot: Would you like me to tell you more? (I have 3 more source(s) remaining! :D) <yes/no> button #suppose no bot: okay, what else would you like to query?
I tried to loop it within the custom action thinking that
utter_button_template would wait for user input to set a slot I have made called
responses, but it seems that
utter_button_message doesn’t wait for the user input to set the yes/no value to responses.