workflows.fit
Back to n8n workflows
n8n templateFreeBy Robert Breen

Beginner Outlook calendar summary with OpenAI

A step-by-step demo that shows how to pull your Outlook calendar events for the week and ask GPT-4o to write a short summary. Along the way you’ll practice basic data-transform nodes (Code, Filter, Aggregate) and see ...

CommunicationHITLDevelopmentCore NodesAILangchainMicrosoft OutlookLm Chat Open Ai
Loading interactive preview...

Template notes

A step-by-step demo that shows how to pull your Outlook calendar events for the week and ask GPT-4o to write a short summary. Along the way you’ll practice basic data-transform nodes (Code, Filter, Aggregate) and see where to attach the required API credentials.

---

1️⃣ Manual Trigger — Run Workflow | Why | Lets you click “Execute” in the n8n editor so you can test each change. | | --- | --- |

---

2️⃣ Get Outlook Events — Get many events 1. Node type: Microsoft Outlook → Event → Get All 2. Fields selected: subject, start 3. API setup (inside this node): - Click Credentials ▸ Microsoft Outlook OAuth2 API - If you haven’t connected before: 1. Choose “Microsoft Outlook OAuth2 API” → “Create New”. 2. Sign in and grant the Calendars.Read permission. 3. Save the credential (e.g., “Microsoft Outlook account”). 4. Output: A list of events with the raw ISO start time.

> Teaching moment: Outlook returns a full dateTime string. We’ll normalize it next so it’s easy to filter.

---

3️⃣ Normalize Dates — Convert to Date Format js // Code node contents return $input.all().map(item => { const startDateTime = new Date(item.json.start.dateTime); const formattedDate = startDateTime.toISOString().split('T')[0]; // YYYY-MM-DD return { json: { ...item.json, startDateFormatted: formattedDate } }; });