How to get the current intent value of the user in custom action in rasa 3.x?

i tried many ways to get the value of an intent in custom action, all possible tracker ways is not working, it replies a none value. is there a change in rasa 3.x on how to get the value of an intent in custom action, please do let me know, thanks

problem solved. anyone who is facing to get the value of intent of latest message of user input in custom action you can use

x=tracker.latest_message.get('text')

Here’s some example code.