https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> I'm having problems with c...
# ❓・ai-evy-support
s
@AI Evy I'm having problems with current date and time using Current time is {{current_time"}}. Even though this is in the prompt, the agent thinks the current date is Oct 2023. This is causing problems with bookings.
a
Thanks for tagging me @shockalotti. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() * [Help with current time within the prompt]() * [Agent fails giving the current date]() -----------------------------
### Answer There appears to be a syntax error in your variable. The correct format is
{{current_time}}
without quotes [(1)]() . This is a default system variable that provides the current time in
America/Los_Angeles
timezone . For appointments and scheduling, you can also specify a timezone using the format
{{current_time_[timezone]}}
. For example:
{{current_time_Australia/Sydney}}
. If you're working with appointments, make sure to: 1. Configure the correct time zone settings on both your scheduling platform and the Retell AI dashboard [(2)]() 2. Use dynamic variables to personalize appointment details during interactions
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
Sorry, yes, I see I've misspelt it here, but I'm using the correct variable {{current_date}} and still getting the issue
@AI Evy ok, I've corrected the variable spelling and still getting the issue.
a
Thanks for the follow-up, @shockalotti. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Book Calendar]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() * [Simulation Testing Now Live for All Agents]() -----------------------------
### Answer For booking appointments, here's a recommended approach based on the documentation: 1. Make sure to explicitly instruct your agent to convert and check the current time before making any booking requests [(1)]() 2. Add clear instructions in your prompt like:
Copy code
Convert today's date: {{current_time}} to [your timezone] before making the request to ensure the requested time is not in the past
3. The system provides these default time variables [(2)]() : -
{{current_time}}
for America/Los_Angeles time -
{{current_time_[timezone]}}
for specific timezones (e.g.,
{{current_time_Australia/Sydney}}
) 4. When dealing with appointments, ensure you're checking availability and booking in the correct timezone [(3)]() If you're still experiencing issues after implementing these changes, you may want to check your cal.com integration settings [(4)]() as timezone mismatches can affect booking functionality.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.