Booking Appointments on Google Calendar Calendar
# support
d
My bot is booking appointments in UTC time even though i put in the propt to book in America/Chicago time
v
To fix your timezone issue, explicitly include the America/Chicago timezone in your prompt using dynamic variables. Add this to the beginning of your system prompt:
Copy code
The current date and time is: {{"now" | date: "%A, %b %d, %Y, %I:%M %p", "America/Chicago"}}
Today is {{"now" | date: "%A", "America/Chicago"}} and the current time is {{"now" | date: "%I:%M %p", "America/Chicago"}}
This explicitly defines the timezone and provides clear date/time context for the bot to reference when booking appointments. Source: - [Discord: Timezone handling in system prompt](https://discord.com/channels/1211482211119796234/1342347443114872863)
d
not working
its not consistent. the tool used to book appointments to google calendar needs to be fixed because its not working 100% of the time\
k
Ensure the "America/Chicago" timezone is correctly set in your Vapi configuration, include the timezone in your API requests, and use libraries like
pytz
or
moment-timezone
to handle conversions to the desired timezone.
c
checking up on this, is your issue resolved?
2 Views