Skip to main content

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

Workflow preview

Workflow preview
100%
Automate email classification & summary with Gmail, GPT-4o-mini & Notion preview
Open on n8n.io

Important notice

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

1. Workflow Overview

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

Best for

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

Tools used

n8n-nodes-base.gmail, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatazureopenai, n8n-nodes-base.manualtrigger, n8n-nodes-base.notion

Source and attribution

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

Original n8n.io source

1.1 Workflow description

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

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.

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 Unread Emails

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

Block 2 - Split Emails

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Format Summary

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

Block 4 - Aggregate Summary

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

Block 5 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 6 - Azure OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

Block 7 - When clicking ‘Execute workflow’

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

Block 8 - Send to Notion

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

Block 9 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

Block 16 - Sticky Note6

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

Block 17 - Sticky Note7

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

Block 18 - Sticky Note8

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

3. Summary Table

Workflow Automate email classification & summary with Gmail, GPT-4o-mini & Notion
Complexity advanced
Nodes 18
Categories Personal Productivity, Multimodal AI
Author Rahul Joshi
Published 12 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7276/7276.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 Automate email classification & summary with Gmail, GPT-4o-mini & Notion do?

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

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.