Get current intent name in custom action

Hello everyone, I need to get current intent name and use it in custom action, how to do so ? I’m using rasa-nlu 0.11.4/ rasa-core 0.8.2 PS: tracker.latest_message[‘intent’].get(‘name’) don’t work…

Hello, I have it working like this:

class Action_test(Action):
def name(self):
    return 'action_test'

def run(self, dispatcher, tracker, domain):
    intent = tracker.latest_message['intent'].get('name')
    ...
return []
1 Like