Get previous intent from Rasa action?

I have an intent called intent_yes which is shared in several different conversational flows. When the user says “Yes” or “Yeah” etc., it will call my webhook / Rasa action. But, I need to know what they’ve said yes to. How can we get the previous intent name from a Rasa webhook action?

1 Like

Hey @neilrao42 can you try this? intent = tracker.latest_message[‘intent’].get(‘name’) It’s give you a latest message.

Does anyone have answer to this?