Search code examples
dialogflow-esgoogle-assistant-sdk

Change default message when assisstant misunderstands user


I have created a google action, which takes in three parameters, I have done training phrases for many word combinations, but sometimes it will not pick it up.

I set my input parameters in the dialog flow to number1, number2, and number3.

It seems by default, if it misses a value it will say: "what is $varName"

however, this could be misleading to users since it may be unclear if it just prompts the user for 'what is number3'.

Id like to edit this response to be a more descriptive message.

I hope this is clear enough - I cant really post any code since its all concerning this dialogflow ui...

cheers!


Solution

  • If you want to add prompt variations for capturing parameters in an entity follow the "adding prompt variation" explained here. Just add variations to prompts as below or handle it from webhook by enabling slot-filling for webhook.
    enter image description here

    If you want to ask questions when the agent did not understand the intent then you can either use a Default Fallback Intent for a generic reply or create a follow-up fallback intent for the intent you are targetting. enter image description here

    or

    enter image description here