https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey 👋I’ve connected my Cal
# ❓・ai-evy-support
v
@AI Evy Hey 👋 I’ve connected my Cal.com account to my Retell AI agent, but I’m running into an issue with scheduling. When I ask the agent to book a meeting for a specific time and date that’s already taken in my calendar, it doesn’t check for availability first — it just says the meeting will be booked, then shows an error afterward (since that slot was busy). It seems like the agent isn’t validating availability through Cal.com before confirming the booking. How can I fix this so that Retell AI checks real-time availability on my Cal.com calendar before confirming a slot? Thanks in advance 🙏
a
Thanks for tagging me @vasondemand_60874. I'll look through relevant sources and get back to you shortly.
3. Configure the workflow properly so your agent calls the 'Check Availability' function first, provides available slots to the customer, and only when the customer selects a time, triggers the 'Book Appointment' function to confirm the booking [(3) ]() . The proper setup requires both functions in your agent [(1) ]() [(2) ]() : - **Check Availability function**: Checks open time slots based on your Cal.com event type - **Book Appointments function**: Books the appointment only after availability is confirmed Make sure both functions use the same Cal.com API Key and Event Type ID from your Cal.com account . The agent should follow a two-step process: first check availability, then book only confirmed available slots.
### Answer The issue you're experiencing is that your agent needs to use the "Check Calendar Availability" function before attempting to book appointments [(1) ]() . Retell AI provides two separate Cal.com functions that work together for proper scheduling workflow [(1) ]() [(2) ]() . To fix this, you need to: 1. Add the Check Calendar Availability function to your agent alongside your existing Book Calendar function [(1) ]() . This function retrieves open time slots instantly [(3) ]() . 2. Update your agent's prompt to explicitly define when to check availability first. The documentation recommends including this in your prompt [(1) ]() :
Copy code
When user stated a time range, please check the calendar availability by calling the `check_calendar_availability` function and let user know whether that range work or not.
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) [[3] AI Appointment Scheduling with Voice AI Booking Assistant](https://www.retellai.com/features/book-appointments) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@User I noticed that when I ask my Retell AI agent a trick question — like trying to book a call at a time that’s already taken on my calendar — the agent still responds that it will book the meeting, but then says afterward that there was an error booking it for that time. It seems like the agent isn’t checking my calendar’s real-time availability before confirming the booking. How can I make sure Retell AI verifies availability first before it says the meeting is booked?