Developer & DevOps

Reply to Telegram Messages with OpenAI Intelligence

16 nodes 324 135 Automatic trigger
Download

Workflow Description

This automation captures incoming messages from a Telegram channel and processes them through OpenAI's language model, then delivers intelligent responses automatically back to users. It enables a 24/7 smart assistant without manual intervention.

How it works

  1. 1.Detect new message arriving in Telegram channel or chat
  2. 2.Forward message content to OpenAI model for intelligent processing
  3. 3.Extract and refine the AI-generated response if needed
  4. 4.Send the intelligent reply back to the user on Telegram

Use cases

  • Build an AI-powered support bot that answers customer questions automatically
  • Create a consultation assistant that provides personalized advice based on user queries
  • Implement a content moderator or question classifier that handles inquiries at scale

Requirements

  • Active Telegram account with a channel, group, or bot configured for receiving messages
  • OpenAI API key with sufficient credits and appropriate model access
  • Proper permissions to add the bot to chats and send messages on behalf of users

Service Value

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

Apps Used

Telegram OpenAI

Details

Trigger Automatic trigger
Nodes 16
Apps 2
Views 324
Downloads 135

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

/

Telegram Trigger

Set

#1

CheckCommand

Switch

#2

Sticky Note

Sticky Note

#3

Settings

Set

#4

Sticky Note1

Sticky Note

#5

Sticky Note2

Sticky Note

#6

Chat_mode

OpenAI

#7

Greeting

OpenAI

#8

Text reply

Set

#9

Send Typing action

Set

#10

Merge

Merge

#11

Sticky Note3

Sticky Note

#12

Create an image

OpenAI

#13

Send error message

Set

#14

Send image

Set

#15

PreProcessing

Set

#16