Buttons in custom actions - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum
👋 Introducing the Rasa Playground
Buttons in custom actions
You have selected 0 posts.
3.6k views
post by seera on Sep 21, 2020
Anyone help to create buttons in custom actions. I would like display the api response like button format.
3.6k views
post by alkak95 on Sep 21, 2020
@seera you can hit the api and create the buttons in your custom actions. Refer the code snippet below
buttons = []
#append the response of API in the form of title and payload
buttons.append({"title": 'any_text' , "payload": 'payload_value'})
#then display it using dispatcher
dispatcher.utter_message(text= "message you want to display" , buttons=buttons)
post by seera on Sep 21, 2020
thank you.
post by seera on Sep 22, 2020
thank you @alkak95 buttons are working fine…