How to get intent suffix from inside an action?


I was wondering if there was a way to get suffix of the current intent from inside of an action?


By suffix you mean name? How about tracker.latest_message['intent'].get('name')?

Hi @GeovanaRamos. No I meant suffix for example for intent chitchat/hi “hi” is the suffix. I have been able to do it though using the same (latest_message) property of the tracker. Thanks!

For people interested in this, this is how you can do it:

1 Like

Getting following error If trying to do with your method

Error: print(tracker.latest_message[‘response_selector’][‘chitchat’][‘full_retrieval_intent’].split(’/’)[1]) KeyError: 'chitchat’