Classify Gmail emails with GPT-4o mini and send Telegram notifications
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 9 nodes and runs on Gmail events. Along the way it connects Gmail, Telegram and OpenAI Chat Model.
How it runs
Trigger: On Gmail events.
- Classification Agent (Text Classifier): classifies text into categories with AI, with model: 4o- mini
- High Priority (Gmail): add labels
- AI Agent: runs an AI agent, with model: 4o-mini
- Work Related (Gmail): add labels
- Promotions (Gmail): add labels
- Send a text message (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (6)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram - Gmail
n8n-nodes-base.gmail - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
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, categorizes them using an AI classifier, applies Gmail labels, and…