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

Make a Required Parameter for "sys.date" Accept "any no response" and proceed with the next paramete

Hi Team, I have got in an situation that Im not sure how to solve.

The Agent starts asking 

1- "Could you please provide your purchaseDate?" - > Which we are expecting any date so we can format to {dateObject}, I need to put this parameter as required, so the agent will ask it. If I remove the required checkbox this wont happen. right?

2 - As this is not a required parameter, and people wont remember purchaseDate all the time, I want the users be able to put (No, I dont understand, I dont have it) -anything besides date.

3 - I can't put any in the parameter, if I do that I wont be able to format dates like (yesterday) to the {dateObject} that dialogflow manages.

So my question is,

How can I make the bot to be able to fulfill the parameter not only 1 for the entity Date, but also be able to fill that parameter with any information (sys.any or another entity). 

Im able to do it in Df-Essentials with custom entities, but as Custom entities dont exists here.

What Can I do?

0 2 115
2 REPLIES 2

Hi @Mizar,

Welcome to Google Cloud Community!

The solution involved keeping the parameter as required to ensure the prompt, but using follow-up intents and contexts to manage situations where the user provides an invalid date or indicates they don't have the information. This allows for a flexible user experience while maintaining the structure of a required parameter. The core idea was to move the complex logic from the parameter definition to the intent flow and fulfillment webhook.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

hey @NorieRam if this were DF-Essentials thats true. But unfortunately im working with Df-CX that cant be managed the same way. Would you know how can I do it in Df-cx?