https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> I get this error while book...
# ❓・ai-evy-support
k
@AI Evy I get this error while booking a calendar - what should I do? ool_call_id: 3da96cdc802a9c9d {"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': {location}error_required_field\"]"}
a
Thanks for tagging me @kalpo_68378. I'll look through relevant sources and get back to you shortly.
### Answer Based on the error you're encountering, this appears to be a Cal.com booking API issue where a required field (location) is missing from your booking request [(1) ]() . The error message indicates:
"custom in 'responses': {location}error_required_field"
which suggests that the location field is required but not provided in your booking request . Here are the recommended troubleshooting steps based on community discussions: 1. *Add usernameList with correct host(s) * to the booking request 2. Double-check time format & timezone - ensure you're using the correct timezone parameter in your book_appointment function (e.g., "America/Los_Angeles") [(2) ]() 3. Verify your Event Type ID and API key are correct 4. Test with a simple single-host event first [(1) ]() The community has noted that similar errors often occur when: - The timezone parameter is missing or incorrect [(2) ]() - Required fields like location are not properly configured in your Cal.com event type - There are issues with the Event Type ID or API key configuration You should check your Cal.com event type settings to ensure all required fields (including location) are properly configured, and verify that your Retell AI booking function includes the correct timezone parameter .
​ To learn more, see the sources I considered: [[1] Cal.com Appointments](https://discord.com/channels/1186424376300679209/1358842036635173104) [[2] My agent often gives wrong answers when I try to arrange (test) booking. Calender settings are all c](https://discord.com/channels/1186424376300679209/1348311726898151505) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
this is how my cal is set up is it wrong somehow?
Tool Invocation: book_appointment_8 tool_call_id: 5afc6247e65f68cb { "time": "Saturday, August 2nd 10 AM", "timezone": "Asia/Manila", "name": "Kevin", "email": "eran@klplimitless.com", "execution_message": "Booking your Cryo Tummy appointment this weekend." } Tool Result tool_call_id: 5afc6247e65f68cb {"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': {location}error_required_field\"]"}
@AI Evy
a
Thanks for the follow-up, @kalpo_68378. I'll get back to you soon.
### Answer [(1) ]() , [(2) ]() , [(3) ]() , [(4) ]()
Copy code
javascript
{
 "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"
}
[(1) ]() , [(2) ]() , [(3) ]() , [(4) ]() Based on your error message, this is a common Cal.com booking issue where the location field is required but not being passed correctly [(5) ]() , [(6) ]() , [(7) ]() . The error
"custom in 'responses': {location}error_required_field"
indicates that Cal.com expects location information that isn't being provided [(6) ]() , [(7) ]() . Here are the solutions that have worked for other users: 1. Delete and recreate the function - This is the most commonly successful fix . If you make changes in Cal.com, you need to delete the booking function in Retell and recreate it . 2. Detailed prompting for location structure - One user resolved this by using very detailed prompting to get the API structure for location set correctly, explicitly telling the agent to pass
location.type
and
location.integration
[(5) ]() . 3. Check Cal.com event settings - Even if you removed location requirements in Cal.com, the function may still need to be recreated to reflect those changes [(7) ]() . The booking function configuration in your Retell LLM should include the
cal_api_key
,
event_type_id
, and
timezone
parameters as shown in th
e example above [(1) ]() , [(2) ]() , [(3) ]() , [(4) ]() . Try deleting your current book appointment function and recreating it first, as this has resolved the issue for multiple users [(7) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.