Automate email classification & summary with Gmail, GPT-4o-mini & Notion
Ready for 3.0What 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”.
- Get Unread Emails (Gmail): get many (message)
- Split Emails (Loop Over Items (Split in Batches)): loops over the items in batches
- Edit Fields (Edit Fields (Set)): sets 1 field: Subject
- Basic LLM Chain: sends a prompt to an LLM, with model: Azure OpenAI Chat Model
- Format Summary (Code): runs custom JavaScript code
- Aggregate: combines items into one
- Send to Notion (Notion): uses Notion
Services it uses
Other Notion + Gmail templates (120) · Other Gmail + Azure OpenAI templates (57) · Other Notion + Azure OpenAI templates (14)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Manual Trigger
n8n-nodes-base.manualTrigger - Notion
n8n-nodes-base.notion - Edit Fields (Set)
n8n-nodes-base.set
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…