Send important Gmail alerts to Telegram with filters and Claude Haiku
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 workflow has 7 nodes and runs on Gmail events. Along the way it connects Gmail and Telegram. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On Gmail events.
- Pre-filter without AI (Code): runs custom JavaScript code
- Edge case? (If): checks a condition and branches into true / false
- Ask Claude (HTTP Request): calls api.anthropic.com (POST)
- Build alert (Code): runs custom JavaScript code
- Read verdict (Code): runs custom JavaScript code
- Send to Telegram (Telegram): send message
Services it uses
HTTP calls to: api.anthropic.com
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) (On new email).
Nodes used (5)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow monitors your Gmail inbox and sends Telegram notifications only for important emails, using a deterministic keyword/sender filter first and Anthropic Claude only for unclear edge cases, with an inline button that opens the…