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

1,096 views · 🎬 Content Creation & Video

💡 Pro Tip — YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments — no quota limits, just structured data.

View All Scrapers

Description

👤 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:

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

✅ Supports follow-up prompts like:

🧑‍🤝‍🧑 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

📌 Notes

🔗 Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Simple Memory

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup