https://retellai.com/?utm_source=discord&utm_medium=seo logo
@AI EvyI’m currently running into an issue with th...
# ❓・ai-evy-support
d
@AI Evy @AI Evy I’m currently running into an issue with the Retell–Cal.com booking flow. The process works as expected when fetching availability and collecting user input (time slot, email, and phone number). However, when the “Book Calendar Meeting” node is triggered, I consistently receive an error indicating that the data is not being passed correctly. From my understanding, Retell should be handling this integration natively given the Cal.com partnership. Could you clarify what exact payload format or fields are required for the booking node? For example, should I be passing a slot ID, explicit start/end times, or additional fields (such as event type or timezone)? Here’s the flow I have set up: Retell checks Cal.com for available slots User provides preferred slot, email, and phone number Retell attempts to book the meeting (error occurs here) If you could provide a minimal working example of the expected request payload or confirm the correct schema, that would help me pinpoint what’s missing.
a
Thanks for tagging me @dathonky. I'll look through relevant sources and get back to you shortly.
### Answer For the Retell-Cal.com booking integration, you need to ensure proper configuration of the Cal.com booking function [(1) ]() . The integration requires specific setup steps and parameters. First, make sure you have the required credentials configured correctly : - Cal.com API Key from your developer settings - Event Type ID from your event type URL - Optional timezone parameter When adding the book calendar function in Retell, you need to configure : - Tool name (must be unique within the agent) - API Key from cal.com - Event Type ID - Tool description (example: "Book the appointment for 30-minute consultation calls") - Optional timezone to be used in the function For the API implementation, the booking tool structure looks like this [(2) ]() :
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"
}
Based on community discussions, common issues include [(3) ]() : - Timezone formatting problems - Cal.com doesn't auto-detect from area code and requires correct timezone in the booking payload - Phone format must be international (e.g. +15551234567) - Missing or invalid eventId or required fields in the request For your prompt, include explicit instructions about when to invoke the function [(1) ]() :
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
If you're still experiencing issues, the problem might be related to data format validation or missing required fields in the booking payload [(3) ]() .
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[3] CAL Issues And Questions](https://discord.com/channels/1186424376300679209/1348768358031687771) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy How do I instruct my AI to format the data to ReTell? Everytime I run the book appointment function I get an error message that tells me that I have inputted the data incorrectly tool_call_id: tool_call_ca0444 {"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},\"custom in 'responses': {email}email_validation_error; custom in 'responses': {location}error_required_field\"]"} No matter what I try my ai does not format the data correctly
a
Thanks for the follow-up, @dathonky. I'll get back to you soon.
### Answer Based on your error message, the issue is that Cal.com is expecting required fields that aren't being provided correctly. The error indicates
email_validation_error
and
error_required_field
for location. To properly configure the Cal.com booking function in Retell AI, you need to ensure your tool description is clear about what data to collect [(1) ]() . The documentation shows this example configuration:
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"
}
[(2) ]() For your prompt, you should explicitly instruct the agent to collect all required information before booking [(1) ]() :
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
Based on community discussions, common formatting issues include [(3) ]() : - Email validation errors - ensure the email format is correct - Missing required fields like location/address - Time format and timezone issues - Username/host configuration problems The community suggests adding
usernameList
with the correct host(s) to the booking request, double-checking time format & timezone, and testing with a simple single-host event first . To address your specific errors, you should: 1. Update your agent prompt to explicitly collect and validate email addresses 2. Ensure your Cal.com event type has the correct required fields configured 3. Make sure your agent collects any location/address information if required by your Cal.com event type 4. Verify the timezone format matches what Cal.com expects The key is making your tool description and agent prompt very specific about collecting all the required fields that your Cal.com event type needs.
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[3] Cal.com Appointments](https://discord.com/channels/1186424376300679209/1358842036635173104) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy I am still having trouble passing the data through
a
Thanks for the follow-up, @dathonky. I'll get back to you soon.
### Answer Based on the documentation, here's how to properly configure the Cal.com booking tool in Retell AI. The book appointment tool should be structured exactly like this in your Retell LLM configuration [(1) ]() :
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"
}
The video tutorial shows the complete process for using Cal.com custom fields with Retell AI [(2) ](

▾

) . In the tutorial, the agent successfully collects the customer's name, email address, and phone number before booking the appointment . For your agent prompt, you need to be very specific about collecting all required information. The documentation shows this example where the agent collects information step by step : 1. First collect the customer's name 2. Then collect their email address 3. Then collect their phone number 4. Finally book the appointment with all the collected information The key is ensuring your agent's prompt explicitly instructs it to collect all the required fields that your specific Cal.com event type needs before attempting to book the appointment. Make sure your Cal.com event type configuration matches what your agent is trying to submit. If you're still having data formatting issues, I'd recommend visiting [Contact Sales]() or [) for more specific troubleshooting help. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Get Retell LLM](https://docs.retellai.com/api-references/get-retell-llm) [[2] Retell AI - How to use Cal.com Custom Field](

https://www.youtube.com/watch?v=b59o1YCcvjc▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.