Automate Gmail to Telegram Alerts with n8n Workflow

This workflow automates forwarding specific Gmail emails to Telegram chats based on keywords like ‘Urgent’ or ‘Server Down’. It helps you get real-time, filtered notifications on Telegram, saving time and reducing missed important messages.
gmailTrigger
if
telegram
+1
Workflow Identifier: 1684
NODES in Use: StickyNote, GmailTrigger, If, Telegram
Automate Gmail to Telegram with n8n

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow watches for new emails in Gmail and sends a message to a Telegram chat when the email subject contains special words like “Urgent” or “Server Down.”

It helps users avoid missing important alerts by only notifying when needed. This cuts down time wasted checking regular emails.

  • Checks Gmail inbox every minute for new messages.
  • Filters emails by subject keywords to find urgent ones only.
  • Pulls sender, subject, and snippet data from each important email.
  • Formats this info into a clear message.
  • Sends the message automatically to a chosen Telegram chat.
  • Skips unimportant emails to avoid too many alerts.

Inputs, Processing Steps, and Outputs

Inputs

  • New emails arriving in the Gmail inbox.

Processing Steps

Outputs

  • Telegram chat gets alert messages about only critical emails.

Who Should Use This Workflow

Anyone who gets many emails but only needs fast notice of important alerts can use this. It works well for system admins, managers, or anyone monitoring urgent info.

If the user spends lots of time searching inbox for critical messages, this workflow saves that time.


Tools and Services Used


Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open n8n editor where you want to run the workflow.
  3. Use “Import from File” option and select the downloaded workflow.

Step 2: Configure Credentials and Settings

  1. Add your Gmail OAuth2 credentials in the Gmail Trigger node.
  2. Add Telegram Bot API Key to the Telegram node.
  3. Update Telegram chat ID or email folders if needed.

Step 3: Test the Workflow

  1. Send example emails with “Urgent” or “Server Down” subjects to your Gmail.
  2. Check Telegram chat to see if alerts come through properly.

Step 4: Activate for Production Use

  1. Turn on the workflow in n8n to run automatically every minute.
  2. Make sure n8n is running continuously. For stable hosting, consider self-host n8n options.

Customization Ideas

  • Add more keywords in the If node to catch newer alert types like “Alert” or “Warning.”
  • Change the message formatting expression to include the full email body with $json.textPlain or $json.textHtml.
  • Adjust the Gmail polling time in the Gmail Trigger node for faster or slower checks.

Troubleshooting Common Issues

  • Gmail Trigger node not firing: OAuth token expired or Gmail API quota reached. Renew credentials and check Google API status.
  • Telegram messages not sent: Bot token wrong or bot not in chat. Fix token or add bot to group.
  • If node filter fails: Check expressions and case sensitivity. Use lower-case comparisons if needed.

Pre-Production Checklist

  • Confirm Gmail OAuth2 credentials have access and permissions.
  • Verify Telegram bot token is correct and bot has chat rights.
  • Test with emails containing alert keywords.
  • Check the If node’s conditions for correct values.
  • Ensure Telegram message format displays info neatly.
  • Backup the workflow JSON before activating.

Deployment Guide

After tests, activate the workflow in n8n for constant running.

Keep n8n active by hosting in the cloud or on a server. Check logs often for issues.

Use alerting nodes or adjust polling frequency if monitoring many emails.


Summary

✓ Saves time by sending Telegram alerts only for important Gmail emails.

✓ Reduces missed urgent messages and speeds up response.

✓ Easy to set up and customize inside n8n.

✓ Works well for system admins and anyone needing fast email alerts.


Automate Gmail to Telegram with n8n

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

No, this workflow uses Gmail Trigger node which only works with Gmail. Other email providers need different nodes and changes.
Yes, polling every minute uses Gmail API quota. The user should monitor quota usage in the Google Cloud Console.
Common causes include an invalid Telegram Bot API Key or the bot not being added to the destination chat.
Check the expression syntax and make sure case sensitivity is handled properly by using case-insensitive checking or converting text.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.