AI Agents

Telegram AI bot with new nodes and tools

8 nodes 216 128 Automatic trigger
Download

Workflow Description

A template connecting Telegram to an AI agent powered by OpenAI, handling incoming messages through an advanced language model while maintaining local conversation history and executing custom HTTP requests for extended functionality.

How it works

  1. 1.Receive incoming messages from Telegram users via Telegram trigger
  2. 2.Process text input through an AI agent connected to OpenAI model
  3. 3.Maintain conversation history using a bounded memory buffer
  4. 4.Execute additional tools via HTTP requests based on message requirements
  5. 5.Send AI-generated responses back to the Telegram user

Use cases

  • Intelligent assistant answering user queries on Telegram with preserved context
  • Bot integrating external services to fetch and process data with AI reasoning
  • Complex query handler leveraging memory to maintain multi-turn conversation context

Requirements

  • Valid OpenAI API key with appropriate model access
  • Telegram bot token and chat ID for authentication
  • Memory buffer configuration sized for expected conversation length
  • Reliable HTTP endpoints for advanced tool integrations

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 216
Downloads 128

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