Skip to main content

Smart Gmail inbox management with Gemini: Auto-label and draft replies

Workflow preview

Workflow preview
100%
Smart Gmail inbox management with Gemini: Auto-label and draft replies preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Keep your Gmail inbox organized and stress free with this AI powered workflow. Ideal for freelancers, small business owners, and productivity enthusiasts who receive a high volume of mixed emails. ...

Best for

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

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.gmail, n8n-nodes-base.stickynote, n8n-nodes-base.gmailtool, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.if, n8n-nodes-base.googlecalendartool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Smart Gmail inbox management with Gemini: Auto-label and draft replies
Workflow name
Smart Gmail inbox management with Gemini: Auto-label and draft replies

Keep your Gmail inbox organized and stress-free with this AI-powered workflow. Ideal for freelancers, small business owners, and productivity enthusiasts who receive a high volume of mixed emails. This template automatically sorts messages into predefined labels and drafts a professional reply when follow-up is needed.

How it works

  • Gmail Trigger starts the workflow whenever a new email arrives.
  • AI Classifier (Gemini or compatible model) analyzes the message, checks your previous conversations and sent emails, and assigns the correct Gmail label.
  • Smart rules ensure irrelevant messages are deleted or archived, while actionable ones are prepared for a response.
  • AI Draft Node creates a concise, friendly, and professional draft reply — stored safely in your Gmail drafts folder (never auto-sent).
  • Optional tools like CheckCalendar can suggest time slots for meetings automatically.

Together, these steps make your inbox work for you: sorting, prioritizing, and drafting responses.

Set up steps

  1. Connect your Gmail account and ensure your label categories already exist.
  2. Connect your Gemini (or other AI) credentials.
  3. (Optional) Enable CheckCalendar for scheduling suggestions.
  4. Adjust the labeling rules and prompt text to match your personal or business workflow.

Requirements

  • Gemini account for LLM
  • Google OAuth2 credentials

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 - Gmail Trigger

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

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 3 - RemoveLabel

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

Block 4 - AddLabel

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

Block 5 - TrashMessage

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

Block 6 - Sticky Note

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

Block 7 - GetThread

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

Block 8 - CheckSent

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

Block 9 - Gemini

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

Block 10 - IF Delete

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

Block 11 - IF Response

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

Block 12 - Create a draft

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

Block 13 - GetThread1

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

Block 14 - CheckCalendar

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

Block 15 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 16 - Sticky Note1

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

Block 17 - AI Email Classifier

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

Block 18 - AI Draft Maker

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

Block 19 - Sticky Note2

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

3. Summary Table

Workflow Smart Gmail inbox management with Gemini: Auto-label and draft replies
Complexity advanced
Nodes 19
Categories Personal Productivity, AI Summarization
Author Salvador
Published 09 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10664/10664.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 Smart Gmail inbox management with Gemini: Auto-label and draft replies do?

Keep your Gmail inbox organized and stress free with this AI powered workflow. Ideal for freelancers, small business owners, and productivity enthusiasts who receive a high volume of mixed emails. ...

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.