modern-teal•2y ago
DateTime Entity underlying value
hey hope someone can help? How do i access the underlying Datetime value captured using a DateTime Entity, when i set a variable from the captured entity and output this variable I just get the text of the relative date, e.g: "Today" , "Tomorrow" as opposed to the expect ISO 8061 date?
2 Replies
To access the underlying DateTime value captured using a DateTime Entity in Voiceflow, you need to ensure that the entity is correctly set up to capture dates and times in formats that can be converted into ISO 8601 format. However, if you're only receiving relative date texts like "Today" or "Tomorrow" instead of the expected ISO 8601 date format, it might be due to how the variable is being processed or outputted in your project. Here are some steps and considerations:
- Ensure your DateTime entity is correctly configured in the Capture Step to capture dates and times.
- Check if there's a step or function in your project that formats the captured DateTime entity into a more readable form, like "Today" or "Tomorrow", before it's stored in the variable.
- Verify that the variable storing the DateTime entity's value is not being altered or formatted unintentionally in subsequent steps.
Remember, entities, including DateTime, are designed to capture specific types of user input, such as dates and times, and should be directly assignable to variables without additional formatting. If you're encountering issues, reviewing the setup of your Capture Step and the handling of variables in your project might help identify where the conversion to a relative date text is happening.
For more detailed guidance on working with entities and variables:
- Capture Step Entity Creation & Editing
- Using Real Variables to Develop Assistant Logic
modern-tealOP•2y ago
i have 2 steps. I'm capturing the DateTime entity from the user inout, and then outputting it on the next step.