How can display buttons in that actions using the newest version of rasa

class FindFacilityTypes(Action):

"""This action class allows to display buttons for each facility type

for the user to chose from to fill the facility_type entity slot."""

def name(self) -> Text:
    """Unique identifier of the action"""

    return "find_facility_types"

def run(self,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any]) -> List:

    buttons = []
    for t in FACILITY_TYPES:
        facility_type = FACILITY_TYPES[t]
        payload = "/inform{\"facility_type\": \"" + facility_type.get(
            "resource") + "\"}"

            {"title": "{}".format(facility_type.get("name").title()),
             "payload": payload})

    # TODO: update rasa core version for configurable `button_type`
    dispatcher.utter_button_template("utter_greet", buttons, tracker)
    return []

Hi, you can refer to this section of documentation - Domains Also, it’s upto the output channel to interpret buttons from the payload coming from Rasa and render them on the UI.

thx but I would like to use in my actions to get information for each button has been select

1 Like

Did you get any update on this?i have the same problem