Can someone share updated version of below code. I want to build dynamic buttons in RASA

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") + "\"}"

        buttons.append(
            {"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 @Parul_Chaudhari , you can send buttons using the dispatcher.utter_message(buttons=buttons) method.