rising-crimson•3h ago
DATES CHANGES AS IT WISHS
why this always happens, when the caller mentions I want to book and a appointment it checks correct and books correct everything goes well but most of the time when the caller refers to tomorrow it also goes correct but when the caller mention Monday or Tuesday or what ever it sends the format correct and the time correct but the date sometimes refers to another date which is the next date, as in the screen sht when i said tuseday it check for the date of Wednesday which is 19th and when I said tomorrow it checked correct for the 20th, so my issue is in when i say a specific day,

5 Replies
It sounds like the system may not be resolving day names (like "Tuesday") to the correct date. To ensure accurate date handling, use explicit date formatting with LiquidJS in your prompts or API calls. For example:
Tip: Always convert day names to absolute dates before booking to avoid mismatches.
See the dynamic variables documentation for more details. Source: - Dynamic Variables Documentation
See the dynamic variables documentation for more details. Source: - Dynamic Variables Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
rising-crimsonOP•3h ago
CURRENT TIME
- {{"now" | date: "%Y-%m-%dT%H:%M:%S+04:00"}}
TIMEZONE RULE
- Always interpret all dates, times, and expressions like “Tuesday at 10am”, “tomorrow at 3”, or “next week” using the timezone: UTC+04:00 (Asia/Dubai).
Never interpret or convert using UTC or Zulu time. All date-time reasoning MUST happen in UTC+04:00.
When generating ISO timestamps, ALWAYS append the +04:00 offset. Example: 2025-11-18T10:00:00+04:00.
this is the time zone prompt included in the asistant
i need this solved ergent please
@Vapi Team
@Vapi Support Bot
To ensure day names like "Tuesday" are always resolved in the correct timezone (Asia/Dubai), use the LiquidJS date filter with your timezone explicitly in every prompt or API call. For example:
Always confirm the resolved date with the user before booking to avoid mismatches.
See the dynamic variables documentation for more details. Source: - Dynamic Variables Documentation
See the dynamic variables documentation for more details. Source: - Dynamic Variables Documentation
rising-crimsonOP•3h ago
thanks, i changes the varibales by mistake without making sure the ryt format
Message marked as helpful by @mohammed! 🎉
Message marked as helpful by @mohammed! 🎉
Message marked as helpful by @mohammed! 🎉