📽️ YouTube Transcript Summarizer Bot 🤖

🚀 Overview

An AI-powered automation workflow that extracts transcripts from YouTube videos shared via Telegram and returns:

  • The full transcript as a .txt file.
  • A summarized version of the transcript using Google Gemini LLM.

This bot is built with n8n, combining various APIs and automation tools for a smooth and scalable experience.


⚙️ How It Works

  1. Telegram Trigger: The bot listens for YouTube links sent via Telegram.
  2. Validation: Verifies the video link and extracts the YouTube video ID.
  3. Transcript Extraction: Uses RapidAPI to fetch the transcript from the video.
  4. Text File Creation: Saves the transcript as a .txt file and sends it back to the user.
  5. Transcript Chunking: Breaks down the transcript into manageable parts.
  6. LLM Summarization: Sends chunks to Google Gemini for summarization.
  7. Final Output: Combines the results and sends a final summarized transcript to the user.

🛠 Tools & Technologies

  • 🧠 Google Gemini API – for summarizing long video transcripts
  • 🔁 n8n – to design and run the automation workflow
  • 🤖 Telegram Bot API – to interact with users
  • 🌐 RapidAPI (YouTube Transcript API) – for fetching transcripts
  • 💻 JavaScript – for logic and data transformation

📷 Demo

Full automation workflow in n8n

Workflow Overview

Sample Telegram interaction and summarization result

Telegram Interaction


📦 Features

  • ✅ Fully automated with no manual steps
  • 📄 Transcript returned in .txt format
  • ✂️ Automatically chunked and summarized with LLM
  • 💬 Easy integration via Telegram
  • 💡 Scalable and customizable for more AI tasks

📁 Folder Structure

📁 /YouTube-Transcript-Summarizer-Bot
├── README.md
├── n8n_workflow.json
├── assets/
│   ├── n8n_workflow.png
│   └── telegram_demo.jpg