david_novo
11/22/2025, 11:22 AMAI Evy
11/22/2025, 11:22 AMAI Evy
11/22/2025, 11:23 AMAI Evy
11/22/2025, 11:23 AMattendeePhoneNumber as a top-level field, Cal.com's v2 API expects the phone number nested within the attendee object structure [(2) ]() .
2. Modify your prompt example to:
{
"time": "Thursday August 21 at 9am",
"name": "Daniel Suárez",
"attendee": {
"phoneNumber": "+34 613981395"
},
"email": ""
}
3. Add current date context to your prompt:
Include the current date/time as a dynamic variable to help with date parsing [(1) ]() :
## Context
Today is: {{current_time_Europe/Madrid}}
4. Consider disabling phone requirement in Cal.com:
If you're still experiencing issues, you may need to adjust your Cal.com event type settings to not require the phone number field, or ensure it's properly configured [(3) ]() .
The key issue is that your prompt is instructing the LLM to create attendeePhoneNumber as a top-level field, but Cal.com's API expects it nested under the attendee object as phoneNumber [(2) ]() .
**AI Evy
11/22/2025, 11:23 AMdavid_novo
11/22/2025, 11:27 AMdavid_novo
11/22/2025, 11:29 AMAI Evy
11/22/2025, 11:29 AMAI Evy
11/22/2025, 11:29 AMfrom_number and to_number that are always sent when a function is called
3. Create the Cal.com appointment with the phone number using Cal.com's API directly
The built-in Retell Cal.com integration is limited and meant for trying out the feature . For production use cases where you need to capture phone numbers in appointments, you'll need to implement your own custom function that wraps the Cal.com API with the parameters you want to pass .
To implement this:
- Remove the built-in book_appointment_cal tool
- Create a custom tool/function that calls Cal.com's API directly
- In your custom function, structure the request to include the phone number in the format Cal.com expects
- Use the phone number collected by the LLM as a parameter in your custom function
This approach gives you full control over what data gets sent to Cal.com and ensures the phone number is properly included in the appointment .
---AI Evy
11/22/2025, 11:29 AMAI Evy
11/22/2025, 11:29 AMAI Evy
11/22/2025, 10:20 PMdavid_novo
11/22/2025, 10:20 PMAI Evy
11/22/2025, 10:20 PMWhen 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.
3. Common issues causing "always busy" responses:
- Verify your Cal.com API key is correct and has proper permissions
- Confirm the Event Type ID matches the event type you want to check
- Ensure the timezone setting matches your Cal.com event type timezone
- Check that your Cal.com event type has actual availability configured
4. Test your Cal.com credentials:
Make sure you can access your Cal.com API key from Settings → Developer → API Keys , and verify your Event Type ID from the URL when viewing your event type (the number in the URL like ` .
If the function continues to return "busy" for all dates, the issue is likely with either the Cal.com API key permissions or the Event Type ID configuration .AI Evy
11/22/2025, 10:21 PMAI Evy
11/22/2025, 10:21 PMdavid_novo
11/22/2025, 10:25 PMAI Evy
11/22/2025, 10:25 PMAI Evy
11/22/2025, 10:26 PM"timezone": null, but you need to specify a timezone [(2) ]() [(3) ]()
2. Wrong timezone in availability - The response shows "Pacific Standard Time" but you're checking for Europe/Madrid times
3. Date format issues - The availability shows "Friday, 2025 November 11/28/2025" which appears malformed
To fix this:
1. Add timezone to your Check Availability function:
When setting up the function in Retell, add the timezone parameter (Europe/Madrid in your case) [(2) ]()
2. Update your prompt to include timezone context:
## Context
Today is: {{current_time_Europe/Madrid}}AI Evy
11/22/2025, 10:26 PM"timezone": "Europe/Madrid" in your function configuration, the system defaults to a different timezone (Pacific Standard Time) , which is why you're seeing availability at completely different hours than expected [(2) ]() [(3) ]() .
**AI Evy
11/22/2025, 10:26 PMAI Evy
11/22/2025, 10:26 PMdavid_novo
11/22/2025, 10:31 PMAI Evy
11/22/2025, 10:31 PMAI Evy
11/22/2025, 10:31 PMAI Evy
11/22/2025, 10:36 PMAI Evy
11/22/2025, 10:36 PM