AI Agents

Process Telegram messages with AI agent and archive responses

12 nodes 183 105 Automatic trigger
Download

Workflow Description

Automation that receives Telegram messages, routes them to an intelligent AI agent powered by OpenAI for smart replies, maintains conversation context in memory, and optionally publishes responses to Twitter X.

How it works

  1. 1.Receive incoming message from Telegram channel or group
  2. 2.Route message to intelligent agent using OpenAI language model
  3. 3.Store conversation history in buffer memory for context retention
  4. 4.Send generated response back to user via Telegram
  5. 5.Share selected responses to Twitter X account

Use cases

  • Automate customer inquiry responses on Telegram without manual intervention
  • Maintain searchable conversation logs for customer service analysis and improvement
  • Post curated insights or responses directly to social media platforms
  • Build a multilingual AI assistant for frequently asked questions

Requirements

  • OpenAI API key with active account
  • Telegram bot token and bot ID
  • Twitter X account credentials (optional for publishing)
  • Channel or group IDs that the bot will monitor

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 183
Downloads 105

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