AI Agents

Telegram automation

12 nodes 239 155 Automatic trigger
Download

Workflow Description

An intelligent Telegram automation template that connects Telegram with an AI agent powered by OpenAI, maintains conversation history, and can publish content to external platforms like Twitter/X, delivering an advanced and interactive chatting experience for users.

How it works

  1. 1.Receive incoming messages from Telegram through the app trigger
  2. 2.Process the message using an intelligent agent connected to OpenAI's language model
  3. 3.Store conversation context in organized memory buffer for continuity
  4. 4.Execute additional actions based on request type (search, external tool calls, API requests)
  5. 5.Send the generated response back to the user via Telegram
  6. 6.Publish significant results to Twitter/X or other connected channels

Use cases

  • Smart assistant that answers questions and provides real-time information over Telegram
  • Automate content publishing from Telegram to social media platforms
  • Telegram bot that manages multiple tasks while remembering conversation history
  • Handle complex requests requiring data integration from external sources

Requirements

  • Valid OpenAI API key with appropriate model access
  • Secure access token for your Telegram bot
  • Twitter/X credentials for automated publishing (optional)
  • Knowledge of setting up Telegram webhooks for instant message delivery

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 239
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