AI Agents

Process Telegram messages with AI and post to social media

12 nodes 240 155 Automatic trigger
Download

Workflow Description

Automation that receives Telegram messages and processes them through an AI agent powered by OpenAI, stores conversation context in memory, and publishes responses to Twitter/X. Enables instant, intelligent two-way communication across platforms.

How it works

  1. 1.Receive incoming messages from Telegram channels or groups
  2. 2.Process text using an OpenAI-powered AI agent
  3. 3.Store context and data in a sliding memory buffer for recall
  4. 4.Send replies back to Telegram or publish to Twitter/X

Use cases

  • Run automated customer support on Telegram while broadcasting key inquiries to Twitter
  • Enable real-time smart notifications from Telegram to Twitter/X channels

Requirements

  • OpenAI API key to run the language model
  • Telegram bot authentication token and Twitter/X account access

Service Value

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

Apps Used

OpenAI Memory Telegram Twitter/X Tool AI Agent

Details

Trigger Automatic trigger
Nodes 12
Apps 6
Views 240
Downloads 155

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 (12)

/

OpenAI Chat Model

OpenAI

#1

Window Buffer Memory

Memory Buffer Window

#2

Telegram

Set

#3

Correct errors

Set

#4

Execute Workflow Trigger

Execute Workflow Trigger

#5

Listen for incoming events

Set

#6

Send back an image

Set

#7

add response field

Set

#8

Sticky Note

Sticky Note

#9

Dall-E 3 Tool

Tool Workflow

#10

Generate image in Dall-E 3

HTTP Request

#11

AI Agent

Agent

#12