AI Agents

Connect Telegram with OpenAI

15 nodes 227 120 Automatic trigger
Download

Workflow Description

Automation template connecting Telegram with OpenAI to process messages intelligently. When a message arrives in Telegram, an AI agent sends it to ChatGPT for smart response generation, maintaining conversation context in memory and executing HTTP operations when needed.

How it works

  1. 1.Trigger activation when a message is received in Telegram channel or direct chat
  2. 2.Process message through intelligent agent connected to OpenAI ChatGPT
  3. 3.Store conversation context in buffer memory for contextual responses
  4. 4.Execute additional tools such as calculations or HTTP requests as required
  5. 5.Send generated reply back to user via Telegram

Use cases

  • Smart customer support bot answering common inquiries automatically
  • Personal assistant in Telegram performing diverse tasks and instant calculations

Requirements

  • Active Telegram account with valid bot token from BotFather
  • Valid OpenAI API key with sufficient consumption limit for requests

Service Value

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

Apps Used

AI Agent OpenAI Tool Memory HTTP Request Telegram

Details

Trigger Automatic trigger
Nodes 15
Apps 6
Views 227
Downloads 120

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)

/

Ultimate Assistant

Agent

#1

OpenAI Chat Model

OpenAI

#2

Email Agent

Tool Workflow

#3

Contact Agent

Tool Workflow

#4

Content Creator Agent

Tool Workflow

#5

Window Buffer Memory

Memory Buffer Window

#6

Tavily

HTTP Request

#7

Calculator

Tool Calculator

#8

Calendar Agent

Tool Workflow

#9

Telegram Trigger

Set

#10

Set 'Text'

Set

#11

Switch

Switch

#12

Response

Set

#13

Download File

Set

#14

Transcribe

OpenAI

#15