Back to Templates

Forward Filtered Gmail Notifications to Telegram Chat

Created by

Created by: WeblineIndia || weblineindia

WeblineIndia

Last update

Last update 3 months ago

Categories

Share


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.