Home / DialogFlow ES / Conversation Design / What if the exact text in the user phrase does not fire the intent?
Conversation Design | DialogFlow ES

What if the exact text in the user phrase does not fire the intent?

I got a comment recently on my post about intents which don’t match like you might expect.

This is an extremely unlikely scenario. But here are some troubleshooting tips.

Make sure the input context matches

In a previous article, I shared an example of an intent in my SupportBot where people express interest in coaching.

The intent definition for the “Coaching” intent looks like this:

For this intent to fire, the context must already be set to awaiting_service_choice. If you have a wrong context set, the intent will not fire even if the words are an exact match.

Make sure the previous intent was mapped correctly

When you set contexts in this fashion, in fact, usually it is quite likely something went wrong in the previous intent itself.

For the example I have shown above, the user needs to have first seen a list of menu options on the page before choosing coaching. When the menu intent fires, it sets the output context to awaiting_service_choice which in turn allows the next input to match the correct intent.

If the menu intent never fired, then the output context awaiting_service_choice was never set. This means you cannot map the “Coaching” intent in the next step.

Make sure you have Reset Contexts if you are working inside the Dialogflow console

If you are doing your testing inside the Dialogflow console, remember to “Reset contexts” when you go from one conversation to the start of the next one. (This is especially true if you are in the habit of setting large context lifespans – yet another reason why you should choose a context lifespan of 1).

If all else fails, log out, log back in and try again one more time

If you are testing with the Dialogflow console, try to log out and log back in. I remember exactly once when this helped. 🙂

But it didn’t happen again, so I am not sure why it helped.

<— End of article —>

This website contains affiliate links. See the disclosure page for more details. 
"The magic key I needed as a non-programmer"

The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn.

- Kathleen R
Cofounder, gathrHealth
"Much clearer than the official documentation to be honest"

Thanks a lot for the advice (of buying and following your videos)! They helped a lot indeed. Everything is very clear when you explain, much clearer than the official documentation to be honest 🙂

Neuraz T
Review for Learn Dialogflow CX
"I will strongly recommend this course because even I can learn how to design chatbot (no programming background)"

I think Aravind really did a great job to introduce dialogflow to people like me, without programming background. He organizes his course in very clear manner since I have been a college professor for 20 years. It is very easy for me to recognize how great Aravind’s course is! Very use-friend and very easy to follow. He doesn’t have any strong accent when he gives the lectures. It is so easy for me to understand. Really appreciate it.

Yes, I will strongly recommend this course because even I can learn how to design chatbot (no programming background) after studying Avarind’s course, you definitely can!

Ann Cai
Review for Learn Dialogflow ES

Similar Posts