https://retellai.com/?utm_source=discord&utm_medium=seo logo
Im trying to book on cal
# ❓・ai-evy-support
c
@AI Evy Im trying to book on cal.com using retell AI. I put the APi key and event idea and alos installed the retell App on my cal.com and its not booking my appointment. TO be fair I created the functions first in retell then installed the retell app on cal.com do you think this might be the issue
a
Thanks for tagging me @casablanco. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, the order of setup shouldn't be the issue [(1) ]() . Here are the common troubleshooting steps for Cal.com booking issues: Check Your Setup: 1. Verify your Event Type ID is correct - it should be the number from your Cal.com URL (e.g., if your URL is ` then
1427703
is your Event Type ID) 2. Ensure your Cal.com API key is valid 3. Confirm the timezone setting matches between Cal.com and your Retell function [(2) ]() Common Issues Based on Community Reports: - Check that the testing user is added to the event ID in Cal.com - Verify the timezones of Cal.com and the function are the same - Add a current time variable in your prompt so the LLM is aware of the current time Function Configuration: Your book appointment function should be configured like this in your Retell LLM:
Copy code
json
{
  "type": "book_appointment_cal",
  "name": "book_appointment",
  "description": "Book an annual check up.",
  "cal_api_key": "cal_live_xxxxxxxxxxxx",
  "event_type_id": 60444,
  "timezone": "America/Los_Angeles"
}
[(3) ]() Prompt Update: Include explicit instructions in your prompt about when to invoke the booking function:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
[(1) ]() The order of creating functions first, then installing the Cal.com app shouldn't cause booking failures. Focus on verifying the API key, Event Type ID, timezone alignment, and ensuring your testing user has access to the event type in Cal.com.
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] API to Cal.com keeps failing spastically.](https://discord.com/channels/1186424376300679209/1400179427480174592) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy Its running the check avalibity correctly but its not booking it
a
Thanks for the follow-up, @casablanco. I'll get back to you soon.
### Answer If the check availability function is working correctly but booking isn't, there are several specific troubleshooting steps: Verify Both Functions Are Added You need both the "Check Calendar Availability" and "Book Appointment" functions added to your agent [(1) ]() . The booking process requires both functions to work together . Check Your Prompt Instructions Your prompt should explicitly define when to trigger the booking function [(2) ]() . Include instructions like:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
Common Booking Issues Based on community reports, several users have experienced similar issues where appointments appear to book but don't actually get created [(3) ]() . Some reported issues include: - The agent tells the client the appointment is booked, but no confirmation is received and it doesn't appear in the calendar - There may be a bug specifically when changing the location from Google Meet to regular call in Cal.com Verify Your Setup Ensure your Book Appointment function configuration includes: - Correct Cal.com API key [(1) ]() - Correct Event Type ID - Matching timezone settings between Cal.com and Retell AI Monitor Tool Execution Check if the book appointment tool is actually being called when the agent claims to book the appointment [(3) ]() . You should be able to see this in your call logs or function execution logs. If these steps don't resolve the issue, there may be a known integration issue between Retell AI and Cal.com that's being addressed .
​ To learn more, see the sources I considered: [[1] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[2] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[3] calendar appointment booking through retell](https://discord.com/channels/1186424376300679209/1250814023067500657) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy I tested booking an appointment in a template workflow with my API key and event ID and it worked but for my workflow doesnt work. I even made sure it had the first name last name and email before booking
a
Thanks for the follow-up, @casablanco. I'll get back to you soon.
### Answer Since your template workflow with the same API key and event ID works but your custom workflow doesn't, this suggests a configuration difference between the two workflows [(1) ]() . Common Issues Based on Community Reports: From Discord discussions, users have experienced similar problems where Cal.com API calls work intermittently . One user reported having "2 different API keys...one for looking up calendar and one for setting appointments. sometimes it goes through and he books the meeting and sometimes there are issues" . Troubleshooting Steps: The support team recommends checking several key areas : - Verify that the testing user is added in the event ID in Cal.com - Double-check that the timezones of Cal.com and your function are the same - Add a current time variable in the prompt so your LLM is aware of current time Error Pattern: Users have reported specific error messages like:
{"error":"Error calling Cal Booking API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\",\"data\":null},\"no_available_users_found_error\"]"}
. Compare Your Workflows: Since the template works, compare the exact configuration between your template and custom workflow, focusing on: - Function parameters and structure - Prompt instructions for when to trigger booking - Dynamic variable handling - Tool call execution order The fact that you've confirmed first name, last name, and email are collected before booking is good, but there may be subtle differences in how your custom workflow processes or passes these parameters compared to the template.
​ To learn more, see the sources I considered: [[1] API to Cal.com keeps failing spastically.](https://discord.com/channels/1186424376300679209/1400179427480174592) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.