Hi everyone, I want custom number of buttons with custom values(taken from a database) and want to set slots with the values of the buttons. I know we can do this as a template inside the domain.yml file as:
utter_ask_operation:
- buttons:
- payload: ‘/choose{“operation”: “max”}’ title: Max
- payload: ‘/choose{“operation”: “min”}’ title: Min
- payload: ‘/choose{“operation”: “average”}’ title: Average
- payload: ‘/choose{“operation”: “count”}’ title: Count
- payload: ‘/choose{“operation”: “sum”}’ title: Sum text: what operation would you like?
where ‘operation’ is a slot.
How can we achieve the same using dispatcher.utter_button_message() inside my custom action?