AI Agents

Connect OpenAI with Telegram

15 nodes 216 121 Scheduled trigger
Download

Workflow Description

Automated system connecting OpenAI with Telegram via scheduled triggers. Processes incoming messages through AI models, splits lengthy responses for clarity, and sends intelligent replies automatically to maintain continuous conversation monitoring.

How it works

  1. 1.Execute the workflow at scheduled intervals using the scheduled trigger
  2. 2.Receive incoming messages from Telegram channels or groups
  3. 3.Process text through OpenAI LLM Chain for intelligent analysis and generation
  4. 4.Split long-form responses using recursive text splitting for readability
  5. 5.Send processed responses directly back to Telegram conversations

Use cases

  • Deploy an intelligent customer support bot answering queries automatically on Telegram
  • Generate daily conversation summaries and broadcast them to designated channels
  • Process and categorize customer inquiries, then deliver targeted responses

Requirements

  • Valid OpenAI API key with sufficient credits and model access
  • Active Telegram bot with authentication token and send/receive permissions
  • Stable internet connection for reliable message delivery at scheduled times

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

OpenAI Text Splitter LLM Chain Telegram

Details

Trigger Scheduled trigger
Nodes 15
Apps 4
Views 216
Downloads 121

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

/

OpenAI Chat Model

OpenAI

#1

OpenAI Chat Model1

OpenAI

#2

Schedule Trigger

Schedule Trigger

#3

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#4

OpenAI Chat Model2

OpenAI

#5

Create a Prompt for DALL-E

Chain Summarization

#6

Generate an Image for the Story

OpenAI

#7

Generate Audio for the Story

OpenAI

#8

Send the Story To Channel

Set

#9

Send Image to the Channel

Set

#10

Sticky Note

Sticky Note

#11

Sticky Note1

Sticky Note

#12

Translate the Story to Arabic

Chain Summarization

#13

Send Audio to the Channel

Set

#14

Create a Story for Kids

Chain Summarization

#15