roman_16864_07881
11/05/2025, 1:16 PMAI Evy
11/05/2025, 1:16 PMAI Evy
11/05/2025, 1:16 PMbook_appointment_cal function that could cause errors during calls even when Postman requests succeed:
Common Cal.com Integration Issues:
1. Date/Time Format Problems - The booking function may fail due to incorrect date and time formatting or timezone handling [(1) ]() . Ensure the time parameter follows the correct ISO 8601 format (e.g., "2025-10-28T16:00:00Z") [(2) ]() .
2. Already Booked Slots - When attempting to book an already occupied time slot, Cal.com returns an error: "User either already has booking at this time or is not available" . This generates an Axios error with status code 400 .
3. Missing usernameList - For multi-host events, you need to include the correct host(s) in the booking request via usernameList [(3) ]() . Without proper definition or injection, Retell will leave placeholders unresolved .
Configuration Requirements:
When setting up the book_appointment_cal function, ensure you have [(4) ]() :
- Valid Cal.com API Key
- Correct Event Type ID
- Proper timezone configuration (optional but recommended)
The function structure should include [(5) ]() [(6) ]() :
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"
}AI Evy
11/05/2025, 1:16 PMAI Evy
11/05/2025, 1:16 PMAI Evy
11/05/2025, 1:16 PMroman_16864_07881
11/05/2025, 1:18 PMroman_16864_07881
11/05/2025, 1:22 PMAI Evy
11/05/2025, 1:22 PMAI Evy
11/05/2025, 1:22 PMbook_appointment_cal function during calls, even though Postman requests work successfully. To help diagnose the issue, I need to see the actual call log you mentioned.
However, based on the available documentation, here are the key configuration requirements for the book_appointment_cal tool [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() :
Required Configuration:
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) ]() , [(3) ]() , [(4) ]() , [(5) ]()
Setup Steps: [(1) ]()
1. Obtain your Cal.com API Key from Settings → Developer → API Keys
2. Get your Event Type ID from the URL when viewing your event type (e.g., the number 1427703 in `
3. Configure the tool in Retell with these credentials
4. Update your prompt to specify when to invoke the function
Prompt Example:
When user selected a slot, please book the appointment by calling the `book_appointment` function.
Please share the call log details so I can identify the specific error and provide targeted troubleshooting steps.AI Evy
11/05/2025, 1:22 PMAI Evy
11/05/2025, 1:22 PMAI Evy
11/05/2025, 9:45 PMjudepatton
11/05/2025, 9:45 PMAI Evy
11/05/2025, 9:45 PMbook_appointment_cal tool is properly configured with [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() :
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"
}
Critical Setup Steps: [(1) ]()
1. Verify your Cal.com API Key is correct (from Settings → Developer → API Keys)
2. Confirm your Event Type ID matches your Cal.com event (the number in the URL like 1427703)
3. Check that timezone is properly set (optional but recommended)
Prompt Configuration:
Your prompt must explicitly instruct when to invoke the booking function :
When user selected a slot, please book the appointment by calling the `book_appointment` function.AI Evy
11/05/2025, 9:45 PMbook_appointment function is invoked. The error details will indicate whether it's an authentication issue, format problem, or availability conflict.
Can you share the specific error from your call logs when the booking attempt occurs?AI Evy
11/05/2025, 9:45 PMAI Evy
11/05/2025, 9:45 PMjudepatton
11/05/2025, 9:47 PMAI Evy
11/05/2025, 9:47 PMAI Evy
11/05/2025, 9:47 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"
}AI Evy
11/05/2025, 9:47 PMcal_live_xxxxxxxxxxxx [(3) ]() [(4) ]() [(5) ]() [(6) ]() [(7) ]()
- Make sure you're using the correct Event Type ID (3834663 in your case) [(3) ]()
- The timezone parameter is optional but recommended [(3) ]() [(4) ]() [(5) ]() [(6) ]() [(7) ]()
Since your Postman requests work successfully, double-check that the API key in your Retell configuration exactly matches the one you're using in Postman. Even a small difference (extra space, missing character) will cause the 401 error [(2) ]() .AI Evy
11/05/2025, 9:48 PMAI Evy
11/05/2025, 9:48 PMjudepatton
11/05/2025, 9:58 PMAI Evy
11/05/2025, 9:58 PMAI Evy
11/05/2025, 9:58 PM3834663) is correct
- Check that your Cal.com API key has permissions to book appointments for this specific event type
- The API key must have write/booking permissions, not just read permissions
2. Check Cal.com API Key Scopes
- In Cal.com Settings → Developer → API Keys, verify your key has booking permissions enabled
- Some API keys are read-only by default
3. Event Type Configuration [(2) ]()
- Ensure the event type exists and is active in your Cal.com account
- Verify you're using the correct event type ID (not confusing it with another event)
4. Test Direct Cal.com API Call
- Since Postman works, compare the exact headers and authentication method between your Postman request and what Retell sends
- Cal.com may require specific authentication headers that differ between check availability and booking operations
Configuration Reference:
Your book_appointment_cal tool should be configured as [(3) ](AI Evy
11/05/2025, 9:58 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) ]() , [(5) ]() , [(6) ]()
Most Likely Cause:
Based on community experience, the event type ID is often the culprit [(1) ]() [(2) ]() . Double-check that 3834663 is the correct event type ID and that your API key has explicit permissions to create bookings for that event type.
Can you verify in your Cal.com dashboard that this event type ID exists and your API key has booking permissions for it?
---AI Evy
11/05/2025, 9:58 PMAI Evy
11/05/2025, 9:58 PMjudepatton
11/05/2025, 10:16 PMAI Evy
11/05/2025, 10:16 PMAI Evy
11/05/2025, 10:17 PM1427703)
2. Regenerate API Key :
- Go to Cal.com Settings → Developer → API Keys
- Generate a new API key
- Update it in your Retell configuration
3. Switch Event Type [(1) ]() :
- If using a round robin event, try creating a regular event type instead
- Round robin events have been problematic for multiple users
4. Check Event Requirements :
- Ensure phone number is NOT required in your Cal.com event settings
- Retell doesn't send phone numbers to Cal.com, so required phone fields will cause errors
Given your earlier 401 error and now this validation error, double-check that your Event Type ID 3834663 still exists in your Cal.com account and that you're using a fresh API key with the correct permissions.AI Evy
11/05/2025, 10:17 PMAI Evy
11/05/2025, 10:17 PMDonDiego
12/31/2025, 8:16 AM