Buttons action_listen in actions.py

hello I need to implement this:

class my_fallback_action(Action):

def name(self):
    return "my_fallback_action"

def run(self, dispatcher, tracker, domain):
    buttons = [{"title": "text1", "payload": '/action_listen'}, {"title":"text2", "payload": '/action_handoff']
    message = "text3"
    dispatcher.utter_button_message(message, buttons)
    return [] 

but i dont know how.

Hi @nicolas,

with which parts are you struggling? The more information you can give, the better is the quality of the answers which the community can provide :slight_smile:

I need to execute an action within actions.py with the confirmation of the user with the buttons. You understand me?

hi @nicolas,

I understand you :slight_smile: However, your code snippet you posted above seems right to me. Are you getting any errors with it?