joyful_chipmunk_03581
11/17/2025, 10:49 PMAI Evy
11/17/2025, 10:49 PMAI Evy
11/17/2025, 10:50 PMlocation.type and location.integration in the correct structure . Users have reported that detailed prompting to ensure the correct API structure for the location field resolved their booking errors .
Prompt Configuration
Make sure your prompt explicitly instructs when to call the booking function [(2) ]() . For example:
When user selected a slot, please book the appointment by calling the `book_appointment` function.
Function Setup Verification
Verify your Cal.com integration includes all required fields :
- Tool name (must be unique within the agent)
- API Key from Cal.com
- Event Type ID
- Tool description
- Optional: timezone parameter
Error Pattern
The error pattern you're experiencing matches reported issues where the booking integration throws errors like ERR_BAD_REQUEST with status code 400, even when availability checks work correctly [(1) ]() .
If you've confirmed your API key and event ID are correct, focus on ensuring your prompt explicitly instructs the agent on the exact structure needed for the location parameters when making the booking call .AI Evy
11/17/2025, 10:50 PMAI Evy
11/17/2025, 10:50 PMjoyful_chipmunk_03581
11/17/2025, 10:51 PMjoyful_chipmunk_03581
11/17/2025, 10:51 PMjoyful_chipmunk_03581
11/17/2025, 10:52 PMAI Evy
11/17/2025, 10:52 PMAI Evy
11/17/2025, 10:52 PMAI Evy
11/17/2025, 10:52 PMbook_appointment function is set to one timezone (e.g., Australia/Brisbane) and Cal.com is also configured to that same timezone, but the call still defaults to a different timezone (e.g., America/Los Angeles) , this mismatch can prevent successful bookings .
Recommended Solutions:
1. Include timezone in your prompt - Explicitly state in your agent's prompt which timezone should be used when sending booking requests to Cal.com .
2. Ensure consistency across all functions - Make sure both your availability check function and booking function use the same timezone parameter .
3. Use custom functions for more control - If the timezone issue persists with preset tools, consider using custom functions with automation tools to gain more precise control over timezone variables .
The timezone parameter is optional in Cal.com integration setup, but inconsistent timezone handling between checking availability and actually booking can cause the booking to fail even when slots appear available.
**AI Evy
11/17/2025, 10:52 PM