n8n Workflow: Triage Gmail Emails w/ OpenAI & Telegram Alerts
n8n Workflow: Triage Gmail Emails w/ OpenAI & Telegram Alerts
Regular price
£50.99
Regular price
£50.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
n8n Workflow: Triage Gmail Emails w/ OpenAI & Telegram Alerts
Regular price
£50.99
Regular price
£50.99
Sale price
Unit price
/
per
Instantly triage Gmail with AI urgency scoring—and get Telegram alerts for what matters
This n8n workflow watches your Gmail in near real-time, uses an OpenAI-compatible LLM to classify each incoming email and score urgency, then sends Telegram alerts for high-priority messages. When a response is warranted, it drafts a plain-text reply and saves it to Gmail Drafts for your review—plus delivers a daily 18:00 Telegram digest.
What this workflow does
- Monitors Gmail every minute: triggers when a new email arrives.
- Extracts key email fields: pulls sender, subject, body snippet, message ID, and thread ID.
- AI classification & urgency scoring: uses an OpenAI-compatible chat model with a structured JSON schema to categorize the email, assign an urgency score (0–100), determine if a reply is needed, and capture any deadline.
- Telegram alert for urgent emails: sends a Telegram notification when urgency ≥ 80.
- Drafts replies when appropriate: if reply is needed and urgency ≥ 70, generates a plain-text reply via an OpenAI-compatible model and saves it as a Gmail draft in the original thread.
- Notifies you about the draft: sends a Telegram message confirming the draft is ready, including a preview of the draft text.
- Daily digest at 18:00: at 18:00, pulls the last 24 hours of Gmail emails (excluding Promotions), creates a short AI-generated digest, and posts it to Telegram.
Use cases
- Keep up with high-stakes support, sales, or partner emails by alerting immediately on urgent messages.
- Speed up inbox management by turning qualified emails into Gmail Drafts you can approve.
- Get a daily “what happened” summary on Telegram without manually filtering promotions.
Technical details
- n8n nodes: gmail, telegram, if, set, code, sticky note.
- LLM integration: OpenAI-compatible chat model for classification, urgency scoring, reply drafting, and daily digest generation.
- Setup: Gmail OAuth2 for Gmail trigger/search/draft creation; OpenAI API credential (or compatible provider); Telegram bot credentials.
