# Need AI Agent Help

**URL:** <https://community.n8n.io/t/need-ai-agent-help/71544>\
**Category:** Questions\
**Created:** [January 20, 2025, 11:35am UTC](https://community.n8n.io/t/need-ai-agent-help/71544 "2025-01-20T11:35:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prem7](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/prem7/32/34671_2.png) [@Prem7](https://community.n8n.io/u/Prem7)\
**Post date:** [January 20, 2025, 11:35am UTC](https://community.n8n.io/t/need-ai-agent-help/71544/1 "2025-01-20T11:35:42Z")

</div>

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

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/1/5144f83ee9362d3aaf0f5c0b40867a512cdd231f.png)

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:

1. 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

1. 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!

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 20, 2025, 11:35am UTC](https://community.n8n.io/t/need-ai-agent-help/71544/2 "2025-01-20T11:35:44Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Prem7](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/prem7/32/34671_2.png) [@Prem7](https://community.n8n.io/u/Prem7)\
**Post date:** [January 20, 2025, 11:37am UTC](https://community.n8n.io/t/need-ai-agent-help/71544/3 "2025-01-20T11:37:22Z")

</div>

In Call n8n Workflow Tool

i have this:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/e/ae4f44e83a7dcae6650f65d942af3c06285c642f.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 20, 2025, 11:37am UTC](https://community.n8n.io/t/need-ai-agent-help/71544/4 "2025-04-20T11:37:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
