https://retellai.com/?utm_source=discord&utm_medium=seo logo
I tried booking an appointment via the cal
# ❓・ai-evy-support
a
@AI Evy I tried booking an appointment via the cal.com function and this error popped up: tool_call_id: tool_call_2f3b83 {"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: [{\"status\":\"1\",\"timestamp\":\"2\",\"path\":\"3\",\"error\":\"4\"},\"error\",\"2025-12-25T13:16:31.297Z\",\"/v2/bookings\",{\"code\":\"5\",\"message\":\"6\"},\"BAD_REQUEST\",\"responses - {name}Invalid string, responses - {name}error_required_field, \"]"} -- What is the issure here?
a
Thanks for tagging me @Aslam. I'll look through relevant sources and get back to you shortly.
### Answer The error message indicates a 400 BAD_REQUEST from the Cal.com API, specifically pointing to:
responses - {name}Invalid string, responses - {name}error_required_field
This suggests the booking request is missing a required field called
name
or the
name
field has an invalid format. Likely causes: 1. Missing or invalid
name
parameter
– The Cal.com booking API requires a
name
field for the attendee, and it's either not being passed or is in the wrong format. 2. Incorrect parameter schema – When defining parameters for custom functions, you need to ensure all required fields match what Cal.com expects. [(1) ]() Recommended fixes: - Verify your custom function's parameter schema includes a properly defined
name
field (as a required string) . - Add the correct timezone parameter to your booking function (e.g., "America/Los_Angeles") . [(2) ]() - Double-check your Event Type ID and API key are correct. Check out these potentially useful sources for configuring custom functions: [Custom Function]() Would you like me to provide a general answer on how to structure the booking parameters?
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[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.