Skip to main content

Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o

Workflow preview

Workflow preview
100%
Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This workflow is for content creators, marketers, educators, or anyone who wants to instantly summarize YouTube videos and repurpose them into different formats (LinkedIn post, twee...

Best for

  • Content Creation automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.telegramtrigger, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aashiq.

Original n8n.io source

1.1 Workflow description

Title
Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o
Workflow name
Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o

👤 Who’s it for

This workflow is for content creators, marketers, educators, or anyone who wants to instantly summarize YouTube videos and repurpose them into different formats (LinkedIn post, tweet, etc.) via a simple Telegram chatbot.

⚙️ How it works

This n8n automation listens for messages in Telegram. If the message contains a YouTube link, it:

  • Extracts the video ID
  • Fetches the video transcript using RapidAPI
  • Cleans the transcript of any special characters
  • Sends it to OpenAI to generate a summary

If the message is not a link, it simply acts as an AI chatbot using OpenAI with memory support.

✅ Supports follow-up prompts like:

  • “Make it shorter”
  • “Turn this into a LinkedIn post”
  • “Create a tweet thread”

🧑‍🤝‍🧑 Multi-User Support

This Telegram bot supports multiple users simultaneously. It tracks memory and context separately for each user using Telegram's unique chat_id.

✅ Each user gets personalized AI replies
✅ Follow-up commands work per user
✅ No interference between users

🛠️ Requirements

> 🚨 API keys must be added manually — they are not included in the template.

🧩 How to Set It Up

  1. Configure the Telegram Trigger node with your bot token.
  2. In the HTTP Request node, set:
    • X-RapidAPI-Key: your RapidAPI key
    • X-RapidAPI-Host: your RapidAPI host URL
  3. Add your OpenAI API credentials to the AI Agent node.

Use the provided sticky notes for guidance inside the workflow itself.

🎛️ How to Customize

  • Modify AI prompt behavior in the AI Agent node
  • Change the text formatting in the Code node
  • Use a different transcript API if preferred
  • Add commands like make it into a blog post, summarize in bullet points, etc.

📌 Notes

  • All nodes are renamed to reflect their function
  • API credentials are removed for security
  • Includes colored boxes and sticky notes to guide the user
  • Compatible with n8n cloud and self-hosted setups

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Trigger: Telegram Bot Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 7 - Check: Is YouTube Link?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Extract Chat & Video ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Fetch YouTube Transcript (via RapidAPI)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Clean Transcript Symbols

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - AI Chat & Summarizer Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 12 - Clean AI Output Formatting

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Send Reply to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o
Complexity intermediate
Nodes 14
Categories Content Creation, AI Chatbot
Author Aashiq
Published 30 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5468/5468.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Multi-user Telegram bot to summarize & repurpose YouTube videos with GPT-4o do?

Who’s it for This workflow is for content creators, marketers, educators, or anyone who wants to instantly summarize YouTube videos and repurpose them into different formats (LinkedIn post, twee...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI Chatbot use case.