Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
Gmail AI Email Classifier & Notifier Since Gmail inboxes can quickly become cluttered, this workflow provides an automated AI based email classification system . It listens for new emails, categori...
n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.textclassifier, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.telegram, n8n-nodes-base.gmail, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Christian Moises.
Original n8n.io sourceSince Gmail inboxes can quickly become cluttered, this workflow provides an automated AI-based email classification system. It listens for new emails, categorizes them using an AI classifier, applies Gmail labels, and sends you a Telegram notification with a quick summary.
If you often miss urgent client messages or struggle with sorting work vs. promotions, this workflow ensures you never overlook important emails.
Use case: Especially useful for professionals who receive a high volume of mixed emails (clients, work, promotions). The workflow automatically labels and notifies you of new emails based on their category.
Trigger Input
from, subject, body) is passed downstream.Example JSON input:
{
"from": "[email protected]",
"subject": "Urgent project deadline",
"text": "Please review the attached contract ASAP"
}
Classify Email (AI)
The Classification Agent (powered by OpenAI via LangChain) receives the email data.
It sorts the email into one of four categories:
The classifier uses a system prompt to ensure output is returned in JSON format for downstream processing.
Apply Gmail Labels
Based on classification, the workflow applies the corresponding Gmail label:
Each label must already exist in Gmail for the operation to work.
Generate Notification
The AI Agent (notification assistant) takes the classified email and rewrites it into a short, casual notification.
Example notification:
[High Priority] New email from [email protected]
Subject: Urgent project deadline
"Please review the attached contract ASAP"
Send to Telegram
High Priority, Work Related, Promotions.chatId into the node.Work, Promotions, etc.)You can extend it by:
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.
| Workflow | Classify Gmail emails with GPT-4o mini and send Telegram notifications |
|---|---|
| Complexity | intermediate |
| Nodes | 13 |
| Categories | AI Summarization, Multimodal AI |
| Author | Christian Moises |
| Published | 18 Aug 2025 |
Use the JSON export at /data/workflows/7553/7553.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Gmail AI Email Classifier & Notifier Since Gmail inboxes can quickly become cluttered, this workflow provides an automated AI based email classification system . It listens for new emails, categori...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.