https://retellai.com/?utm_source=discord&utm_medium=seo logo
{"error":"Error calling Cal Booking API: Axios Err...
# ❓・ai-evy-support
p
@AI Evy
Copy code
{
  "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},\"no_available_users_found_error\"]"
}
a
Thanks for tagging me @persona4107. I'll look through relevant sources and get back to you shortly.
### Answer The "no_available_users_found_error" indicates that Cal.com cannot find available users for the booking request [(1) ]() . Based on a similar issue reported in the community, this error was resolved by providing more detailed prompting to ensure the API structure for location is set correctly . Specifically, you need to explicitly tell the agent to pass
location.type
and
location.integration
in the booking request . To set up the Cal.com booking integration properly: 1. Ensure you have the correct API Key from Cal.com and Event Type ID [(2) ]() 2. In your agent prompt, include explicit instructions for when to invoke the booking function :
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
3. Add detailed prompting to specify the location structure with
location.type
and
location.integration
parameters [(1) ]() The availability call working correctly while booking fails suggests the issue is specifically with the booking request format rather than your Cal.com credentials or setup .
​ To learn more, see the sources I considered: [[1] Cal.com booking errors](https://discord.com/channels/1186424376300679209/1377380250954105064) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy what is location.type and location.integration
a
Thanks for the follow-up, @persona4107. I'll get back to you soon.
### Answer I don't have specific information about
location.type
and
location.integration
parameters in the available sources. The official Retell AI documentation for Cal.com integration shows the basic setup for booking appointments [(1) ]() and checking availability [(2) ]() , but doesn't detail these specific location parameters. From the available sources, I can see that one user encountered issues with Round Robin event types that use "Custom attendee location" [(3) ]() , and there was mention in the thread history of needing to specify location structure, but the exact format and values for these parameters aren't documented in the sources I have access to. For detailed information about Cal.com's location parameters, you may need to: - Check Cal.com's API documentation directly - Contact support for specific parameter requirements - Visit [Contact Sales]() or [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[3] Issue with book_appointment (Cal.com Native Integration) for Round Robin & Custom Location Event Typ](https://discord.com/channels/1186424376300679209/1379631392312266893) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.