How to get actions from dynamically created button in RASA

0

I have create multiple button response with following , now how can get the action from clicking on this button click

class ActionSearchCat(Action):
    def name(self):
        return "action_search_cat"

    def run(self, dispatcher, tracker, domain):
        buttons = []
        resp = requests.get('http://localhost:3001/api/categoryList/0')
        if resp.status_code != 200:
            # This means something went wrong.
            raise ApiError('GET /tasks/ {}'.format(resp.status_code))

        msg = resp.json().get('category_list').get('text')
        for list in resp.json().get('category_list').get('choices').items():
            for title, value in list.items():
                buttons.append({"title": title, "payload": "/"+value})

        dispatcher.utter_button_template(msg,buttons)
        return []
1 Like

did you got this fixed?i have the same issues