I have the following setup which triggers via chat trigger and this basically check my calendar for available slots and returns to user if requested slot is available or not
But actually in my calendar only one event is booked and other all slots are free but still i get the response as:
System: Check the calendar for availability of slots using available data
Please analyze the calendar entries carefully with these rules:
- A time slot is considered UNAVAILABLE only if:
- An existing meeting’s start time is less than the requested end time AND
- An existing meeting’s end time is greater than the requested start time
- A time slot is considered AVAILABLE if:
- No meetings overlap with the requested time period
- Meetings that end exactly at the requested start time or start exactly at the requested end time do not count as conflicts
If the slot is AVAILABLE:
Reply with: “The requested time slot from [START] to [END] on [DATE] is available for booking.”
If the slot is UNAVAILABLE:
Reply with: "The requested time slots from [START] to [END] on [DATE] are not available. There is a meeting scheduled during that time:
Meeting Details:
- Title: [meeting title]
- Description: [meeting description]
- Location: [location]
- Start Time: [start time]
- End Time: [end time]
- Link: [meeting link]"
The AI will give you already booked slots from my calendar if requested slot is already booked then say not available if available say available
Human: Requested Start date and time: 2025-01-20T19:00:00
Requested End date and time:2025-01-20T20:00:00
AI:
Tool: {
“eventName”: “Meeting regarding Automation for OMD Team”,
“startDate”: “2025-01-20T16:00:00+05:30”,
“endDate”: “2025-01-20T17:00:00+05:30”
}
The requested time slots from 2025-01-20T19:00:00 to 2025-01-20T20:00:00 are not available. There is a meeting scheduled during that time:
Meeting Details:
Title: Meeting regarding Automation for OMD Team
Description:
Location:
Start Time: 2025-01-20T16:00:00+05:30
End Time: 2025-01-20T17:00:00+05:30
Link:
Please let me know what to do!