AI Agents

Connect Telegram with OpenAI

8 nodes 236 141 Automatic trigger
Download

Workflow Description

Automation template connecting Telegram messaging with OpenAI intelligence. Receives user messages from Telegram, processes them through OpenAI's language model, and automatically sends intelligent responses back to the conversation thread.

How it works

  1. 1.Capture incoming message from Telegram user via webhook trigger
  2. 2.Send message text to OpenAI API for intelligent processing
  3. 3.Wait for the model response with timeout handling
  4. 4.Route response based on content type or conditional logic
  5. 5.Send AI-generated reply directly back to Telegram chat

Use cases

  • Intelligent customer support bot answering inquiries instantly 24/7
  • Personal research assistant analyzing and summarizing information from chat

Requirements

  • Active Telegram account with verified bot API token from BotFather
  • Valid OpenAI API key with sufficient usage quota

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 8
Apps 2
Views 236
Downloads 141

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

Get the Image

Set

#1

Send Content for the Analyzed image

Set

#2

Sticky Note

Sticky Note

#3

Update Telegram Error Message

Set

#4

Wait

Wait

#5

Sticky Note1

Sticky Note

#6

Analyze image

OpenAI

#7

Switch ( image or not )

Switch

#8