Skip to main content

Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram

Workflow preview

Workflow preview
100%
Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI powered Telegram message analysis with multi tool notifications (Gmail, Telegram) This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifi...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-mcp.mcpclienttool, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.gmail, 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 Immanuel.

Original n8n.io source

1.1 Workflow description

Title
Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram
Workflow name
Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram

AI-powered Telegram message analysis with multi-tool notifications (Gmail, Telegram)

This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifications via Gmail and Telegram.

Detailed Description

Who is this for?

This template is for teams, businesses, or individuals using Telegram for communication who need automated, AI-driven insights and notifications. It’s ideal for customer support teams, project managers, or tech enthusiasts wanting to process Telegram messages intelligently and receive alerts via Gmail and Telegram.

What problem is this workflow solving? Use case

This workflow solves the challenge of manually monitoring Telegram messages by automating message analysis and notifications. For example, a support team can use it to analyze customer queries on Telegram with AI tools (OpenAI, Airbnb, Brave, FireCrawl) and get notified via Gmail and Telegram for quick responses.

What this workflow does

The workflow:

  1. Triggers on a Telegram update (e.g., a new message) using the Listen for Telegram Updates node.
  2. Processes the message with the Analyze Message with AI node, an AI Agent using MCP tools like OpenAI Chat, Airbnb search, Brave search, and FireCrawl.
  3. Sends notifications via the Send Gmail Notification and Send Telegram Alert nodes, including AI-generated insights.

Setup

Prerequisites:

  • Telegram bot token for the trigger and notification nodes.
  • Gmail API credentials for sending emails.
  • API keys for OpenAI, Airbnb, Brave, and FireCrawl (used in the AI Agent).

Steps:

  1. Configure the Listen for Telegram Updates node with your Telegram bot token.
  2. Set up the Analyze Message with AI node with your OpenAI API key and other tool credentials.
  3. Configure the Send Gmail Notification node with your Gmail credentials.
  4. Set up the Send Telegram Alert node with your Telegram bot token.
  5. Test by sending a Telegram message to trigger the workflow.

Setup takes ~15-30 minutes. Detailed instructions are in sticky notes within the workflow.

How to customize this workflow to your needs

  • Add more AI tools (e.g., sentiment analysis) in the Analyze Message with AI node.
  • Modify the notification message in the Send Gmail Notification and Send Telegram Alert nodes to include specific AI outputs.
  • Add nodes for other channels like Slack or SMS after the AI Agent.

Disclaimer

This workflow uses Community nodes (e.g., Airbnb, Brave, FireCrawl), which are available only in self-hosted n8n instances. Ensure your n8n setup supports Community nodes before using this template.

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 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Airbnb Execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 3 - Brave Search

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 4 - Brave Execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 5 - FireCrawl Execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 6 - FireCrawl List

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 7 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 8 - Sticky Note

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

Block 9 - Listen for Telegram Updates

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 10 - Analyze Message with AI

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 11 - Send Gmail Notification

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 12 - Send Telegram Alert

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

Block 13 - Airbnb Search

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

3. Summary Table

Workflow Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram
Complexity intermediate
Nodes 13
Categories Ticket Management, AI RAG
Author Immanuel
Published 24 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3306/3306.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 Analyze Telegram messages with OpenAI and send notifications via Gmail & Telegram do?

AI powered Telegram message analysis with multi tool notifications (Gmail, Telegram) This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifi...

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, AI RAG use case.