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.
- 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
.txt
file 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
.txt
format - βοΈ 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