Filter Gmail Alerts and Forward to Telegram Chat - n8n Workflow

Use this powerful n8n workflow to monitor specific Gmail subjects (e.g., "Urgent," "Server Down") and instantly forward the essential details as a real-time notification using the Telegram n8n node.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

IT Operations & Monitoring Teams: Who need immediate, filtered alerts about system failures or downtime.
Support Specialists: Who monitor high-priority inboxes and require real-time notifications for urgent tickets.
Users seeking Alert Fatigue Reduction: Anyone wanting to automate email filtering and only receive critical messages outside of their primary email client.
n8n Automation Specialists: Looking for practical n8n templates demonstrating conditional flow control.

Overview

In today's fast-paced environment, email inboxes are often overwhelmed with noise. When critical alerts—like a 'Server Down' notice or an 'Urgent' request—are buried, response times suffer. This efficient n8n workflow solves this problem by acting as an intelligent filter.

By leveraging the power of n8n, this automation continuously monitors your designated Gmail inbox using the Gmail n8n trigger. Only emails containing predefined high-priority keywords in the subject line pass the filter, ensuring you are not interrupted by routine correspondence. The n8n node responsible for conditional logic then routes the relevant information (sender, subject, and snippet) directly to a Telegram chat, providing immediate, actionable notification without needing to check your email manually. This is a foundational example of how n8n templates can transform communication processes.

How it Works

This automation follows a clear, three-step process built using standard n8n nodes:


  1. Monitoring Trigger: The flow begins with the 'Incoming Email Monitor' n8n trigger (a Gmail Trigger n8n node). This node polls the connected Gmail account every minute, waiting for new emails.

  2. Conditional Filtering: Upon receiving a new email, the flow passes the data to the 'Email Validation Check' n8n node (an If node). This is the core logic step. It checks if the email subject contains the word "Urgent" OR is equal to the phrase "Server Down". If the email fails this conditional check, the n8n workflow terminates.

  3. Real-Time Notification: If the subject meets the criteria (the true path of the If n8n node), the flow proceeds to the 'Send Telegram Message' n8n node. This final action constructs a neatly formatted message containing the sender's address, the full subject, and the message snippet, delivering a concise, immediate alert to the specified Telegram chat ID.

Installation Guide

To deploy this powerful n8n workflow template, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and import it directly into your n8n instance via the 'Workflows' menu using the 'New' -> 'Import from JSON' option.

  2. Set Up Gmail Credentials: Click on the 'Incoming Email Monitor' n8n trigger node. You will need to set up or select existing OAuth2 credentials for the Gmail account you wish to monitor. Ensure the credentials have the necessary scope to read emails.

  3. Set Up Telegram Credentials: Click on the 'Send Telegram Message' n8n node. You must provide valid Telegram API credentials (Bot Token) and specify the correct Chat ID where the alerts should be sent.

  4. Customize Keywords (Optional): Edit the 'Email Validation Check' n8n node to modify the keywords (currently 'Urgent' and 'Server Down') to match the specific alerts relevant to your operation.

  5. Activate: Once credentials and settings are configured, toggle the n8n workflow to 'Active' to start monitoring.

Node Details

Incoming Email Monitor (Gmail Trigger n8n node):
Function: Serves as the primary n8n trigger for the entire n8n workflow, polling the designated Gmail inbox for new messages every minute.
Key Configuration: Uses Gmail OAuth2 credentials for secure access.
Email Validation Check (If n8n node):
Function: Implements the core business logic, filtering incoming emails based on strict subject-line criteria. This ensures only high-priority messages proceed.
Key Configuration: Uses an 'OR' combinator, checking if the Subject contains 'Urgent' OR equals 'Server Down'.
Send Telegram Message (Telegram n8n node):
Function: Executes the final action, sending a real-time notification to a predefined Telegram chat.
* Key Configuration: The message text uses expressions (={{ $json.From }}) to dynamically pull data (Sender, Subject, Snippet) from the incoming email payload provided by the Gmail n8n trigger.

Related n8n Workflows

Free

Nodes: 4 Nodes
Updated: December 26 2025
View all
Created by

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.

Featured*