https://retellai.com/?utm_source=discord&utm_medium=seo logo
Cal.com book appointment and check availability fu...
# ❓・bug-report
j
I have three events to book for, depending on caller preference. All 3 require name and email. - 15 minute phone call (also phone number) - 30 minute video call (also phone number) - 60 minute in-person meeting (also address) I am using the native Cal.com booking function for all 3, and collecting all the data necessary. However, when I try to invoke the functions: - Only the 30 minute video call is working fine - 15 minute phone call error: tool_call_id: 6be4e74e218d8c7e { "time": "Feb 18th 4:30pm", "name": "Jim Kim", "email": "john@thenebulaai.io", "timezone": "Australia/Sydney", "execution_message": "Great! Your 15-minute phone call with Kylie is set for February 18th at 4:30 PM. Is there anything else I can help you with?" } {"error":"Error calling Cal Event Type API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\"},\"custom in 'responses': {location}error_required_field\"]"} - 60 minute in person meeting error: tool_call_id: 6cd4f000d373b3ab { "time": "Feb 18th 4pm", "name": "Jim Kim", "email": "john@thenebulaai.io", "timezone": "Australia/Sydney", "execution_message": "Perfect! Your in-person meeting with Kylie is scheduled for February 18th at 4 PM at 456 Sesame Street. Is everything correct?" } {"error":"Error calling Cal Event Type API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\"},\"custom in 'responses': {location}error_required_field\"]"} I checked json file for 30 min video call, it's sending the same thing, but it is successful. I don't understand why the 15 and 60 minute ones are not working (even though I am clearly collecting the required fields
@eviewang_ are you able to help please?
e
re-add your function?
j
nope, doesn't work for either 15min or 60min
first image is for 60min, second image is for 15min, for Cal.com booking page
@Reece - Integration @ Retell AI are you able to help with this please?
r
Usually the 400 errors are a result of the event type id being wrong
@johnwookie to double check those, see this... https://github.com/calcom/cal.com/discussions/16625 -- the tldr is "i found the solution, you can use this API "https://api.cal.com/v1/event-types?apiKey=" add your api key at the end of api it will retrieve all the events with event ids."
j
15min 1799651 30min 1810533 60min 1799649 I got the event ID's right, it's strange how only 30 minute is working @Reece - Integration @ Retell AI
and this is for 30min booking fyi
so it seems like the address, and phone number are not in the json input, is there a way to change this? so the input { "time": "Feb 18th 4:30pm", "name": "Jim Kim", "email": "john@thenebulaai.io", "timezone": "Australia/Sydney", "execution_message": "Great! Your 15-minute phone call with Kylie is set for February 18th at 4:30 PM. Is there anything else I can help you with?" } has "phone_number" in it? or is that not the cause of the problem?
r
Hmmm... I can take a quick look. Invite me to your workspace -- reece@retellai.com
got it -- @johnwookie I'll DM you
j
added you (btw please in the future, i hope when you invite someone into your workspace in the future, it is not admin by default)
r
I'm to my limit of feature requests today 😄
Zexia doesn't want to hear from me anymore on a Sunday
😄