AI Agents

Connect OpenAI with Telegram

14 nodes 248 135 Scheduled trigger
Download

Workflow Description

A scheduled automation that receives messages via Telegram and processes them using OpenAI language models, splitting long texts and generating summaries, then delivering intelligent responses directly back to the chat.

How it works

  1. 1.Execute automation according to a defined schedule
  2. 2.Receive messages and data from the Telegram application
  3. 3.Process content through LLM chain and split lengthy texts
  4. 4.Summarize the content using an advanced OpenAI model
  5. 5.Send the final result and summary to the Telegram channel

Use cases

  • Intelligent chatbot that summarizes long articles and documents shared via Telegram
  • Real-time message processing system that responds to queries using artificial intelligence
  • Service for analyzing large texts, segmenting them, and converting them into concise summaries

Requirements

  • Active OpenAI API key to access advanced language models
  • Telegram account and bot token for sending and receiving messages
  • Appropriate scheduling configuration for automation repetition

Service Value

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

Apps Used

OpenAI LLM Chain Text Splitter Telegram

Details

Trigger Scheduled trigger
Nodes 14
Apps 4
Views 248
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 (14)

/

OpenAI Chat Model

OpenAI

#1

Schedule Trigger

Schedule Trigger

#2

OpenAI Chat Model2

OpenAI

#3

Sticky Note

Sticky Note

#4

Create a Prompt for DALL-E

Chain Summarization

#5

Sticky Note1

Sticky Note

#6

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#7

Create a story

Chain Summarization

#8

Generate Audio for the story

OpenAI

#9

Generate a Picture for the story

OpenAI

#10

Send Story Text

Set

#11

Send Audio for the story

Set

#12

Send Story Picture

Set

#13

Config

Set

#14