An AI-powered automation workflow that extracts transcripts from YouTube videos shared via Telegram and returns:
- The full transcript as a
.txtfile. - 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.
- Telegram Trigger: The bot listens for YouTube links sent via Telegram.
- Validation: Verifies the video link and extracts the YouTube video ID.
- Transcript Extraction: Uses RapidAPI to fetch the transcript from the video.
- Text File Creation: Saves the transcript as a
.txtfile and sends it back to the user. - Transcript Chunking: Breaks down the transcript into manageable parts.
- LLM Summarization: Sends chunks to Google Gemini for summarization.
- Final Output: Combines the results and sends a final summarized transcript to the user.
- 🧠 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
Full automation workflow in n8n
Sample Telegram interaction and summarization result
- ✅ Fully automated with no manual steps
- 📄 Transcript returned in
.txtformat - ✂️ Automatically chunked and summarized with LLM
- 💬 Easy integration via Telegram
- 💡 Scalable and customizable for more AI tasks
📁 /YouTube-Transcript-Summarizer-Bot
├── README.md
├── n8n_workflow.json
├── assets/
│ ├── n8n_workflow.png
│ └── telegram_demo.jpg

