AI Agents

Telegram AI bot with new nodes and tools

8 nodes 255 175 Automatic trigger
Download

Workflow Description

An intelligent Telegram bot powered by OpenAI's language models that receives and responds to messages using an AI agent equipped with custom HTTP tools. It maintains conversation context through a sliding memory window for coherent, contextual interactions.

How it works

  1. 1.Receive incoming messages from Telegram using the dedicated trigger node
  2. 2.Process text and send it to OpenAI's chat model via the language model interface
  3. 3.Execute the AI agent which dynamically invokes appropriate tools based on context
  4. 4.Call HTTP request tool to fetch external data or execute remote actions
  5. 5.Store conversation history in the memory buffer for maintaining context
  6. 6.Send the final response back to the user through Telegram

Use cases

  • Automated customer support bot that answers common questions and escalates complex issues
  • Research assistant that retrieves external information and synthesizes responses
  • Sales bot that collects lead information and delivers personalized product recommendations

Requirements

  • Valid OpenAI API key with appropriate model access
  • Telegram bot token obtained from BotFather
  • Stable internet connection and proper n8n environment configuration

Service Value

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

Apps Used

OpenAI Memory Telegram HTTP Request AI Agent

Details

Trigger Automatic trigger
Nodes 8
Apps 5
Views 255
Downloads 175

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

OpenAI Chat Model

OpenAI

#1

Window Buffer Memory

Memory Buffer Window

#2

Listen for incoming events

Set

#3

Sticky Note

Sticky Note

#4

Send final reply

Set

#5

Send back an image

Set

#6

Generate image in Dalle

HTTP Request

#7

AI Agent

Agent

#8