AI Agents

Telegram automation

7 nodes 217 131 Automatic trigger
Download

Workflow Description

An intelligent automation template connecting a Telegram bot to an AI agent powered by OpenAI, processing incoming messages and generating contextual responses through retained conversation memory and custom HTTP requests.

How it works

  1. 1.Receive incoming message from Telegram via trigger
  2. 2.Process text using the intelligent agent connected to OpenAI
  3. 3.Maintain conversation context in a sliding memory buffer
  4. 4.Execute HTTP requests based on agent requirements
  5. 5.Send generated response back to Telegram

Use cases

  • Automated customer support bot that answers inquiries intelligently
  • Personal assistant that remembers prior conversation context with users
  • Data analysis bot that receives queries and returns processed information

Requirements

  • Active Telegram account and bot token from BotFather
  • Valid API key from OpenAI for language model access
  • Stable internet connection for real-time request processing

Service Value

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

Apps Used

Telegram OpenAI Memory AI Agent HTTP Request

Details

Trigger Automatic trigger
Nodes 7
Apps 5
Views 217
Downloads 131

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

Telegram Send Message

Set

#1

OpenAI Chat Model

OpenAI

#2

Window Buffer Memory

Memory Buffer Window

#3

Telegram Trigger1

Set

#4

CoinMarketCap Price Agent

Agent

#5

Adds SessionId

Set

#6

CoinMarketCap Price

HTTP Request

#7