How to add different fallback intents for different intents

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to add different fallback intents for different intents



How to add different fallback intents for different intents? So that user will see appropriate message instead of common fallback message.





what do you mean by fallback for different intents? fallback intent is triggered when dialogflow is unable to match any intent.
– sid8491
Jul 13 at 5:57





Fallback Intents are triggered if a user's input is not matched by any of the regular intents or enabled built-in Small Talk. what exctly do you want dialogflow.com/docs/intents#fallback_intents
– pavithra rox
Jul 13 at 8:48






Suppose there is wedding planner BOT and there are 2 intents. One is for handling catering related queries and one is for handling Costumes related queries. I want to give 2 different replies in both cases if BOT fallbacks to understand user queries
– user2724057
Jul 16 at 6:16




3 Answers
3



If you are developing your own webhook to handle requests and response, it would be better to use Default Fallback intent for all the intents.
Add an output context to each of your individual intents and based on this context you can respond back from the webhook using the single Default Fallback Intent like


switch(inputContextToDefaultFallback)
case "context1"...
case "context2"...



But if all your intents are not using webhook, then you can add a fallback intent from the dialogflow by clicking Add follow-up intent --> then selecting fallback
like this enter image description here

enter image description here



In order to add different Fallback intents for different contexts, you should just follow the steps provided in the documentation to add a new Fallback intent.



To do so, go to the three dots more options menu next to the Create intent button in the Intents tab in the Dialogflow UI, and then click on the Create Fallback Intent option. Once there, you will be able to create a callback intent, where you need to specify the Input Context (which should be the context under which you want this fallback intent to trigger), and Responses



You can add different Fallback Intents to handle different user replies to what your Action has asked. Just like you can add different Intents to specifically handle based things you've asked or said.



The trick in both these cases is to set an Output Context along with with your reply, and then to require this as an Input Context for the regular Intents and Fallback Intents that you wish to be valid in this context.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard