I need to display a set of buttons in custom action using utter_button_template(). These buttons will be used to fill a slot. I am facing problem in how to define the parameters for utter_button_template(), as for now my code flow doesn’t show any error but doesn’t even show the buttons in front end. Below is the code I am using : class action_CustomAction(Action): def name(self): return ‘action_’
buttons = [{'title': 'title1', 'payload': '/intent{\"Entity_name\": "payload1"}'},{'title': 'title2', 'payload':
'/intent{\"Entity_name\": "payload2"}'}]
def run(self, dispatcher, tracker, domain):
if tracker.get_slot('Slot_name') == 'yes':
dispatcher.utter_button_template('utter_message', 'buttons', tracker)
else:
dispatcher.utter_button_template('utter_message_1', 'buttons', tracker)
return [SlotSet("Other_slot","buttons")]