generous-apricot
generous-apricot2y ago

Unable to Capture DateTime value

I need to capture date value, it can be either year only, month and year, and full date. I have created an Entity with DateTime type, but it seems like it cannot detect and capture the date correctly, which part did I do it wrong?
No description
No description
No description
4 Replies
Tico | Voiceflow Assistant
To accurately capture a DateTime value that can vary in specificity (year only, month and year, or full date), it's essential to ensure your entity is correctly set up to recognize and store these variations. Here are some steps and considerations to help you troubleshoot and ensure your DateTime entity captures the data as intended: - Capture Step Utilization: Use a Capture Step to record the user's utterance or specific entities within their response. This step is crucial for capturing and storing DateTime values. - Entity Configuration: When creating or editing your DateTime entity, ensure it's correctly configured to recognize the variations of dates you expect from users. This includes setting the right data type and possibly adding synonyms for different date formats. - Entity Prompts: If the user's response does not contain the DateTime entity in the expected format, consider configuring entity prompts. These prompts can guide the user to provide the date in a recognizable format. - Testing and Adjusting: After setting up your entity and capture step, test with various date formats to ensure the system correctly captures and stores the data. Adjust your entity's configuration based on the test results. Remember, entities and variables are powerful tools for capturing and utilizing user-provided data, including dates. Ensuring your entity is correctly set up and tested is key to capturing the DateTime values accurately. For more detailed guidance on capturing user input and configuring entities, you might find these resources helpful: - Capture Step and Entity Configuration - Creating and Editing Entities
generous-apricot
generous-apricotOP2y ago
I have tried using intent to capture but it just work sometimes.
W. Williams (SFT)
You can't use a mask with entities. You might consider using a AI Set step and have the LLM get the date from the last_utterance and output it in a specific format.
generous-apricot
generous-apricotOP2y ago
Thanks for the suggestion, it works well for me! 😁

Did you find this page helpful?