Mr.snack
03/13/2025, 3:29 PMVapi Support Bot
03/13/2025, 3:30 PMliquid
Current date: {{ "now" | date: "%B %d, %Y", "America/Chicago"}}
Current time: {{ "now" | date: "%I:%M %p", "America/Chicago"}}
Day of the week: {{ "now" | date: "%A", "America/Chicago"}}
### Include Both Date and Day of Week
Explicitly include both to help the LLM understand the context:
liquid
The current date is {{ "now" | date: "%A, %B %d, %Y", "America/New_York"}} and the time is {{ "now" | date: "%I:%M %p", "America/New_York"}}.
### Handle User Timezone Properly
Make sure to capture and utilize the user's timezone:
liquid
"I noted that your local timezone is UTC{{timezone_offset}}. When you say 'book for tomorrow', I'll schedule it based on your local time."
### Implement Confirmation Logic
After processing dates, confirm back to the user:
liquid
"Alright, I've scheduled your appointment for {{appointment_date}} at {{appointment_time}}, according to your local time zone. Please confirm if this works for you."
Let me know if you need help implementing any of these solutions! 😊
Sources:
- [Dynamic Variable Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336772166330351646)
- [Timezone Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336995626604564551)Vapi Support Bot
03/13/2025, 3:30 PMMr.snack
03/13/2025, 5:08 PM