Buttons in custom actions - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Learn more here →

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…

Related topics

Topic Replies Views Activity
Button in custom action
Rasa Open Source
2 2.5k Sep 2018
Dispatcher.utter_button_message
Rasa Open Source
4 2.7k Feb 2020
Rasa Dynamic buttons in Domain.yml file
Rasa Open Source
1 769 Aug 2020
How to use custom payload responses with buttons?
Rasa Open Source
4 2.4k Jun 2021
How to create a button in actions.py
Rasa Open Source
9 1.6k Apr 2020