AI Agents

Process Telegram messages with AI agent and conversation memory

7 nodes 218 131 Automatic trigger
Download

Workflow Description

An automation that receives messages from Telegram, processes them through an AI agent powered by OpenAI, and maintains conversation context in memory to deliver intelligent, context-aware responses. Perfect for building smart bots that understand conversation flow.

How it works

  1. 1.Receive incoming messages from a Telegram channel or group
  2. 2.Route messages through an AI agent connected to OpenAI
  3. 3.Store conversation history and context in a buffer memory
  4. 4.Execute HTTP requests for additional integrations if needed
  5. 5.Send intelligent responses back to the user via Telegram

Use cases

  • Intelligent customer support bot that answers FAQs while understanding previous conversation context
  • Personal assistant that remembers user preferences and interaction history across multiple conversations

Requirements

  • Valid Telegram bot token and registered bot account
  • Active OpenAI API key with appropriate permissions
  • n8n workflow configured with agent and memory node enabled

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