Developer & DevOps

Connect Telegram with OpenAI

16 nodes 226 122 Automatic trigger
Download

Workflow Description

An automation template that connects your Telegram account with OpenAI's API, enabling you to use ChatGPT directly within Telegram conversations. Messages are automatically sent to OpenAI for processing, and responses are delivered back to the chat instantly.

How it works

  1. 1.Receive incoming messages from Telegram using the dedicated trigger node
  2. 2.Route messages to OpenAI API for intelligent processing and response generation
  3. 3.Send the generated reply automatically back to the Telegram conversation

Use cases

  • Get instant answers from ChatGPT without leaving Telegram
  • Automate content creation and research tasks through chat messages

Requirements

  • Active Telegram account with a valid bot token
  • 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 226
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