shuvonomore
03/21/2025, 10:09 AMAI Evy
03/21/2025, 10:09 AMAI Evy
03/21/2025, 10:09 AMAI Evy
03/21/2025, 10:09 AMAI Evy
03/21/2025, 10:09 AMshuvonomore
03/21/2025, 10:10 AMAI Evy
03/21/2025, 10:10 AMAI Evy
03/21/2025, 10:10 AMhttps://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 handlingAI Evy
03/21/2025, 10:10 AMshuvonomore
03/21/2025, 3:41 PMshuvonomore
03/21/2025, 3:41 PMAI Evy
03/21/2025, 3:41 PMAI Evy
03/21/2025, 3:42 PM{{current_time_[timezone]}} to get the current time in any specified timezone [(1)]() . For example:
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:
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)]() .AI Evy
03/21/2025, 3:42 PMshuvonomore
03/21/2025, 3:45 PMAI Evy
03/21/2025, 3:45 PMAI Evy
03/21/2025, 3:45 PMjson
{{current_time_[timezone]}}
For example: {{current_time_Australia/Sydney}}
2. Multi-State Prompt Approach:
Create a specific conversation state to handle timezone confirmation [(2)]() :
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.AI Evy
03/21/2025, 3:45 PM