Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get more than one intent match in dialogflow

I'm wondering if it's possible to somehow get a list from dialogflow, through an API call, that can test the user input against all intents (like detectIntent) and get more then just the #1 match.

I'm trying to write middleware that can serve as an extra layer of confirmation where every confidence level between < 0.3 and > 0.7 will trigger the bot say "I'm not sure what you meant, did you mean one of the following?" and then in the quick options it would list a training phrase from the top 3 matches.

Is this possible somehow through the API or the dialogflow console?

like image 976
Rachelle Janssen Avatar asked Oct 15 '25 03:10

Rachelle Janssen


1 Answers

It is not possible with Dialogflow. Dialogflow will return just the matched intent and it's confidence score.

You may want to check out LUIS or RASA for this functionality, they return the confidence score of all the intents.

You can deploy agent with same intents on LUIS/RASA.
You can first hit dialogflow, if it return Fallback intent, then hit LUIS/RASA for suggesting did you mean one of these.

like image 78
sid8491 Avatar answered Oct 17 '25 23:10

sid8491



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!