Skip to content

drisskhattabi6/YouTube-Transcript-Summarizer-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“½οΈ 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

Releases

No releases published

Packages

No packages published