AI Agents

Connect Telegram with OpenAI

12 nodes 200 135 Automatic trigger
Download

Workflow Description

An integrated automation template connecting Telegram and OpenAI to create an intelligent assistant that receives user messages, processes them through advanced language models, and sends automated replies back to Telegram conversations.

How it works

  1. 1.Capture incoming messages from Telegram users using the dedicated trigger node
  2. 2.Process and format message text before sending to OpenAI API
  3. 3.Send processed message to OpenAI model and retrieve intelligent response
  4. 4.Aggregate and merge returned data from OpenAI for structured output
  5. 5.Deliver AI-generated reply directly to the original message sender on Telegram

Use cases

  • Build an automated chatbot answering customer inquiries without manual intervention
  • Reduce response time by auto-answering frequent questions in Telegram channels and groups

Requirements

  • Active Telegram account with valid API token for bot integration
  • OpenAI API key with sufficient account credits for model usage

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 12
Apps 2
Views 200
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 (12)

/

Telegram Trigger

Set

#1

OpenAI

OpenAI

#2

Telegram

Set

#3

Merge

Merge

#4

Aggregate

Aggregate

#5

Sticky Note2

Sticky Note

#6

Sticky Note

Sticky Note

#7

Sticky Note1

Sticky Note

#8

Sticky Note3

Sticky Note

#9

Sticky Note4

Sticky Note

#10

Sticky Note5

Sticky Note

#11

Sticky Note6

Sticky Note

#12