Skip to main content

Automate Gmail email triage with Eisenhower Matrix and GPT-4.1-mini

Workflow preview

Workflow preview
100%
Automate Gmail email triage with Eisenhower Matrix and GPT-4.1-mini 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 workflow for This workflow is designed for busy professionals, productivity enthusiasts, and teams drowning in email overload. Whether you're a startup founder, operations manager, exec...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.textclassifier, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.gmail, n8n-nodes-base.manualtrigger, n8n-nodes-base.filter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cristian Tala Sánchez.

Original n8n.io source

1.1 Workflow description

Title
Automate Gmail email triage with Eisenhower Matrix and GPT-4.1-mini
Workflow name
Automate Gmail email triage with Eisenhower Matrix and GPT-4.1-mini

Who is this workflow for

This workflow is designed for busy professionals, productivity enthusiasts, and teams drowning in email overload. Whether you're a startup founder, operations manager, executive assistant, or team lead, this solution helps you bring structure and clarity to your inbox. If you struggle to identify which emails deserve immediate attention versus which can be scheduled, delegated, or ignored, this workflow is for you.

What it does / How it works

This n8n automation integrates Gmail and OpenAI to apply the Eisenhower Matrix—a classic productivity framework—to incoming emails. It reads each new unread email from your inbox and automatically classifies it into one of four categories based on urgency and importance:

  • Urgent + Important: Critical messages requiring immediate action (e.g., legal, financial, investor or user-blocking issues).
  • Not Urgent + Important: High-value strategic emails you should schedule time for (e.g., partnership opportunities, key coordination).
  • Urgent + Not Important: Time-sensitive but delegable tasks (e.g., routine operations or technical updates).
  • Not Urgent + Not Important: Low-value noise like spam or promotions that should be archived or batch-reviewed later.

The classification is powered by a GPT model with custom prompts tailored to understand email context and assign the right category with high accuracy. After classification, the workflow adds the appropriate label in Gmail and automatically archives emails marked as low-priority.

The result: your inbox becomes a dynamic priority system, helping you make faster, smarter decisions without the mental load of constant triage.

How to set it up

  1. Create Gmail Labels: Manually create these four labels in your Gmail account:

    • Urgent + Important
    • Not Urgent + Important
    • Urgent + Not Important
    • Not Urgent + Not Important
  2. Connect Accounts in n8n:

    • Set up Gmail OAuth2 credentials in your n8n instance to allow reading and labeling emails.
    • Add your OpenAI API key to enable the AI classification.
  3. Update Label IDs: In the Gmail nodes of the workflow, replace the label IDs (e.g., Label_4335697733647997523) with the IDs from your own Gmail account. You can find these by creating a dummy workflow with a “Gmail → Get All Labels” node.

  4. Test and Deploy:

    • You can run the workflow manually using the “Execute Workflow” trigger or set it to run automatically with the Gmail Trigger that polls every minute.
    • Review your Gmail inbox to see how labels are applied and ensure the archive function is working as expected.

Requirements

  • A free or paid n8n instance (self-hosted or cloud)
  • Gmail account with OAuth2 access configured in n8n
  • OpenAI API key (GPT-4.1-mini recommended for accuracy)
  • Four predefined Gmail labels that match the Eisenhower Matrix
  • Basic familiarity with editing Gmail node parameters in n8n

How to customize the workflow

  • Tailor the AI prompts: Update the Text Classifier node with your own examples or definitions of what counts as urgent or important based on your business context.
  • Refine inputs: Add filters to process only emails from specific senders or domains (e.g., VIP clients, your team).
  • Extend outcomes: Trigger Slack alerts for urgent messages, auto-reply to certain senders, or sync scheduled items to your calendar.
  • Localization: Adjust labels and prompts to match your preferred language or naming conventions.
  • Archive rules: Modify the "Remove Labels" node to exclude specific categories from archiving or add additional cleanup actions.

Why this improves productivity

This workflow removes decision fatigue from your email routine. By automatically labeling and sorting emails according to urgency and importance, you:

  • Spend less time sorting emails manually
  • Focus energy on what truly matters
  • Schedule strategic tasks thoughtfully
  • Delegate or ignore distractions confidently

Instead of reacting to your inbox, you take control of it—turning email chaos into a structured priority system that aligns with your goals.

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 - Sticky Note

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

Block 2 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.3

Block 3 - AI Email Classifier

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 4 - OpenAI GPT-4

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 5 - Label: Not Urgent + Important

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

Block 6 - Label: Urgent + Important

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

Block 7 - Label: Urgent + Not Important

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

Block 8 - Label: Not Urgent + Not Important

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

Block 9 - Archive Email

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

Block 10 - Manual Test Trigger

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

Block 11 - Batch Process Emails

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

Block 12 - Filter Valid Emails

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note6

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

3. Summary Table

Workflow Automate Gmail email triage with Eisenhower Matrix and GPT-4.1-mini
Complexity advanced
Nodes 18
Categories AI Summarization, Multimodal AI
Author Cristian Tala Sánchez
Published 22 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7753/7753.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 Gmail email triage with Eisenhower Matrix and GPT-4.1-mini do?

Who is this workflow for This workflow is designed for busy professionals, productivity enthusiasts, and teams drowning in email overload. Whether you're a startup founder, operations manager, exec...

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