Skip to main content

Sort and manage your Gmail inbox with Vertex AI and Google Tasks

Workflow preview

Workflow preview
100%
Sort and manage your Gmail inbox with Vertex AI and Google Tasks preview
Open on n8n.io

1. Workflow Overview

AI Gmail Manager: Sort, Draft & Summarize Transform your chaotic inbox into a streamlined productivity hub! This advanced n8n workflow acts as your personal AI executive assistant. It automatically...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.timesaved, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.lmchatgooglevertex, n8n-nodes-base.googletaskstool, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.informationextractor, n8n-nodes-base.if

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Sort and manage your Gmail inbox with Vertex AI and Google Tasks
Workflow name
Sort and manage your Gmail inbox with Vertex AI and Google Tasks

AI Gmail Manager: Sort, Draft & Summarize

Transform your chaotic inbox into a streamlined productivity hub! This advanced n8n workflow acts as your personal AI executive assistant. It automatically reads, categorizes, and summarizes your daily emails, generates reply drafts for important messages, and syncs action items directly to Google Tasks.


đź§  Key Features

  • Intelligent Classification: Uses AI to analyze the context of incoming emails (Sender, Subject, and Snippet) and categorizes them into three levels: Action Required, Important to Read, and Unimportant/Spam.
  • Automated Inbox Decluttering: Low-priority emails (like newsletters, receipts, or login alerts) are automatically marked as read, labeled "Unimportant," and archived so you only see what matters.
  • Context-Aware AI Drafts: If an email requires a response, the workflow automatically generates a ready-to-use draft in your Gmail.
  • Automated Task Extraction: The AI scans important emails for pending tasks. If a genuine action item is detected, it automatically creates a summarized entry in Google Tasks.
  • Daily Summary: At the end of the day, the AI compiles all Priority 1 and 2 emails into a neatly structured digest and sends it directly to your inbox.
  • Built-in Time Tracking: Includes the n8n "Time Saved" node to help you visualize your productivity gains.

⚙️ How It Works

  1. Scheduled Trigger: By default, the workflow runs daily at 5:00 PM (17:00).
  2. Data Fetching: It connects to Gmail and retrieves all emails received within the last 24 hours.
  3. AI Analysis: Emails are processed by an AI Information Extractor that assigns a priority score (1–3) and determines if a reply is needed.
  4. Action Execution: Depending on the priority, emails are labeled, marked as read, archived, or sent to the AI agent for drafting and task creation.
  5. Summary Generation: Finally, the workflow merges high-priority data, uses an LLM to write a concise summary, and emails it to you.

🚀 Setup Instructions

Setup takes 10-15 Minutes depending on if you already use Google OAuth.

  1. Schedule: Set your desired trigger time and ensure the workflow timezone is set to local in the n8n settings.
  2. AI Setup: Connect your Vertex AI credentials (or your preferred AI model).
  3. Gmail: Connect your Gmail credentials.
  4. Labels: Create the following labels in your Gmail account: Important, n8n Sorted, and Unimportant.
  5. Node Sync: After creating the labels in Gmail, update the corresponding labeling nodes in this workflow to match your label names.
  6. Optional Features: Deactivate or delete any unused nodes (e.g., Google Tasks or Time Saving) to skip those steps.
  7. Language: If your emails are in a language other than English, you can adjust the prompt language within the LLM Chain nodes.
  8. Prompt Customization: You can fine-tune all prompts to your liking—especially the sorting logic, which depends on your preferred AI model and personal needs.

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

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

Block 2 - Time Saving Node

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

Block 3 - Add important Label

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

Block 4 - Mark Email as read

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

Block 5 - Mark email as read

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

Block 6 - not important Label

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

Block 7 - delete from Inbox

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

Block 8 - Google Vertex Chat Model

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

Block 9 - Google Vertex Chat Model1

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

Block 10 - Create a task in Google Tasks

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

Block 11 - Sticky Note

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

Block 12 - Fetch daily emails.

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

Block 13 - Sticky Note1

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

Block 14 - Analyze importance and reply needs via AI

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

Block 15 - removing all previous n8n tags

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

Block 16 - Sticky Note2

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

Block 17 - Filter: Reply required.

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

Block 18 - Google Task writer

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

Block 19 - Merge ID with email data.

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 20 - Combine email data: Subject, Snippet & Sender.

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

Block 21 - Google Vertex Chat Model3

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

Block 22 - Sticky Note3

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

Block 23 - Apply n8n Sorted label

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

Block 24 - Rank items by importance

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

Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Sort and manage your Gmail inbox with Vertex AI and Google Tasks
Complexity advanced
Nodes 38
Categories Ticket Management, AI Summarization
Author Raphael
Published 22 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15245/15245.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 Sort and manage your Gmail inbox with Vertex AI and Google Tasks do?

AI Gmail Manager: Sort, Draft & Summarize Transform your chaotic inbox into a streamlined productivity hub! This advanced n8n workflow acts as your personal AI executive assistant. It automatically...

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