Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hooking into the actions_intent_NO_INPUT in DialogFlow

I'm trying to customise the way in which Google Home handles no user input - ie. if the user just says nothing and doesn't respond, I want to handle that in my fulfilment, but currently, no matter what combination of things I try, Google Home will always say "Sorry, I didn't hear that", and then after two attempts, will exit. My fulfilment is returning a response after she's said "Sorry".. but i want to use a more graceful message than the default.

I just cannot figure out how to override that message, and get my fulfilment to respond, rather than the seemingly inbuilt response.

I'm assuming the correct action is "actions_intent_NO_INPUT", but it doesn't seem to work.

Has anyone managed to do this, or is it an inbuilt security mechanism?

like image 933
Matthew Knight Avatar asked Dec 31 '25 13:12

Matthew Knight


1 Answers

I usually find that it takes two Intents to make sure it works correctly. Sometimes I get it to work with the first one by itself, and the documentation says you should only need that, but the second seems to work when the first one (occasionally) doesn't. I have them set to call the same action in fulfillment.

While actions_intent_NO_INPUT is correct, you need to set this as the Event in Dialogflow. It also corresponds to a context named actions_intent_no_input. Between these two, we can create the following Intents:

The first is a regular Intent that handles the event, sets an action, and calls the webhook fulfillment:

enter image description here

The second is a Fallback Intent that only triggers if the actions_intent_no_input context is set:

enter image description here

like image 143
Prisoner Avatar answered Jan 06 '26 06:01

Prisoner



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!