Hello Rasa community!
I’m trying to add a feature in my chatbot so that when the confidence of the intent matching is below 50% the chatbot will send a response back saying something like “I’m not really sure what you are asking for. Would you like information about X?” where X would be some text about the intent it matched.
I have already implemented a minimum nlu and core threshold for the Fallback Policy which gave me the idea I previously described. Does anyone know a way to check the confidence of each message-to-intent matching? Also, how can I use a text describing each intent to use in this feature? For instance, let’s say I have two intents, one related to weather and the other related to public transport. When the intent confidence is below 50% for both intents the desired output of the feature would be:
“I’m not really sure what you are asking for. Would you like some info about the weather?”
and
“I’m not really sure what you are asking for. Would you like some info about public transport?”
The text describing each intent must be dynamically included in the response. Any ideas and suggestions will be highly appreciated!