https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Hi, I’m using the inbuilt C...
# ❓・ai-evy-support
s
@AI Evy Hi, I’m using the inbuilt Cal feature in Retell AI to book appointments, but I’m running into an issue where the voice agent provides the appointment time according to my system’s time zone, which may be different from the user’s time zone. How can I handle this time zone difference to ensure the user receives the correct time slot based on their own time zone? Is there a way to configure Cal to account for time zones automatically?
a
Thanks for tagging me @shuvonomore. 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**: * [Book Calendar]() * [Check Calendar Availability]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() * [Retell AI | Cal.com’s Preset Tools as an AI Scheduling Assistant]() -----------------------------
### Answer There are a few approaches to handle timezone issues with Cal.com integration in Retell AI: 1. Configure timezone settings in both platforms: - Set the timezone in both your Cal.com account and the Retell AI dashboard [(1)]() 2. Add timezone to the function setup: - When adding the calendar function in Retell, you can optionally specify a timezone to be used [(2)]() [(3)]() 3. Include timezone handling in your prompt: - You can include specific timezone instructions in your prompt [(4)]() Based on community experiences, some additional considerations: - Using area codes from phone numbers can help determine user timezones [(5)]() - Pre-filling available appointment slots in the prompt before calls can help reduce latency issues The current timezone handling accuracy is around 90-95% when using function calling for appointment scheduling . To improve reliability, you may want to have your agent explicitly confirm the timezone with users during the conversation.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy how can I do that
a
Thanks for the follow-up, @shuvonomore. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate Function Calling]() * [Book Calendar]() * [Check Calendar Availability]() * [Step 2: Configure the basic settings]() -----------------------------
### Answer Here's how to set up timezone handling in Retell AI with Cal.com: 1. Initial Setup: - Create a Cal.com account and configure your event type [(1)]() - Get your Event Type ID from the URL (e.g., from
https://app.cal.com/your-username/event-type/1427703
, the ID would be
1427703
) - Obtain your API key from Cal.com's developer settings 2. Configure the Calendar Functions in Retell: - Add both the "Check Calendar Availability" and "Book Appointment" functions [(2)]() - When setting up each function, include: - Tool name (unique within the agent) - API Key from Cal.com - Event Type ID - Tool description - Optional: specify the timezone in the function setup [(1)]() , [(3)]() 3. Update Your Prompt: - Include explicit timezone handling in your prompt [(4)]() - Have the agent specifically ask and confirm the user's timezone before proceeding with booking 4. Testing: After setup, test your agent to ensure it's handling timezones correctly [(5)]() If you continue to experience timezone issues, you can: - Include the timezone explicitly in your prompts [(4)]() - Specifically instruct the agent to use the correct timezone when sending information to Cal.com - Consider using dynamic variables for more control over timezone handling
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
In appointment booking, the user may assume that it is their own timezone, correct? However, if I live in a different timezone than the user, how can the voice book an appointment in the customer's timezone?
@AI Evy In appointment booking, the user may assume that it is their own timezone, correct? However, if I live in a different timezone than the user, how can the voice agent book an appointment in the customer's timezone?
a
Thanks for the follow-up, @shuvonomore. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Function Calling Overview]() * [Dynamic Variables]() * [Book Calendar]() * [Check Calendar Availability]() -----------------------------
### Answer Yes, you can handle different timezones in Retell AI using dynamic variables and proper configuration. Here's how: 1. Use Dynamic Variables for Timezone: You can use the system variable
{{current_time_[timezone]}}
to get the current time in any specified timezone [(1)]() . For example:
Copy code
json
{{current_time_Australia/Sydney}}
2. Configure Cal.com Settings: Make sure to properly configure time zone settings in both: - Your Cal.com platform - The Retell AI dashboard [(2)]() 3. Add Timezone to Function Setup: When setting up the calendar functions in Retell: - Add an optional timezone parameter when configuring the check availability and book appointment functions [(3)]() [(4)]() 4. Best Practice for Multi-Prompt Agents: Create a specific state in your conversation flow to: - Confirm the date, time, and timezone with the user - Only proceed with booking once timezone is explicitly confirmed [(5)]() For example, you can structure your prompt like this:
Copy code
3. Confirm the date, time, and timezone selected by user: "Just to confirm, you want to book the appointment at ...". Make sure this is a time from the available slots.
4. Once confirmed, call function book_appointment to book the appointment.
This approach ensures timezone clarity and reduces booking errors [(6)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy In appointment booking, the user may assume that it is their own timezone, correct? However, if I live in a different timezone than the user, how can the voice agent book an appointment in the customer's timezone? Like from asking user timezone or location
a
Thanks for the follow-up, @shuvonomore. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Book Calendar]() * [Dynamic Variables]() * [Check Calendar Availability]() * [Build a multi-prompt agent]() -----------------------------
### Answer Yes, you can handle timezone differences in Retell AI by using dynamic variables and proper configuration. Here's how: 1. Use Dynamic Variables: You can use the system variable format to specify different timezones [(1)]() :
Copy code
json
{{current_time_[timezone]}}
For example:
{{current_time_Australia/Sydney}}
2. Multi-State Prompt Approach: Create a specific conversation state to handle timezone confirmation [(2)]() :
Copy code
3. Confirm the date, time, and timezone selected by user: "Just to confirm, you want to book the appointment at ...". Make sure this is a time from the available slots.
4. Once confirmed, call function book_appointment to book the appointment.
3. Function Configuration: When setting up your calendar functions in Retell, you can optionally add a timezone parameter [(3)]() . This helps ensure accurate scheduling across different time zones. 4. Best Practices: - Have the agent explicitly ask for and confirm the user's timezone before proceeding [(4)]() - Include timezone specifications in your prompts - Make sure to configure timezone settings in both Cal.com and Retell AI dashboard [(5)]() This structured approach helps ensure appointments are booked in the correct timezone for both parties.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.