AI Agents

Automated Telegram responses using OpenAI intelligence

15 nodes 221 126 Automatic trigger
Download

Workflow Description

Connects Telegram with OpenAI to build a smart bot that receives user messages and generates natural, contextual replies. The automation maintains conversation history to understand context better and provide relevant responses.

How it works

  1. 1.Receive incoming message from Telegram
  2. 2.Send message to OpenAI model with conversation history
  3. 3.Process response and send reply back to user

Use cases

  • Customer support bot that handles common inquiries automatically
  • Intelligent assistant for brainstorming and answering questions directly in Telegram

Requirements

  • Active OpenAI account with valid API key
  • Telegram bot token obtained from BotFather

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 221
Downloads 126

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