How can I read (all-day) appointments from Outlook and set an event?

I have a workflow that detects a meeting request arriving via email. An AI agent has access to my Outlook calendar and should check whether I already have an appointment at the requested time/date. Unfortunately, the agent doesn’t recognize all-day blockers like vacation spanning a week. Only if I set a time-specific blocker, e.g., from 8 a.m. to 6 p.m., is it correctly recognized.

Is this due to the prompt? Or because I’m using the agent Llama3.2:latest?

Additionally, I also tried to have the agent set an appointment in the calendar if I’m free at the requested time. So, I linked two tools to the agent—one to get and one to set events from Outlook—but the tool to set an event was never triggered. How can I avoid this issue?

Thanks for you help :slight_smile:

2 Likes

Hi @Jois ,

I have a workflow listed on the n8n workflows that checks a calendar, then proposes a schedule time. I’ll bet it can be modified to set your appointment as well :slight_smile:

Best,

Robert

Thank you for your answer. I have to deal with free AI models unfortunately, which is why I had tried Ollama.
But I’ll take a closer look at yours, maybe it’s not the model, but me :smiley:

1 Like

Hi @Jois
That makes sense. The tool should still work with ollama. Give it a try and let me know.

If the post solves your quesetion, please mark it as the solution so others can benifit from it.

Best,

Robert

Hi @Jois

Did this help you solve your issue?

Best,

Robert

Yo bro , how did you get the Get Event node to correctly check availability of the requested time and date ? Did you use a filter query to query the startTime/Date and endTime/date , if so what was your JSON for it . Please advise bro

i am facing this issue in outlook , i want to check in my calendar that a particular event is booked or not but in n8n there is no option to check that how can i fix it, i am using outlook as a tool with AI agent and i am passing the ai agent the input date and time to check that a particular time is available or not.