flyn107
11/19/2025, 7:55 PMAI Evy
11/19/2025, 7:55 PMAI Evy
11/19/2025, 7:55 PMbook_appointment_cal function doesn't always send all collected data (like phone number and address) to Cal.com [(1) ]() .
Here's how to resolve this:
1. Configure Custom Fields in Cal.com
First, ensure you've set up the booking questions in Cal.com's advanced settings to include phone number and address fields [(2) ]() . These custom fields need to be configured in your Cal.com event type before they can be passed through [(3) ]() [(2) ]() .
2. Update Your Agent Prompt
The key fix is to explicitly instruct your agent to always pass all required data to the booking function [(1) ]() . Add this to your prompt where you mention the booking function :
"Important: Always transfer the date/time, email, name, telephone number, and address to the functions with each call."
This ensures the LLM consistently includes all collected information when calling the book_appointment_cal function .
3. Verify Your Function Configuration
Make sure your book_appointment_cal function is properly configured with [(3) ]() [(4) ]() :
- Your Cal.com API Key [(3) ]()
- The correct Event Type ID
- The appropriate timezone setting
4. Test the Setup
After updating your prompt, test the agent to confirm it's now sending the phone number and address data to Cal.com [(2) ]() . You should see these fields populated in the Cal.com bookinAI Evy
11/19/2025, 7:56 PMAI Evy
11/19/2025, 7:56 PMflyn107
11/19/2025, 8:05 PMAI Evy
11/19/2025, 8:05 PMAI Evy
11/19/2025, 8:05 PM{attendeePhoneNumber}error_required_field, meaning Cal.com is requiring a phone number but your agent isn't sending it in the booking request [(1) ]() .
Based on the error you're seeing, here are the specific steps to fix this:
1. Verify Cal.com Event Type Configuration
In your Cal.com event type settings, make sure the phone number field is properly configured as a booking question [(2) ]() . The field must be set up in Cal.com before Retell can pass data to it .
2. Update Your Agent's Prompt
You need to explicitly instruct your agent to collect AND pass the phone number to the booking function [(1) ]() . Add this to your prompt:
"When booking an appointment, you MUST collect and pass the following information to the book_appointment function: date/time, name, email, and phone number. Always include the phone number in the booking request."
*3. Disable Phone Number Requirement (Alternative Solution) *
If you don't actually need the phone number for your use case, you can disable the phone number requirement in your Cal.com event type settings . This would allow bookings to go through without that field .
4. Check Timezone Configuration
I also notice your "timezone": null in the request . Make sure you've configured the timezone parameter in your book_appointment_cal function [(2) ]() [(3) ]() [(4) ]() . For example:AI Evy
11/19/2025, 8:05 PMjson
{
"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) ]() [(4) ]()
The key issue is that your agent is collecting the phone number during the conversation but not including it when calling the book_appointment_cal function [(1) ]() . The prompt update should resolve this by explicitly instructing the LLM to always pass that data .AI Evy
11/19/2025, 8:05 PMAI Evy
11/19/2025, 8:05 PMflyn107
11/19/2025, 8:18 PMAI Evy
11/19/2025, 8:18 PMAI Evy
11/19/2025, 8:18 PMEurope/London as the timezone parameter in your book_appointment_cal function [(1) ]() [(2) ]() .
Here's how it should be configured in your function:
json
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an appointment.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "Europe/London"
}
[(3) ]() [(4) ]()
Make sure this timezone setting matches what you've configured in your Cal.com account as well [(1) ]() [(2) ]() .AI Evy
11/19/2025, 8:18 PMAI Evy
11/19/2025, 8:18 PMflyn107
11/19/2025, 8:24 PMAI Evy
11/19/2025, 8:24 PMAI Evy
11/19/2025, 8:24 PMname field (e.g., "Mike, 123 Main St") [(2) ]() , though this isn't ideal for your Google Calendar display.
The custom function approach is the proper solution for your use case where you need to pass both phone number and address to Cal.com [(2) ]() [(3) ]() .AI Evy
11/19/2025, 8:24 PM{address}error_required_field, meaning Cal.com requires an address field but your agent isn't passing it in the booking request [(1) ]() .
The Core Issue
The native book_appointment_cal function in Retell AI has limitations with custom fields beyond the standard name, email, and phone number [(2) ]() . According to community discussions, custom fields like "address" cannot be passed through the built-in Cal.com integration .
Solution: Use a Custom Function Instead
To send custom fields like address to Cal.com, you need to use a custom function that calls the Cal.com API directly from your server . The native book_appointment_cal preset tool doesn't support passing arbitrary custom fields [(2) ]() [(3) ]() .
Here's how to set this up:
1. Create a custom function in your Retell AI dashboard by selecting "Custom Function" from the tools dropdown [(3) ]()
2. Configure the function to make a POST request to Cal.com's booking API endpoint
3. Define parameters using JSON schema to include all fields you need (name, email, phone, address, time, etc.)
4. Set your Cal.com API key in the request headers
This approach gives you full control over what data gets sent to Cal.com, including custom fields like address that the native integration doesn't support [(2) ]() [(3) ]() .
Alternative Workaround
If you want to keeAI Evy
11/19/2025, 8:24 PMAI Evy
11/19/2025, 8:24 PMflyn107
11/19/2025, 8:28 PMAI Evy
11/19/2025, 8:28 PMAI Evy
11/19/2025, 8:28 PMjson
{
"type": "object",
"properties": {
"time": {
"type": "string",
"description": "The appointment time in ISO 8601 format"
},
"timezone": {
"type": "string",
"description": "The timezone for the appointment (e.g., Europe/London) "
},
"name": {
"type": "string",
"description": "The customer's name"
},
"email": {
"type": "string",
"description": "The customer's email address"
},
"phone_number": {
"type": "string",
"description": "The customer's phone number"
},
"address": {
"type": "string",
"description": "The customer's address"
}
},
"required": [
"time",
"timezone",
"name",
"email",
"phone_number",
"address"
]
}
Key Configuration Steps:
1. **HTTP Method**: Set to POST
2. **Endpoint URL**: Use Cal.com's booking API endpoint (you'll need to get this from Cal.com's API documentation)
3. **Request Headers**: Include your Cal.com API key
4. **Define Parameters**: Use the JSON schema above in either JSON schema format or JSON form
The schema must include "type": "object" at the top level - this is a common mistake that causes save failures .
Make sure your agent's prompt explicitly instructs it to collect and pass all these fields when calling the function .AI Evy
11/19/2025, 8:28 PMAI Evy
11/19/2025, 8:28 PMflyn107
11/19/2025, 8:32 PMAI Evy
11/19/2025, 8:32 PMAI Evy
11/19/2025, 8:32 PMAuthorization
- **Header Value**: Bearer YOUR_CAL_API_KEY (replace with your actual Cal.com API key)
Alternatively, some APIs use:
- **Header Name**: cal-api-version and/or Authorization
- **Header Value**: Your Cal.com API key format (check Cal.com's API documentation for the exact format they require)
Important Notes:
- Header values can be static or include dynamic variables
- The custom headers you define will be included with the request Retell sends to your endpoint
- Make sure you're using the correct authentication format that Cal.com expects (typically Bearer token format)
Example Configuration:
In your custom function setup, the headers section should look something like this:
Header Name: Authorization
Header Value: Bearer cal_live_xxxxxxxxxxxx
This will ensure your Cal.com API key is properly included in every request Retell makes to the Cal.com booking API .
---
**AI Evy
11/19/2025, 8:32 PMAI Evy
11/19/2025, 8:32 PMflyn107
11/19/2025, 8:33 PMAI Evy
11/19/2025, 8:33 PMAI Evy
11/19/2025, 8:34 PMevent_type_id in your custom function's parameter schema :
json
{
"type": "object",
"properties": {
"event_type_id": {
"type": "integer",
"description": "The Cal.com event type ID"
},
"time": {
"type": "string",
"description": "The appointment time in ISO 8601 format"
},
"timezone": {
"type": "string",
"description": "The timezone for the appointment"
},
"name": {
"type": "string",
"description": "The customer's name"
},
"email": {
"type": "string",
"description": "The customer's email address"
},
"phone_number": {
"type": "string",
"description": "The customer's phone number"
},
"address": {
"type": "string",
"description": "The customer's address"
}
},
"required": [
"event_type_id",
"time",
"timezone",
"name",
"email",
"phone_number",
"address"
]
}AI Evy
11/19/2025, 8:34 PMAI Evy
11/19/2025, 8:34 PMevent_type_id will be included in the request body along with the other booking details .
3. Get Your Event Type ID
To find your event type ID from Cal.com [(2) ]() :
- Open your created event type in Cal.com
- Look at the URL in your browser
- The event type ID is the number in the URL
- Example: ` - the ID is 1427703
The custom function will send this event type ID to Cal.com's API to specify which calendar event configuration to use for the booking [(2) ]() [(1) ]() .AI Evy
11/19/2025, 8:34 PMflyn107
11/19/2025, 8:39 PMAI Evy
11/19/2025, 8:39 PMAI Evy
11/19/2025, 8:39 PMstart (not time)
- eventTypeId (not event_type_id)
- timeZone (not timezone)
- language (required field you're missing)
- metadata (required field you're missing)
Here's what you need to fix in your custom function:
1. Update Your Parameter Schema
Your JSON schema should match Cal.com's expected field names:
json
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID"
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone (e.g., Europe/London) "
},
"attendee": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"timeZone": {
"type": "string"
},
"language": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"metadata": {
"type": "object",
"properties": {
"address": {
"type": "string"
}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}AI Evy
11/19/2025, 8:39 PMAI Evy
11/19/2025, 8:39 PMAI Evy
11/19/2025, 8:39 PMstart instead of time
- Use eventTypeId (camelCase) instead of event_type_id
- Use timeZone (camelCase) instead of timezone
- Add language field (e.g., "en" for English)
- Wrap attendee details in an attendee object [(1) ]()
- Put custom fields like address inside a metadata object
3. Update Your Endpoint URL
Make sure you're using Cal.com's v2 API endpoint: `
4. Verify Your Event Type ID
Your event_type_id: 1 looks suspicious - make sure you're using the actual event type ID from your Cal.com dashboard URL [(4) ]() [(5) ]() .
The error is happening because Cal.com's API has strict validation and expects exact field names and structure [(1) ]() [(6) ]() .flyn107
11/19/2025, 8:42 PMflyn107
11/19/2025, 8:43 PMAI Evy
11/19/2025, 8:43 PMAI Evy
11/19/2025, 8:44 PMevent_type_id as a preset (hardcoded value) in your custom function, you have a couple of options:
Option 1: Remove it from the schema and use a query parameter or in the endpoint URL
Since you want the event type ID to be static, remove it from your parameter schema and instead include it as a query parameter [(1) ]() [(2) ]() :
1. In your custom function configuration, go to "Set query parameters"
2. Add a query parameter:
- Name: eventTypeId
- Value: 1427703 (your actual event type ID)
Option 2: Set a default value in your backend
Keep the schema as-is but handle the event type ID on your server endpoint that receives the custom function call . When Retell sends the request to your endpoint, you can override or set the event_type_id to your preset value before forwarding to Cal.com's API.
Option 3: Use the endpoint URL directly
Include the event type ID directly in your endpoint URL :
- Endpoint URL: `
Important Note:
Based on the thread context and the Cal.com API requirements you encountered, you should actually be restructuring your entire request to match Cal.com's expected format (using start instead of time, eventTypeId instead of event_type_id, etc.) [(3) ]() . The native book_appointment_cal integration doesn't support custom fields like address, which is why you need the custom function approach .
For a preset event type ID, I'd recommend Option 1 (query parameter) or Option 3 (in the URL) since these keep the ID static and separate from the dynamic booking parameters [(1) ](AI Evy
11/19/2025, 8:44 PMAI Evy
11/19/2025, 8:44 PMflyn107
11/19/2025, 8:47 PMAI Evy
11/19/2025, 8:47 PMAI Evy
11/19/2025, 8:47 PMAI Evy
11/19/2025, 8:47 PMeventTypeID=3945055 (uppercase "ID") , but Cal.com expects eventTypeId (camelCase)
2. **Missing required fields**: Cal.com requires start, eventTypeId (in body) , language, and metadata
3. **Wrong field names**: You're sending time but Cal.com expects start, and timezone instead of timeZone
4. **Incorrect structure**: Attendee details need to be wrapped in an attendee object
Here's the correct request body structure Cal.com expects:
json
{
"start": "2025-11-20T14:00:00",
"eventTypeId": 3945055,
"timeZone": "Europe/London",
"attendee": {
"name": "Mike",
"email": "mike1999@example.com",
"timeZone": "Europe/London",
"language": "en",
"phone": "555-123-4567"
},
"metadata": {
"address": "123 Maple Street, Springfield"
}
}
Update your custom function parameter schema to match:AI Evy
11/19/2025, 8:47 PMjson
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID"
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone (e.g., Europe/London) "
},
"attendee": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"timeZone": {"type": "string"},
"language": {"type": "string"},
"phone": {"type": "string"}
}
},
"metadata": {
"type": "object",
"properties": {
"address": {"type": "string"}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}
Also fix your query parameter:
- Change eventTypeID to eventTypeId (or better yet, remove it from the query string since it should be in the request body)
The native book_appointment_cal tool doesn't support custom fields like address, which is why you need this custom function approach [(2) ]() .AI Evy
11/19/2025, 8:48 PMflyn107
11/19/2025, 8:50 PMAI Evy
11/19/2025, 8:50 PMAI Evy
11/19/2025, 8:50 PM"start must be a string" - You need a start field (not time)
- "eventTypeId must be a number conforming to the specified constraints" - The eventTypeId needs to be in the request body as a number
- "timeZone must be a valid IANA time-zone" - Use timeZone (camelCase) , not timezone
- "language must be a string" - You're missing the required language field
- "metadata must be an object" - You're missing the required metadata object
The problem: Your custom function is sending data in the wrong format. Cal.com expects a very specific structure that matches their API requirements .
To fix this, you need to update your custom function's parameter schema [(2) ]() :AI Evy
11/19/2025, 8:51 PMjson
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID"
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone (e.g., Europe/London) "
},
"attendee": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"timeZone": {"type": "string"},
"language": {"type": "string"},
"phone": {"type": "string"}
}
},
"metadata": {
"type": "object",
"properties": {
"address": {"type": "string"}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}
Key changes needed:
- Use start instead of time
- Use eventTypeId (camelCase) as a number in the body
- Use timeZone (camelCase) instead of timezone
- Add the required language field (e.g., "en")
- Wrap attendee details in an attendee object
- Put custom fields like address inside a metadata object [(1) ]()
Also, remove eventTypeId from your query parameters since it should be in the request body, not the URL [(2) ]() .AI Evy
11/19/2025, 8:51 PMAI Evy
11/19/2025, 8:51 PMflyn107
11/19/2025, 8:59 PMAI Evy
11/19/2025, 8:59 PMAI Evy
11/19/2025, 8:59 PMstart as a string (ISO 8601 format)
- eventTypeId as a number in the request body
- timeZone as a valid IANA timezone
- language as a string
- metadata as an object
Critical Issue: You still have eventTypeId=3945055 in your query parameters (the URL shows /v2/bookings?eventTypeId=3945055) . This needs to be removed from the query string and instead included in the request body as a number [(1) ]() [(2) ]() .
Here's what you need to verify in your custom function setup:
1. Remove eventTypeId from query parameters - It should not be in the URL
2. Ensure your parameter schema matches this structure exactly:
json
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID (e.g., 3945055) "
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone like Europe/London"
},
"attendee": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"timeZone": {"type": "string"},
"language": {"type": "string"},
"phone": {"type": "string"}
},
"required": ["name", "email", "timeZone", "language"]
},
"metadata": {
"type": "object",
"properties": {
"address": {"type": "string"}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}AI Evy
11/19/2025, 8:59 PMbook_appointment_cal tool doesn't support custom fields like address, which is why this custom function approach is necessary [(3) ]() .
**AI Evy
11/19/2025, 8:59 PMAI Evy
11/19/2025, 8:59 PMAI Evy
11/19/2025, 8:59 PMflyn107
11/19/2025, 8:59 PMAI Evy
11/19/2025, 8:59 PM<https://api.cal.com/v2/bookings>
(No query parameters in the URL) [(1) ]() [(2) ]()
2. Your request headers should include:
- Header Name: Authorization
- Header Value: Bearer YOUR_CAL_API_KEY
3. Your parameter schema must match Cal.com's exact requirements:
json
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID"
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone (e.g., Europe/London) "
},
"attendee": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"timeZone": {"type": "string"},
"language": {"type": "string"},
"phone": {"type": "string"}
}
},
"metadata": {
"type": "object",
"properties": {
"address": {"type": "string"}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}
If you've verified all of these settings and are still experiencing issues, the Retell AI sales team can provide personalized assistance.
**AI Evy
11/19/2025, 9:00 PMAI Evy
11/19/2025, 9:00 PMflyn107
11/19/2025, 9:04 PMAI Evy
11/19/2025, 9:04 PMAI Evy
11/19/2025, 9:04 PMjson
{
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "The appointment start time in ISO 8601 format"
},
"eventTypeId": {
"type": "number",
"description": "The Cal.com event type ID"
},
"timeZone": {
"type": "string",
"description": "Valid IANA timezone (e.g., Europe/London) "
},
"attendee": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"timeZone": {"type": "string"},
"language": {"type": "string"},
"phone": {"type": "string"}
},
"required": ["name", "email", "timeZone", "language"]
},
"metadata": {
"type": "object",
"properties": {
"address": {"type": "string"}
}
}
},
"required": ["start", "eventTypeId", "timeZone", "attendee", "metadata"]
}AI Evy
11/19/2025, 9:04 PMAI Evy
11/19/2025, 9:04 PMAI Evy
11/19/2025, 9:04 PMContent-Type: application/json , but verify your custom function doesn't have conflicting headers configured.
3. Verify Your Authorization Header
Ensure your Cal.com API key is correctly formatted in the headers :
- Header Name: Authorization
- Header Value: Bearer YOUR_CAL_API_KEY
4. Double-Check Your Parameter Schema
Your schema must use JSON Schema format (not JSON Form) for POST requests . Make sure it matches this exactly:AI Evy
11/19/2025, 9:05 PM"type": "object" to the top level of the JSON schema [(1) ]() [(2) ]() [(3) ]() . Make sure your schema starts with this.
6. Verify Endpoint URL
Your endpoint should be exactly: ` (with no query parameters) [(1) ]() [(2) ]()
7. Check Function Timeout
The request will timeout in your specified timeout period, or 2 minutes if not specified . If Cal.com is slow to respond, increase the timeout.
Alternative Approach: Use a Middleware Server
Since the direct integration is proving difficult, you might want to create a middleware endpoint that:
1. Receives the Retell function call
2. Transforms the data to Cal.com's exact requirements
3. Forwards it to Cal.com's API
4. Returns the result to Retell
This gives you more control over the request format and better error handling .
If you continue experiencing issues after verifying these settings, I recommend reaching out to Retell AI support:
- Visit [Contact Sales]()
- Visit [Retell AI GitHub]()
**