Use this robust n8n workflow to extract and clean video transcripts from any public YouTube Video ID using an external API. Essential for AI summarization pipelines.
Download this n8n workflow template and start using it instantly.
This expert n8n workflow provides a streamlined method for obtaining clean, structured transcripts from public YouTube videos. Unlike solutions requiring complex YouTube Data API credentials and OAuth setup, this automation leverages a dedicated external transcript service (youtube-transcript.io).
The entire n8n workflow is designed as a reusable component, triggered by another main workflow and requiring only the youtubeVideoId as input. The core value lies in the robust parsing and cleaning steps implemented using a custom n8n node, ensuring the output is standardized, free of timestamps, and ready for advanced natural language processing (NLP) or AI summarization tasks. This reliable n8n node sequence makes this one of the most efficient n8n templates for media pipeline integration.
The execution of this n8n workflow follows a five-step process, starting with data ingestion and ending with structured, cleaned text or a defined error:
When Executed by Another Workflow n8n trigger, which signals that this sub-workflow has been called. It expects the youtubeVideoId to be passed as a parameter.Set Variables n8n node stores the input video ID securely, making it easily accessible for subsequent nodes.Get Transcript (YouTube Transcript API) n8n node sends a POST request to the youtube-transcript.io API. It includes the video ID in the JSON body. It is configured to receive the full response as text for maximized robustness.Parse API Response code n8n node handles the API's output. It includes error handling (try/catch) for parsing and attempts to extract the transcript text regardless of slight variations in the API's JSON response structure.IF Has Transcript? n8n node directs the flow based on the presence of the extracted text. If text exists, it proceeds to cleaning; if not, it proceeds to error handling.Clean Transcript code n8n node removes all unnecessary metadata, including line breaks and excessive whitespace, and filters out typical transcription cues like [Music]. It then returns the final, clean text along with calculated metrics (wordCount, charCount).No Transcript Fallback code n8n node structures an error payload, and the Stop and Error n8n node halts the parent n8n workflow execution gracefully.To use this n8n workflow, follow these steps:
youtube-transcript.io API, which typically does not require API keys for simple GET/POST requests, but ensure the Get Transcript (YouTube Transcript API) n8n node settings are correct for your configuration.Execute Workflow n8n trigger, you must call it from a primary n8n workflow using the 'Execute Workflow' n8n node, passing the youtubeVideoId as an input parameter.youtubeVideoId.youtubeVideoId is easily referenceable throughout the rest of the n8n workflow.POST request to the external transcript service. Key configurations include setting the method to POST, the URL to the transcript API endpoint, and configuring the response to be processed as 'Full Response' and 'text' for robust parsing.text field extracted in the previous n8n node is non-null and non-empty.[Music] annotations) and generates useful metrics like word and character counts, finalizing the successful output of the n8n workflow.Automate data extraction from PDFs and images in Google Drive using this powerful n8n workflow. Leverage Vertex AI (Gemini) and custom LLMs to output categorized CSVs.

Use this n8n workflow to reliably extract structured personal data from unstructured chat messages using a self-hosted Mistral NeMo LLM powered by Ollama. Leverage advanced n8n templates for privacy-focused AI automation.

Use this powerful n8n workflow to automatically extract license plate numbers from uploaded images using the GPT-4o vision model via OpenRouter. This n8n template accelerates logistics and data capture.

Use this robust n8n workflow to scrape Amazon price drop data using Bright Data, perform structured extraction and sentiment analysis via Google Gemini, and log insights to Google Sheets. Find more powerful n8n templates here.

Use this robust n8n workflow to scrape LinkedIn profile and company data via Bright Data, then use the Google Gemini n8n node to summarize and structure the results for comprehensive reporting.








































