Developer & DevOps

Respond to Telegram messages with OpenAI

16 nodes 229 122 Automatic trigger
Download

Workflow Description

This template receives messages from Telegram, processes them through OpenAI to generate intelligent replies, and sends them back to the user automatically. It enables a fully automated conversational experience powered by advanced language models.

How it works

  1. 1.Receive incoming message from Telegram chat or channel
  2. 2.Process the message text through OpenAI API for smart response generation
  3. 3.Send the generated reply back to the user on Telegram

Use cases

  • Build an intelligent customer support bot that answers frequently asked questions
  • Create an automated personal assistant to handle inquiries and requests

Requirements

  • Active Telegram account with a properly configured bot token
  • Valid OpenAI API key with sufficient credits

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 229
Downloads 122

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