Automate Email Classification & Summary with Gmail, GPT-4o-mini & Notion

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on June 05, 2026

Description

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 only on what matters.
The workflow fetches unread emails from Gmail, runs them through a custom AI classification model (Important, Ignore, Delegate, Reply Later), creates clear summaries, and stores the results in Notion for future reference. No more clutterโ€”your inbox is automatically sorted, prioritized, and documented.

โœ… What This Template Does (Step-by-Step):

๐Ÿ“ง Fetch Unread Emails from Gmail

Retrieves only unread, inbox-labeled emails via Gmail API.
Captures sender, subject, and email content for processing.

๐Ÿ”„ Split Emails for Individual Process- ing

Breaks down bulk email retrieval into single-item batches for parallel AI classification.

โœ๏ธ Clean & Structure Email Data

Extracts subject, sender, and message text.
Removes unnecessary metadata for cleaner AI inputs.

๐Ÿค– AI Classification with Azure OpenAI (GPT-4o-mini)

Categorizes emails into Important, Ignore, Delegate, or Reply Later.
Uses a precise, prompt-engineered LLM chain for consistent results.

๐Ÿ“Š Generate Clear, Actionable Summaries

Combines classification and key email details into concise summaries.

๐Ÿ“ˆ Aggregate Results into a Digest

Merges all processed email summaries into a batch report.

๐Ÿ—‚ Store Insights in Notion

Saves structured summaries and classifications into a Notion page for easy tracking and retrieval.

๐ŸŽฏ Perfect For:
Busy professionals who want a clutter-free inbox.
Founders & executives managing high email volume.
Remote teams needing quick email triage and visibility.
Productivity enthusiasts looking to integrate AI into their workflow.

โš™๏ธ Built With:
Gmail API (email retrieval)
n8n Split In Batches (parallel processing)
Azure OpenAI GPT-4o-mini (classification & summarization)
Notion API (data storage & archiving)

๐ŸŒŸ Key Benefits:
โœ… Saves hours of manual email triage.
๐Ÿ” Ensures no important emails are missed.
๐Ÿง  AI-driven, consistent prioritization.
๐Ÿ“’ Centralized email intelligence in Notion.
๐Ÿ›  Fully no-code and customizable.

Nodes Used (5)

Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Notion
n8n-nodes-base.notion