AI Agents

Reply to Telegram messages with an AI agent

15 nodes 330 158 Automatic trigger
Download

Workflow Description

Automation that captures incoming Telegram messages and routes them to an intelligent agent powered by OpenAI, which processes requests while maintaining conversation history, then delivers responses back to users in real time.

How it works

  1. 1.Receive incoming Telegram messages through the dedicated trigger
  2. 2.Send the message to an AI agent with OpenAI model for intelligent processing
  3. 3.Maintain conversation memory to understand context across multiple exchanges
  4. 4.Return the generated response and deliver it back to the Telegram user

Use cases

  • Intelligent assistant that answers general and technical questions directly within Telegram
  • Customer support bot that remembers conversation history to provide personalized assistance
  • Information retrieval agent that responds to user queries with accurate and contextual answers

Requirements

  • Active OpenAI API key with sufficient quota for concurrent requests
  • Telegram bot created via BotFather with valid authentication token
  • Clear intent structure for message handling and expected bot behavior patterns

Service Value

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

Apps Used

OpenAI Memory Telegram AI Agent

Details

Trigger Automatic trigger
Nodes 15
Apps 4
Views 330
Downloads 158

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

/

OpenAI Chat Model

OpenAI

#1

Window Buffer Memory

Memory Buffer Window

#2

Correct errors

Set

#3

Listen for incoming events

Set

#4

Download voice file

Set

#5

Combine content and set properties

Set

#6

Send final reply

Set

#7

Send error message

Set

#8

Convert audio to text

OpenAI

#9

Sticky Note

Sticky Note

#10

Sticky Note1

Sticky Note

#11

Sticky Note2

Sticky Note

#12

Send Typing action

Set

#13

AI Agent

Agent

#14

Determine content type

Switch

#15