AI Agents

Connect Telegram with OpenAI

15 nodes 230 140 Automatic trigger
Download

Workflow Description

Automation that connects your Telegram bot with an intelligent agent powered by OpenAI. It maintains conversation context through dynamic memory, enabling natural and continuous dialogues without losing context across interactions.

How it works

  1. 1.Receive incoming Telegram messages automatically when new messages arrive
  2. 2.Process messages through an intelligent agent connected to OpenAI API
  3. 3.Store conversation context in memory to improve future responses
  4. 4.Send the generated reply back to the user on Telegram instantly

Use cases

  • Automated customer support for businesses via Telegram with intelligent responses
  • Personal assistant that answers questions and retains context across multiple conversations

Requirements

  • Valid API key from OpenAI
  • Active Telegram bot token
  • Stable internet connection

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 230
Downloads 140

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