Confidence level of intent

Hi… i want to pick up the top 3 confidence levels of the intents based on the user’s query and want to store it in a list in my file for a particular use case.

I didnt get anything how can I pick the confidence level and store it in form of a variable or a list.

All I found was how to print the confidence level of any user’s query using the rasa shell nlu command.

Kindly help,

In a custom action, you can find those using tracker.latest_message

I did something similar here in the function called get_user_message_info in line 255.

1 Like