Developer & DevOps

Connect Telegram with OpenAI

16 nodes 240 155 Automatic trigger
Download

Workflow Description

Automation receives messages from Telegram, sends them to OpenAI for processing, and returns AI-generated responses automatically to the Telegram channel. Supports multiple message handling and efficient response organization.

How it works

  1. 1.Receive incoming messages from Telegram using trigger node
  2. 2.Forward message text to OpenAI for analysis or content generation
  3. 3.Retrieve AI response from OpenAI API
  4. 4.Send response back to Telegram chat or channel automatically

Use cases

  • Intelligent customer support bot that responds to inquiries automatically
  • Personal assistant delivering instant answers to user questions in Telegram
  • Content generation tool suggesting customized texts or replies

Requirements

  • Active Telegram account with permissions to send and receive messages
  • OpenAI API key with sufficient credits for operations
  • Webhook or polling configuration to receive new messages

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 240
Downloads 155

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