DR ANTAF
05/05/2025, 7:37 PMShubham Bajaj
05/05/2025, 7:48 PMDR ANTAF
05/05/2025, 7:59 PM2025-05-06T11:00:00+02:00)
• endDateTime – ISO-8601 end (60 min after start)
• attendees – array of invitee emails
• callerName – person booking the slot (stored in event description)
Optional fields
• timeZone – IANA zone, default Europe/Paris
• calendarId – target calendar, default primary
Business rules
• Monday-Friday only, 09 00–17 00 Paris time
• Fixed 60-min duration, starts on :00 or :30
• If slot is busy, return "conflict" instead of creating
Flow
1. Validate inputs and business rules.
2. Re-check slot with the Availability tool.
3. If free, call events.insert with all fields; append callerName to the description/body.
The goal is to check availability to book an appoitement , I say I want to book on march 6 at 3pm for example it check the availability correctly but if i say tommorow at 3pm it goes crazy and gives me random monday in octoberDR ANTAF
05/05/2025, 7:59 PMShubham Bajaj
05/09/2025, 2:23 AMShubham Bajaj
05/09/2025, 2:23 AMShubham Bajaj
05/09/2025, 2:23 AMShubham Bajaj
05/09/2025, 2:24 AM[Google Calendar Check-Availability Tool]
Checks calendar availability for a given time period.
Required fields:
• startDateTime – ISO-8601 formatted timestamp (example: 2025-05-06T11:00:00+02:00)
• endDateTime – ISO-8601 formatted timestamp (typically 60 minutes after start)
Optional fields:
• timeZone – IANA timezone, default Europe/Paris
• calendarId – target calendar, default primary
Date parsing guidelines:
• Convert all natural language dates (e.g., "tomorrow", "next Monday") to specific calendar dates
• For "tomorrow", use the current date + 1 day
• For "next [day of week]", use the next occurrence of that day after today
• For relative times (e.g., "3pm"), use the specified hour in the Europe/Paris timezone (15:00)
• All dates must be explicitly converted to ISO-8601 format with timezone offset
• Example: "tomorrow at 3pm" → convert to something like "2024-05-07T15:00:00+02:00"
Business rules:
• Only check availability Monday-Friday, 09:00–17:00 Paris time
• Slot duration is fixed at 60 minutes
• Valid start times are only on the hour or half-hour (e.g., 10:00 or 10:30)
By providing these explicit guidelines for date parsing, the LLM should handle natural language expressions more consistently before passing them to the calendar tools.