https://retellai.com/?utm_source=discord&utm_medium=seo logo
when I use the cal
# ❓・ai-evy-support
u
@AI Evy when I use the cal.com booking function I get this error: "{"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-05T22:35:56.688Z\",\"/v2/bookings\",{\"code\":\"5\",\"message\":\"6\",\"details\":\"7\"},\"BadRequestException\",\"attendee property is wrong, attendee email or phone property is wrong,Attendee must have at least one contact method (email or phone number) \",{\"message\":\"6\",\"error\":\"8\",\"statusCode\":400},\"Bad Request\"]"}" How to solve?
a
Thanks for tagging me @._aicha_.. I'll look through relevant sources and get back to you shortly.
mail or phone [(3) ]() [(5) ]() [(6) ]() [(4) ]() . The Cal.com booking tool should be configured similar to this structure in your LLM:
### Answer The error indicates that Cal.com is rejecting the booking request because the attendee information is missing or incorrectly formatted - specifically, the attendee must have at least one valid contact method (email or phone number) [(1) ]() [(2) ]() . Based on community reports, this Cal.com booking integration error often occurs when the API structure for the booking parameters isn't correctly formatted [(2) ]() . The issue typically relates to how the attendee contact information is being passed to Cal.com [(1) ]() [(2) ]() . To resolve this: 1. Verify your Cal.com tool parameters include proper attendee contact fields. When configuring the Cal.com booking tool in Retell AI, ensure you're collecting and passing either an email or phone number for the attendee [(3) ]() [(4) ]() . 2. Check your prompt engineering. According to community solutions, detailed prompting can help ensure the LLM structures the API call correctly [(2) ]() . You may need to explicitly instruct your agent to collect and pass contact information in the correct format . 3. Validate the booking tool configuration. In your Retell LLM states or general tools, verify the Cal.com booking tool includes the required fields like
cal_api_key
,
event_type_id
, and that your prompts guide the agent to collect attendee e
Copy code
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"
}
Ensure your agent's prompt explicitly instructs it to collect either email or phone number from the user before attempting to book the appointment [(3) ]() [(4) ]() . **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
Hi @._aicha_. - where did you find this error code? I'm having a similar issue and cannot find where the errors are logged.
u
Hi @reddsolocup you can find it in the "Call history" by clicking on the option "Detail logs" for the row you're interested to analyze. I managed to solve my error, happy to help if you didn't solve yet