Triage Gmail and send high-priority alerts with Gemini and Telegram
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 12 nodes and runs on Gmail events. Along the way it connects Google Gemini Chat Model, Telegram and Gmail.
How it runs
Trigger: On Gmail events.
- Set Context (Edit Fields (Set)): sets 5 fields: data_table_id, owner_name, owner_email…
- Parse Email Fields (Code): runs custom JavaScript code
- Filter Noise & Bots (If): checks a condition and branches into true / false
- Already Logged? (Data table): get many
- Is New Email? (If): checks a condition and branches into true / false
- AI Email Analyzer (AI Agent): runs an AI agent, with model: Google Gemini Flash; output parser: Parse Analysis JSON
- Log to Data Table (Data table): create or update
- Notify via Telegram (High Priority) (If): checks a condition and branches into true / false
- Send Telegram Alert (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.
Nodes used (9)
- Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram - Gmail Trigger
n8n-nodes-base.gmailTrigger
From the author
Quick overview This workflow checks Gmail every hour, filters out automated senders, uses Google Gemini to summarize and classify each new email, logs the analysis to an n8n Data Table, and sends a Telegram alert when an email is marked as high priority. How…