Templates / Automate email classification & summary with Gmail, GPT-4o-mini & Notion

Automate email classification & summary with Gmail, GPT-4o-mini & Notion

Ready for 3.0

by Rahul Joshi ✓ · 1,830 views · created 2025-08-12 · Personal Productivity, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 9 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Gmail, Azure OpenAI Chat Model and Notion.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Get Unread Emails (Gmail): get many (message)
  2. Split Emails (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Edit Fields (Edit Fields (Set)): sets 1 field: Subject
  4. Basic LLM Chain: sends a prompt to an LLM, with model: Azure OpenAI Chat Model
  5. Format Summary (Code): runs custom JavaScript code
  6. Aggregate: combines items into one
  7. Send to Notion (Notion): uses Notion

Services it uses

GmailAzure OpenAI Chat ModelNotion

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

Description: Automate your personal email management with this AI-powered inbox triage system built entirely in n8n. This template connects Gmail, Azure OpenAI (GPT-4o-mini), and Notion to classify, summarize, and store your incoming emails—helping you focus…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.