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 443
3 REPLIES 3

I think it is because it is trying to match the sys.address entity and that is why it could be failing (due to some formatting issue), can you try by changing the type to sys.any?

Best,

Xavi

Hello @xavidop,

Should I try the sys.any with the required keyword unchecked? When the required keyword is unchecked and I put in an address it will just go back to the default event handler of the flow. Meaning it doesn't even go through the parameter form filling at all. Here is the customerAddress parameter form fill:

karlgardner_0-1706023757431.png

and the current test:

karlgardner_1-1706023876419.png

The behavior is it is it doesn't even try to fill the form fill after providing the address. I can also provide the agent if you wanna test your own. Thanks for the help!



Any news in this topic? Still wondering why non-rerquired parameters are not collected