Gmail to Telegram, key email summaries delivered
Your inbox is noisy, but the important stuff still hides in there. Invoices, security alerts, client replies, HR updates. You end up checking Gmail “just in case”, then losing 20 minutes to newsletters and threads you didn’t need to open.
This Gmail Telegram summaries automation hits busy marketers hard because timing matters. Founders feel it too, especially when cashflow emails arrive at bad times. And if you run an agency, missing one client email can turn into a fire drill.
This workflow watches Gmail, filters for priority keywords, asks AI for a clean summary, then sends the brief to Telegram. You’ll see how it works, what you need, and what to tweak so it matches your definition of “important”.
How This Automation Works
The full n8n workflow, from trigger to final output:
n8n Workflow Template: Gmail to Telegram, key email summaries delivered
flowchart LR
subgraph sg0["Monitor New Messages Flow"]
direction LR
n0@{ icon: "mdi:brain", form: "rounded", label: "OpenAI Dialogue Engine", pos: "b", h: 48 }
n1@{ icon: "mdi:play-circle", form: "rounded", label: "Monitor New Messages", pos: "b", h: 48 }
n2@{ icon: "mdi:swap-horizontal", form: "rounded", label: "Filter Priority Emails", pos: "b", h: 48 }
n3@{ icon: "mdi:cog", form: "rounded", label: "Skip Noncritical Mail", pos: "b", h: 48 }
n4@{ icon: "mdi:robot", form: "rounded", label: "Generate Email Brief", pos: "b", h: 48 }
n5["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/telegram.svg' width='40' height='40' /></div><br/>Dispatch Telegram Brief"]
n0 -.-> n4
n1 --> n2
n2 --> n4
n2 --> n3
n4 --> n5
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n1 trigger
class n4 ai
class n0 aiModel
class n2 decision
classDef customIcon fill:none,stroke:none
class n5 customIcon
The Problem: Important Emails Get Buried
Most people don’t miss critical emails because they’re careless. They miss them because Gmail is doing its job a little too well, letting everything in. A delivery update lands next to a payment reminder. A job interview reply sits under ten promos. So you keep checking, scanning subject lines, opening messages, then closing them again. That context switching adds up over a week, and it’s exhausting. Worse, “I’ll reply later” turns into “I forgot,” and now you’re chasing invoices, late confirmations, or security alerts after the fact.
It adds up fast. Here’s where it usually breaks down in real life.
- You spend a few minutes per inbox check, and you do it far more often than you think.
- Priority emails get noticed late because they look like everything else at a glance.
- Forwarding or copying messages to someone else becomes another manual task that gets skipped.
- Rules and labels help, but they don’t tell you what the email actually wants from you.
The Solution: AI-Powered Gmail Summaries Sent to Telegram
This workflow monitors your Gmail inbox on a short interval (about every minute) and looks for new messages. When an email arrives, it checks the subject and body for keywords you care about, like “invoice,” “payment,” “security,” “delivery,” or “interview.” If it’s not relevant, the automation does nothing and moves on. If it matches, the email content is sent to an OpenAI model (GPT-4o-mini in the workflow) through an AI Agent that creates a short, human-readable brief. That summary is then formatted and delivered straight into your chosen Telegram chat via your bot, so you can scan it in seconds and decide if you need to act.
The workflow begins with a Gmail trigger, then a smart filter decides what counts as “priority.” From there, AI generates a concise summary, and Telegram receives a clean message you can read without opening your inbox.
What You Get: Automation vs. Results
| What This Workflow Automates | Results You’ll Get |
|---|---|
|
|
Example: What This Looks Like
Say you check Gmail about 12 times per workday, and each “quick check” takes roughly 3 minutes once you open a couple messages. That’s about 35 minutes daily. Now imagine only the important emails get pushed to Telegram: you skim 6 to 10 briefs a day in under a minute total, then open Gmail only when a brief calls for action. Even if you still hop into Gmail twice a day, you’re getting back about 25 minutes, most days.
What You’ll Need
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Gmail for monitoring incoming email with OAuth.
- Telegram to receive the summaries via a bot.
- OpenAI API key (get it from your OpenAI dashboard)
Skill level: Beginner. You’ll connect accounts, paste keys, and edit a keyword list.
Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).
How It Works
A new email arrives in Gmail. The workflow’s Gmail trigger watches for new messages on a frequent interval, so you’re not waiting hours for an update.
The email is checked for priority keywords. An “If” filter scans the subject and body for terms you define (like invoices, security alerts, or job replies). If it doesn’t match, the workflow intentionally stops with a no-op.
AI turns the email into a brief you can scan. The OpenAI chat model powers an AI Agent that extracts the key facts, highlights any due dates or required action, and keeps the output short enough to read on a lock screen.
The summary is delivered to Telegram. A Telegram node sends the formatted message to your chosen chat ID via your bot, so it lands where you already spend time.
You can easily modify the keyword list to match your business and route different email types to different Telegram chats based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Gmail Trigger
Set up the workflow to watch for new emails and pass message data into the pipeline.
- Add the Monitor New Messages node as your trigger.
- Credential Required: Connect your gmailOAuth2 credentials.
- Set Simple to
falseto retrieve full message data. - Under Poll Times, keep the schedule as
everyMinuteto check for new mail frequently.
Step 2: Connect Gmail and Filter Priority Emails
Route only important messages into the summarizer based on subject or body keywords.
- Connect Monitor New Messages to Filter Priority Emails.
- In Filter Priority Emails, keep Combinator set to
orso either condition can pass. - Set the first condition Left Value to
={{ $json.subject }}with Operationcontainsand Right Valuesales. - Set the second condition Left Value to
={{ $json.text }}with Operationcontainsand Right Valuejobs. - Connect the true output of Filter Priority Emails to Generate Email Brief, and the false output to Skip Noncritical Mail.
⚠️ Common Pitfall: Filter Priority Emails uses case-sensitive matching. Ensure your keywords (like sales and jobs) match the casing you expect in emails.
Step 3: Set Up the AI Summarizer
Configure the AI agent to summarize email content for Telegram delivery.
- Add the Generate Email Brief node and ensure it is connected from Filter Priority Emails.
- Set Text to
=Email Subject: {{ $json.subject }} Email Body: {{ $json.text }}. - Set Prompt Type to
defineand keep Has Output Parser enabled. - In Options → System Message, use the full prompt:
=# 🧠 Multi-Purpose Email Summarizer You are an intelligent assistant that reads all kinds of emails — work-related, personal, financial, promotional, alerts, and more. Your job is to: - Understand the core message and intent of the email - Write a short, clear **summary (max 300 characters)** as if you're notifying the user on Telegram - Use **plain English** with light emojis where helpful (📌, ⚠️, ✅, 💰, 🔔, etc.) - Highlight any important info: payment due, meeting, offer, delivery, confirmation, alert, etc. - Make sure it sounds natural and relevant — like a smart assistant updating someone quickly ## ✍️ Output Format: Only give the **summary text**. No intro, no explanation, no formatting tags. --- ### 📨 Examples: **Email about invoice:** 📌 Invoice from AWS for $23.50 is due by July 20. Check your billing portal to avoid service disruption. **Email from HR:** ✅ HR shared your July payslip. No action needed unless there's an error. **Amazon delivery email:** 📦 Your Amazon order "AirPods Pro" has been delivered today. Enjoy! **Newsletter:** 📰 New issue of "FinTech Weekly" is out — AI trends, market insights & more. --- Only return a short, smart Telegram-style summary like above — no headers, no extra context.. - OpenAI Dialogue Engine is connected as the language model for Generate Email Brief — ensure credentials are added to OpenAI Dialogue Engine, not the agent node.
- Credential Required: Connect your openAiApi credentials in OpenAI Dialogue Engine.
Step 4: Configure the Telegram Output
Send the AI-generated summary to Telegram.
- Add the Dispatch Telegram Brief node and connect it to Generate Email Brief.
- Credential Required: Connect your telegramApi credentials.
- Set Text to
={{ $json.output }}to send the AI summary. - Set Chat ID to
[YOUR_ID]with your Telegram chat or channel ID.
⚠️ Common Pitfall: If Chat ID is incorrect or missing, Dispatch Telegram Brief will fail. Verify the ID by sending a test message in Telegram first.
Step 5: Test and Activate Your Workflow
Validate the end-to-end flow from Gmail to Telegram before enabling it in production.
- Click Execute Workflow and send yourself a test email containing
salesin the subject orjobsin the body. - Confirm that Monitor New Messages triggers, Filter Priority Emails routes to Generate Email Brief, and Dispatch Telegram Brief sends a summary.
- Verify the Telegram message is concise and reflects the email content correctly.
- Once validated, toggle the workflow to Active to run continuously.
Common Gotchas
- Gmail OAuth credentials can expire or lack the right scope. If things break, check your n8n Gmail credential status and Google Cloud OAuth consent settings first.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.
Frequently Asked Questions
About 30 minutes if you already have your Telegram bot and OpenAI key.
No. You’ll mainly connect Gmail and Telegram, then edit the keyword filter. n8n’s visual editor handles the rest.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API usage, which is usually small for short summaries but depends on how many emails you process.
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
Yes, and it’s one of the best upgrades. You can add multiple keyword groups in the “Filter Priority Emails” condition, then send invoice-type briefs to one Telegram chat and security alerts to another. Many teams also adjust the “Generate Email Brief” prompt to force a consistent format (Action needed, Amount, Due date, Link). If you want, you can even exclude specific senders so recurring promos never touch the AI step.
Most of the time it’s the bot token or chat ID being wrong, or the bot was never started in that chat. Double-check the Telegram credential in n8n, then send a manual test message from the Telegram node. If it works in a private chat but not a group, you may need to add the bot properly and confirm it has permission to post.
A lot, as long as your Gmail and OpenAI limits are respected.
Often, yes, because n8n makes filtering and branching cheaper and more flexible once things get a little complex. You can self-host for unlimited runs, and the AI Agent setup is easier to iterate on when you’re refining summary quality. Zapier or Make can still be a good fit for a simple “email to message” forwarder, honestly. But once you want keyword routing, different message formats, or tighter control over what hits the AI step, n8n usually wins. Talk to an automation expert if you want help choosing.
Set it up once and your inbox stops being the place you “hang out.” The workflow handles the repetitive scanning so you can jump in only when something actually matters.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.