Sam Barnum
Sam Barnum

Reputation: 10714

Dialogflow CX no-input default action for parameters

Anytime a user does not specify a response to a parameter prompt, I would like to trigger a WebHook.

My Start page has a No-input default event handler, but this only seems to apply to page-level prompts, not parameter-level.

Do I need to configure a set of No-input handlers for every parameter on every page?

Upvotes: 1

Views: 1369

Answers (2)

Eduardo Ortiz
Eduardo Ortiz

Reputation: 761

Answering your question, yes but you can create a custom parameter to manage all of the no-inputs that you want to use on your start page, also it's better to use them on a parameter level.

To do so you can add a parameter with entity type @sys.any, which can capture the user input and put the value into the variable.

enter image description here

Then you’ll be able to use a route to check if the user_input meets the condition.

enter image description here

Upvotes: 0

Romin
Romin

Reputation: 8806

You should be able to apply no-match-* and no-input-* to each parameter too. These are reprompt event handlers are they are available for each parameter. You can either set the no-input-default or the no-input-1, no-input-2, etc.

Check out: https://cloud.google.com/dialogflow/cx/docs/concept/handler#event-parameter

Upvotes: 1

Related Questions