Skip to main content

Forward filtered Gmail notifications to Telegram chat

Workflow preview

Workflow preview
100%
Forward filtered Gmail notifications to Telegram chat preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automatically forwards incoming Gmail emails to a Telegram chat only if the email subject contains specific keywords (like "Urgent" or "Server Down"). The workflow extracts key detail...

Best for

  • Ticket Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.gmailtrigger, n8n-nodes-base.if, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Forward filtered Gmail notifications to Telegram chat
Workflow name
Forward filtered Gmail notifications to Telegram chat

This workflow automatically forwards incoming Gmail emails to a Telegram chat only if the email subject contains specific keywords (like "Urgent" or "Server Down").

The workflow extracts key details such as the sender, subject, and message body, and sends them as a formatted message to a specified Telegram chat.

This is useful for real-time notifications, security alerts, or monitoring important emails directly from Telegram — filtering out unnecessary emails.

Prerequisites:

Before setting up the workflow, ensure the following:

  • The Gmail API should be enabled.
  • Create a bot using @BotFather and obtain the API key.
  • Retrieve the telegram Chat ID (for personal messages or group messages).
  • Set up OAuth2 for Gmail and use the Bot Token for Telegram.

Customisation Options :

  • Modify the subject keywords in the IF Node to change the filtering criteria.
  • Customize how the email details appear in Telegram (bold subject, italic body, etc.).
  • Extend the workflow to include email attachments in Telegram.

Steps :

Step 1: Gmail Trigger Node (On Message Received)

  • Select "Gmail Trigger" and add it to the workflow.
  • Authenticate with your Google Account.
  • Set Trigger Event to "Message Received".
  • (Optional) Add filters for specific senders, labels, or subjects.
  • Click "Execute Node" to test the connection.
  • Click "Save".

Step 2: IF Node (Conditional Filtering)

  • Add an "IF" Node after the Gmail Trigger.
  • Configure the condition to check if the email subject contains specific keywords (e.g., "Urgent", "Server Down", "Alert").
  • If the condition is true, proceed to the next step.
  • If false, you can stop or route it elsewhere (optional).

Step 3: Telegram Node (Send Message Action)

  • Click "Add Node" and search for Telegram.
  • Select "Send Message" as the action.
  • Authenticate using your Telegram Bot Token.
  • Set the Chat ID (personal or group chat).
  • Format the message using email details received from the email trigger node and set the message in text.

Steps 4. Connect & Test the Workflow

  • Link Gmail Trigger → if node → Telegram Send Message.
  • Save and execute the workflow manually.
  • Send a test email to your Gmail account.
  • Verify if the email details appear in your Telegram chat.

About the Creator, WeblineIndia

This workflow is created by the Agentic business process automation developers at WeblineIndia. We build automation and AI-driven tools that make life easier for your team. If you’re looking to hire dedicated developers who can customize workflows around your business, we’re just a click away.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Incoming Email Monitor

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 4 - Email Validation Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Send Telegram Message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

3. Summary Table

Workflow Forward filtered Gmail notifications to Telegram chat
Complexity intermediate
Nodes 5
Categories Ticket Management
Author WeblineIndia
Published 24 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3301/3301.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Forward filtered Gmail notifications to Telegram chat do?

This workflow automatically forwards incoming Gmail emails to a Telegram chat only if the email subject contains specific keywords (like "Urgent" or "Server Down"). The workflow extracts key detail...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management use case.