Skip to main content

Ai-powered Gmail email organization with auto-archiving and priority labels

Workflow preview

Workflow preview
100%
Ai-powered Gmail email organization with auto-archiving and priority labels preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Who is this for? This workflow is perfect for busy professionals, students, or anyone who struggles to keep their Gmail inbox organized and clutter free. What problem is this workflow solving? It h...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.telegramtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.gmailtool, n8n-nodes-base.aggregate, n8n-nodes-base.telegram, @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 Junichiro Tobe.

Original n8n.io source

1.1 Workflow description

Title
Ai-powered Gmail email organization with auto-archiving and priority labels
Workflow name
Ai-powered Gmail email organization with auto-archiving and priority labels

Who is this for?

This workflow is perfect for busy professionals, students, or anyone who struggles to keep their Gmail inbox organized and clutter-free.

What problem is this workflow solving?

It helps you avoid email overload by automating the process of organizing your Gmail inbox. Unnecessary emails are archived, while important emails are categorized into "MustRead" or "NotNeed" for better prioritization.

What this workflow does

  • Connects to your Gmail inbox.
  • Automatically archives emails that are unnecessary or irrelevant.
  • Sorts remaining emails into two categories:
    • MustRead: Emails that require immediate attention.
    • NotNeed: Less critical emails for review later.

Setup

  1. Connect your Gmail account to the workflow.
  2. Define the criteria for "MustRead" and "NotNeed" emails by updating the filter rules in the nodes.
  3. Activate the workflow to start organizing your inbox.

How to customize this workflow to your needs

  • Adjust the filters for archiving emails based on your specific preferences.
  • Modify the sorting rules for "MustRead" and "NotNeed" categories to match your workflow.
  • Add additional actions, such as sending notifications for "MustRead" emails.

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 - When clicking ‘Test workflow’

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

Block 2 - OpenRouter Chat Model

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

Block 3 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 4 - Sticky Note

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

Block 5 - Sticky Note1

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

Block 6 - Sticky Note2

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

Block 7 - Sticky Note3

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

Block 8 - Sticky Note4

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

Block 9 - mail_label_setter

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 10 - mail_archiver

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 11 - Aggregate

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

Block 12 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - OpenRouter Chat Model1

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

Block 14 - Reporter

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

Block 15 - Get mails in INBOX

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

Block 16 - Filter processed

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

Block 17 - Categoriser

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

3. Summary Table

Workflow Ai-powered Gmail email organization with auto-archiving and priority labels
Complexity advanced
Nodes 17
Categories Personal Productivity, AI Summarization
Author Junichiro Tobe
Published 24 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3686/3686.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 Ai-powered Gmail email organization with auto-archiving and priority labels do?

Who is this for? This workflow is perfect for busy professionals, students, or anyone who struggles to keep their Gmail inbox organized and clutter free. What problem is this workflow solving? It h...

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, AI Summarization use case.