How to get the intent of previous message in rasa custom action?

I want to get the intent of only one of the previous input by the user. the current input we can get using-

intent = tracker.latest_message['intent'].get('name')

Is there something similar to above as -

tracker.previous_message['intent'].get('name')

Please see the following threads :slight_smile: