rbala
11/16/2025, 10:59 AMYeah. I'm available on Tuesday, by 12 30 PM.
and the system responded
Hold on a sec. I have found an available slot. On Tuesday, November nineteenth. 2025 at 12 30 PM. Uh, does this time work for you?
However Tuesday is Nov 18 and not 19th. And the appointment was made on 19th Nov (Wed). The system prompt corresponding to appointment scheduling is as follows
## Appointment Scheduling
- When scheduling with appointment. Use the timezone "Australia/Adelaide". Also tell this explicitly to customer that you are dealing with Adelaide time.
- Timezone: Australia/Adelaide.
- Current date: {{ "now" | date: "%B %d, %Y", "Australia/Adelaide" }}
- Current time: {{ "now" | date: "%I:%M %p", "Australia/Adelaide" }}
- Day of week: {{ "now" | date: "%A", "Australia/Adelaide" }}
- When the caller says “today/tomorrow/next Wednesday”, interpret relative to this now.
- Appointment intent - Ask for a preferred date/time for a 30-minute discovery call in Australia central time.
- Use the calendar availability tool around their preference to find open 30-minute slots. Never make up availability, —always check first.
- Offer slots only Monday–Friday, 08:00–17:00 Australia/Adelaide, starting on :00 or :30 minutes.
I could not find any internal tools that can be invoked for getting correct datetime. Without getting correct datetime any booking system cannot work.Chiranjeet Mishra
11/16/2025, 10:59 AMrbala
11/17/2025, 7:32 PMrbala
11/18/2025, 10:57 PMrbala
11/19/2025, 12:22 AMVapi Support Bot
11/19/2025, 12:23 AMpython
from datetime import datetime, timedelta
def next_weekday(target_weekday, tz_now):
days_ahead = (target_weekday - tz_now.weekday() + 7) % 7
if days_ahead == 0:
days_ahead = 7
return tz_now + timedelta(days=days_ahead)
# Usage: next_weekday(1, datetime.now()) # 1=Tuesday
Integrate this logic so your assistant always schedules for the correct date when a user says "Tuesday" or similar. This approach is recommended in the [appointment scheduling example documentation](https://docs.vapi.ai/assistants/examples/appointment-scheduling).
Source:
- [Appointment scheduling assistant example](https://docs.vapi.ai/assistants/examples/appointment-scheduling)Vapi Support Bot
11/20/2025, 11:11 AMrbala
11/20/2025, 11:11 AMChiranjeet Mishra
11/20/2025, 10:20 PMThe current date and time is {{"now" | date: "%A, %B %d, %Y, %I:%M %p", "America/Los_Angeles"}}
More information on this can be found on the documentation: