AI Agents

Telegram automation

10 nodes 205 127 Automatic trigger
Download

Workflow Description

An automation that receives Telegram messages and routes them to an AI agent powered by OpenAI, maintains conversation context in memory, and publishes responses on X (formerly Twitter) platform.

How it works

  1. 1.Receive incoming messages from configured Telegram channels or groups
  2. 2.Process messages through an AI agent powered by OpenAI's language model
  3. 3.Store and retrieve conversation context using a memory buffer window
  4. 4.Generate intelligent responses based on message content and historical context
  5. 5.Publish processed results to connected X accounts

Use cases

  • Build an intelligent customer support chatbot on Telegram that automatically shares key responses and insights on X
  • Analyze user inquiries from Telegram and generate contextual AI responses while maintaining a public log on X

Requirements

  • Active Telegram account with access to bot and channel administration features
  • Valid OpenAI API key and X/Twitter account with authentication credentials

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Twitter/X AI Agent Telegram OpenAI Memory

Details

Trigger Automatic trigger
Nodes 10
Apps 5
Views 205
Downloads 127

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

When Executed by Another Workflow

Execute Workflow Trigger

#1

AI Agent

Agent

#2

Telegram3

Set

#3

OpenAI Chat Model

OpenAI

#4

Split into chunks1

Code

#5

Sticky Note

Sticky Note

#6

Sticky Note1

Sticky Note

#7

Simple Memory

Memory Buffer Window

#8

Sticky Note3

Sticky Note

#9

Sticky Note2

Sticky Note

#10