Time and Date
# support
j
When a caller asks if we are open on a date and time the agent is not able to determine the date and time how do I fix this?
k
Pass the current date and time using a tool like getCurrentDateTime or embed it as a dynamic prompt variable like, using {{"now" | date: "%B %d, %Y, %I:%M %p"}} so the agent can accurately respond to time-based queries..
j
how do I embed it
k
Use {{ "now" | date: "%B %d, %Y, %I:%M %p", "Your/Timezone" }} inside prompts, leveraging LiquidJS for formatting and timezone control. https://docs.vapi.ai/assistants/dynamic-variables
j
Thank you so much for your help it worked
k
You're welcome
3 Views