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 simpl...
Template notes
👤 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 chatid.
✅ Each user gets personalized AI replies ✅ Follow-up commands work per user ✅ No interference between users
🛠️ Requirements - A Telegram bot token (get via [@BotFather](https://t.me/BotFather)) - An OpenAI API Key (from https://platform.openai.com/account/api-keys) - A RapidAPI Key and Host (typically youtube-transcript3.p.rapidapi.com)