AI Agents

Process Telegram messages with AI agent and broadcast to X

12 nodes 300 117 Automatic trigger
Download

Workflow Description

Automation template that receives Telegram messages, processes them through an OpenAI-powered intelligent agent, maintains conversation context in memory, and automatically distributes responses and posts to Twitter/X.

How it works

  1. 1.Receive incoming messages from Telegram
  2. 2.Process message through OpenAI agent with contextual memory
  3. 3.Store conversation history in buffer memory
  4. 4.Send response back to user via Telegram
  5. 5.Publish relevant content to Twitter/X account

Use cases

  • Automate customer support and inquiry responses on Telegram
  • Generate and publish social content from text conversations
  • Build a context-aware AI assistant across multiple conversations

Requirements

  • Telegram account with API access and bot token
  • OpenAI API key for language model execution
  • Twitter/X account with authentication credentials

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 300
Downloads 117

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