This n8n workflow automates the process of summarizing YouTube video transcripts and enables users to interact with the content through AI-powered question answering via Telegram. It leverages the GPT-4o-mini model to generate summaries and provide insights based on the video’s transcript.
Input : The workflow starts by receiving a YouTube video URL. This can be submitted through:
Transcript Extraction : The URL is processed to extract the video transcript using the custom youtubeTranscripter community node (available here). The transcript is concatenated into a single text and stored in a Google Docs document.
Summarization : The GPT-4o-mini AI model analyzes the transcript and generates a structured summary, including:
Interactive Q &A: Users can ask questions about the video content via Telegram. The AI retrieves the stored transcript from Google Docs and provides accurate, context-based answers, which are sent back through Telegram.
To configure this workflow, follow these steps:
Import the Workflow : Download the provided JSON template and import it into your n8n instance.
Install the Community Node : Install the youtubeTranscripter community node via npm:
npm install n8n-nodes-youtube-transcription-kasha
Important : This node requires a self-hosted n8n instance due to its external dependencies. 3. Configure Nodes : * Webhook : Set up the webhook to receive YouTube URLs. Alternatively, configure the Telegram node if using Telegram as the input method. * Google Docs : Provide valid credentials to enable writing the transcript to a Google Docs document. * AI Model : Set up the GPT-4o-mini model for summarization and Q&A functionality. 4. Test the Workflow : Send a YouTube URL via your chosen input method (Telegram or webhook) and confirm that the summary is generated and delivered correctly.
This template is perfect for:
This workflow simplifies video content consumption by:
youtubeTranscripter community node is required and only works on self-hosted n8n instances due to its reliance on external services.

