YouTube Transcript Summarization and Metadata Generation
detail.loadingPreview
Automates the extraction, summarization, and structured metadata generation from YouTube video transcripts.
About This Workflow
This workflow leverages n8n to process YouTube video transcripts. It starts by receiving a YouTube URL via a webhook, extracts the video ID, retrieves video details, and then fetches the transcript. The transcript is concatenated and fed into a Langchain LLM node to generate a structured summary based on specific guidelines. Finally, the generated summary along with video metadata (title, description, URL, ID) is prepared as a response and sent to the webhook, and also forwarded to a Telegram bot.
Key Features
Core Features
- Webhook Integration: Accepts YouTube URLs via a POST request.
- YouTube Video ID Extraction: Reliably extracts YouTube video IDs from various URL formats.
- Video Metadata Retrieval: Fetches video title, description, and other details.
- Transcript Fetching: Utilizes a dedicated node to retrieve the transcript of a YouTube video.
- Text Concatenation: Merges transcript segments into a single text block for processing.
- Structured Summarization: Employs Langchain's
chainLlmto generate a detailed, structured summary adhering to predefined markdown formatting rules (Level 2 headers, bullet points, bold terms, tables). - Metadata Assembly: Gathers video details and summary into a consolidated response object.
- Webhook Response: Returns the generated structured metadata back to the originating webhook.
- Telegram Notification: Sends a basic notification (title and URL) to a Telegram chat.
How To Use
How to Use
- Setup Webhook: Configure a webhook node (
Webhook) to listen for incoming POST requests. Thepathis set toytube. - Input YouTube URL: Send a POST request to your webhook endpoint with a JSON body containing a
youtubeUrlfield (e.g.,{ "youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }). - URL Processing: The
Get YouTube URLnode (Get YouTube URL) captures this URL. TheYouTube Video IDnode (YouTube Video ID) extracts the video ID using a JavaScript code snippet. - Video Details: The
Get YouTube Videonode (Get YouTube Video) fetches metadata (title, description) for the video using the extracted ID. - Transcript Generation: The
YouTube Transcriptnode (YouTube Transcript) retrieves the video's transcript. - Transcript Splitting: The
Split Outnode (Split Out) ensures each transcript segment is processed individually. - Concatenate Transcript: The
Concatenatenode (Concatenate) merges all transcript segments into a single string (concatenated_text). - Summarize Transcript: The
Summarize & Analyze Transcriptnode (Summarize & Analyze Transcript) uses a Langchain LLM to analyze theconcatenated_textand generate a structured markdown summary based on the specified prompt. - Assemble Response: The
Response Objectnode (Response Object) compiles the generated summary, original video metadata (title, description, ID, URL), and initializes an emptytopicsarray. - Respond to Webhook: The
Respond to Webhooknode (Respond to Webhook) sends the compiled response back to the client that triggered the webhook. - Telegram Notification: The
Telegramnode (Telegram) sends a basic message to a configured Telegram chat, including the video title and URL.
Apps Used
Workflow JSON
{
"id": "7daaef47-c708-4db7-b78e-65cf6f2d074a",
"name": "YouTube Transcript Summarization and Metadata Generation",
"nodes": 8,
"category": "Content Analysis",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 7daaef47-c708...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
AI-Powered YouTube Playlist & Video Summarization and Analysis
Automates the summarization and analysis of YouTube playlists and individual videos using AI.