https://retellai.com/?utm_source=discord&utm_medium=seo logo
everytime i test my ai call agent i get this error...
# ❓・ai-evy-support
i
@AI Evy everytime i test my ai call agent i get this error tool_call_id: 0561da5bb7bf3986 {"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': {attendeePhoneNumber}invalid_number\"]"} even if i tell retell ai to tranfer it to internatiuonal format it still doesnt work. and for some reason cal.com rejects the number i dont why this is happening
a
Thanks for tagging me @InstinctBy1. I'll look through relevant sources and get back to you shortly.
### Answer Based on the error you're encountering with Cal.com integration, this appears to be a phone number format validation issue on Cal.com's side. The error message indicates that Cal.com is rejecting the
attendeePhoneNumber
as an
invalid_number
[(1) ]() . This is actually a known issue that other users have experienced. According to community reports, even when appointments appear to fail with this error message, they may actually be getting booked successfully in Cal.com - you should check your Cal.com dashboard to verify if the appointments are being created despite the error . The Retell AI Cal.com integration documentation shows the basic setup process for booking appointments [(2) ]() , but it doesn't specifically address phone number formatting requirements for the
attendeePhoneNumber
field. To troubleshoot this issue: 1. Verify the phone number format being passed to Cal.com matches their expected format (typically E.164 format like +1234567890) 2. Check your Cal.com dashboard to see if appointments are actually being created despite the error 3. Ensure your Cal.com event type configuration accepts the phone number field Since this appears to be a Cal.com API validation issue rather than a Retell AI configuration problem, you may need to adjust how the phone number is formatted before it's sent to Cal.com's booking API.
​ To learn more, see the sources I considered: [[1] Cal.com Appointments](https://discord.com/channels/1186424376300679209/1358842036635173104) [[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.