Skip to main content

Beginner Outlook calendar summary with OpenAI

Workflow preview

Workflow preview
100%
Beginner Outlook calendar summary with OpenAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Personal Productivity automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.microsoftoutlook, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
Beginner Outlook calendar summary with OpenAI
Workflow name
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 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

// 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 } };
});

### 4️⃣ Filter the Events Down to *This* Week  
After we’ve normalised the `start` date-time into a simple `YYYY-MM-DD` string, we drop in a **Filter** node.  
Add one rule for every day you want to keep—for example `2025-08-07` **or** `2025-08-08`. Rows that match any of those dates will continue through the workflow; everything else is quietly discarded.  

*Why we’re doing this:* we only want to summarise tomorrow’s and the following day’s meetings, not the entire calendar.

---

### 5️⃣ Roll All Subjects Into a Single Item  
Next comes an **Aggregate** node. Tell it to aggregate the `subject` field and choose the option *“Only aggregated fields.”*  
The result is one clean item whose `subject` property is now a tidy list of every meeting title. It’s far easier (and cheaper) to pass one prompt to GPT than dozens of small ones.

---

### 6️⃣ Turn That List Into Plain Text  
Insert a small **Code** node right after the aggregation:

```js
return [{
  json: {
    text: items
      .map(item => JSON.stringify(item.json))
      .join('\n')
  }
}];

Need a Hand?
I’m always happy to chat automation, n8n, or Outlook API quirks.

Robert Breen – Automation Consultant & n8n Instructor
📧 [email protected] | LinkedIn

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get many events

Type / Role
n8n-nodes-base.microsoftOutlook - microsoftOutlook
Config choices
Version 2

Block 2 - OpenAI Chat Model5

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Run Workflow

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 4 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Convert to Date Format

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Filter to This week

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 9 - Combine to one Field

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 10 - Convert objects to text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Summarize Weekly Events

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

3. Summary Table

Workflow Beginner Outlook calendar summary with OpenAI
Complexity intermediate
Nodes 11
Categories Personal Productivity, Multimodal AI
Author Robert Breen
Published 08 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7157/7157.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Beginner Outlook calendar summary with OpenAI do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, Multimodal AI use case.