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…

1 Like

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

Hello, can you help me plz I want to display the intent name in the utter_slots_values How can I do this? @rctatman ? Thanks in advance