Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Non Required Parameters

Hello,

repost off of: Optional parameters for form filling in Dialogflow CX - Stack Overflow

I have a scenario where I ask a customer if they can provide their address. If the customer says "no" then I want to continue with the dialog and if they provide the address, I need to validate it. I have 3 pages in this scenario, Collect Address, Continue, and Validate Address page. In the Collect Address page I ask the user in Entry fulfillment if they could provide their address. I have a route with a confirmation.no intent that is supposed to go to the Continue page and a route with a condition that checks if the parameter called $page.params.customerAddress is not null (therefore set) and goes to the Validate Address page. Here is the parameter form filling:

karlgardner_0-1705950609092.png

and here is the routes:

karlgardner_1-1705950687140.png

Now, when I set the parameter to "required" it will ask the customer to provide the address and then when they say "no" it will just go to the Validate Address page:

karlgardner_2-1705950752036.png

However, when I set the parameter to not required and I give an address it will reprompt and say "Sorry, could you say that again?"

karlgardner_3-1705950911673.png

I am wondering what the behavior of the "Required" check box is in this context and if I can make it so if the user says no to go to the Continue page?

 

0 3 451
3 REPLIES 3