Google Dialogue Flow Dates - "12th of the 3rd 2024"

Hoping someone can help.

I have a Google Dialogue Flow which captures a DOB.

Within Google Dialogueflow ES the action sys.date can change an input in to date format.

I have found that people tend to say their DOB as :

β€œ12th of the 3rd 2024”

Which means

2024-11-03T12:00:00Z (ISO 8601 formatting)

This date is being captured incorrectly in Google Dialogueflow, when it is said like this.

Here is a screen shot example of the conversion in the agent test panel. You can see the date is completely wrong.

If the Month is mentioned, its always 100% correct.

Is there a way I can allow a input format of β€œ12th of the 3rd 2024” ? To be converted correctly without the month being mentioned as β€œMarch”.

1 Like

It sounds like Google Dialogflow ES is misinterpreting the date format when it’s input in a more colloquial form, such as β€œ12th of the 3rd 2024,” where β€œ3rd” refers to March but is treated like a day. The system might be misparsing this structure because it’s not as explicit as β€œMarch” for the month.

To address this, you can try a few approaches:-

  1. Custom Fulfillment with Regex Parsing

  2. Training Phrases Variations

  3. Custom Entity for Dates

  4. Preprocessing User Input