Cal.com Function

Hey everyone, I could really use some help. I’ve been working on a RetailAI prompt all day, and it’s clearly written. The issue isn’t with the prompt—it’s been reviewed thoroughly. The prompt is supposed to trigger the function to book appointments with Cal.com, but the function never gets executed. I’ve double-checked the function, the API key, and everything is linked and logged in correctly. Despite all that, the action to actually book just won’t happen. If anyone has experienced this issue or has insight on why the function won’t cooperate with Cal.com, I’d appreciate any advice!

Hello @ramikatebai

Could you please share your agent ID? This will help us look into the issue more effectively.

Thank you!

Hello @ramikatebai

Thanks for sharing the Agent ID. I’ve forwarded this to our team for further investigation.

We’ll get back to you as soon as we have an update.

Hello @ramikatebai

The Cal.com booking function is being executed, but Cal.com’s API rejects the booking with a 400 error because the phone number is passed without the country code prefix. You can update your prompt to instruct the agent to always include the “+1” country code when passing the phone number to the booking function for example, adding something like: "When booking an appointment, always format the phone number with the +1 country code prefix (e.g., +1951236xxxx).

Thank You