{"product_id":"n8n-workflow-triage-gmail-emails-w-openai-telegram-alerts","title":"n8n Workflow: Triage Gmail Emails w\/ OpenAI \u0026 Telegram Alerts","description":"\u003ch3\u003eInstantly triage Gmail with AI urgency scoring—and get Telegram alerts for what matters\u003c\/h3\u003e\n\u003cp\u003eThis 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.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMonitors Gmail every minute:\u003c\/strong\u003e triggers when a new email arrives.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts key email fields:\u003c\/strong\u003e pulls sender, subject, body snippet, message ID, and thread ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI classification \u0026amp; urgency scoring:\u003c\/strong\u003e 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.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram alert for urgent emails:\u003c\/strong\u003e sends a Telegram notification when \u003cstrong\u003eurgency ≥ 80\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDrafts replies when appropriate:\u003c\/strong\u003e if \u003cstrong\u003ereply is needed\u003c\/strong\u003e and \u003cstrong\u003eurgency ≥ 70\u003c\/strong\u003e, generates a plain-text reply via an OpenAI-compatible model and saves it as a \u003cstrong\u003eGmail draft\u003c\/strong\u003e in the original thread.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies you about the draft:\u003c\/strong\u003e sends a Telegram message confirming the draft is ready, including a preview of the draft text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDaily digest at 18:00:\u003c\/strong\u003e at 18:00, pulls the last 24 hours of Gmail emails (excluding \u003cem\u003ePromotions\u003c\/em\u003e), creates a short AI-generated digest, and posts it to Telegram.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eKeep up with high-stakes support, sales, or partner emails by alerting immediately on urgent messages.\u003c\/li\u003e\n  \u003cli\u003eSpeed up inbox management by turning qualified emails into Gmail Drafts you can approve.\u003c\/li\u003e\n  \u003cli\u003eGet a daily “what happened” summary on Telegram without manually filtering promotions.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e gmail, telegram, if, set, code, sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLLM integration:\u003c\/strong\u003e OpenAI-compatible chat model for classification, urgency scoring, reply drafting, and daily digest generation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e Gmail OAuth2 for Gmail trigger\/search\/draft creation; OpenAI API credential (or compatible provider); Telegram bot credentials.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45732237344947,"sku":"N8N-17497","price":50.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/VUVe9geB7eXxVso-9_w9J_MZyia0qB.png?v=1785143220","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-triage-gmail-emails-w-openai-telegram-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}