Extracting faq sub-intent from a custom action

Hello community

I am using the following configuration: Rasa Version : 2.2.9 Rasa SDK Version : 2.2.0 Rasa X Version : None Python Version : 3.7.6 Operating System : Linux-5.4.0-71-generic-x86_64-with-debian-bullseye-sid

I would like to get a faq or chitchat sub-intent (not intent) form a custom action. When I use this command :

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

I get the intent faq… I would like to get a sub-intent like faq/ask_weather or faq/ask_name instead or even ask_weather or ask name.

Can you help me?