Use this powerful n8n workflow to automatically extract YouTube transcripts, repurpose them using OpenRouter AI, and save the refined content directly to Google Sheets. This advanced n8n template streamlines content creation.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow is designed to automate the strenuous process of turning raw YouTube video transcripts into polished, structured content assets. It offers exceptional flexibility through two distinct input methods: a Google Sheets n8n trigger, perfect for batch processing URLs, and a Webhook n8n trigger for immediate, real-time requests. The core of this automation relies on the LangChain framework within the n8n node structure, utilizing an OpenRouter Chat Model to apply complex prompts—summarizing, restructuring, and enhancing the dialogue into ready-to-publish material with clear headings. Every step, from extracting the video ID via a Code n8n node to saving the final output using the Google Sheets n8n node, is meticulously handled, providing a robust solution for scalable content generation.
This n8n workflow operates on a dual-path architecture, initiated by one of two n8n trigger events.
Path 1: Google Sheets Trigger
Monitor Google Sheet for URLs n8n trigger watches a specified spreadsheet for new entries (YouTube URLs).Extract YouTube Video ID (Sheets) Code n8n node parses the URL to isolate the video identifier.Fetch Video Transcript Data (Sheets) HTTP Request n8n node retrieves the raw transcript data.Parse Transcript Text (Sheets) Code n8n node cleans and formats the text.Rewrite The Transcript (sheets) LangChain n8n node passes the transcript to the OpenRouter Chat Model for restructuring and rewriting based on defined prompts.Parse AI Output Into Headings(sheets) Code n8n node ensures the AI-generated text is correctly segmented.Save New Script to Sheet and Save Transcript to Sheet Google Sheets n8n node steps.Path 2: Webhook Trigger
Webhook Trigger (Direct Input) n8n trigger receives a URL from an external application.Extract YouTube Video ID (Sheets)2, Fetch Video Transcript Data (Webhook)).Rewrite The Transcript (webhook) and OpenRouter Chat Model1.Return Transcript Response n8n node sends a successful confirmation back to the requesting service, completing the n8n workflow execution.To set up this powerful n8n template, follow these steps:
Monitor Google Sheet for URLs n8n trigger and all subsequent Google Sheets n8n node steps. Ensure the n8n user has read/write access to your target spreadsheets.OpenRouter Chat Model n8n nodes, which are essential for the AI processing within this n8n workflow. Monitor Google Sheet for URLs (n8n trigger): This Google Sheets Trigger n8n node initiates Path 1 whenever a new row is added or updated in the specified sheet, containing the YouTube URL.
Webhook Trigger (Direct Input) (n8n trigger): This standard Webhook n8n node initiates Path 2, allowing external systems to push a URL to the n8n workflow for immediate processing.
Extract YouTube Video ID (Sheets/Webhook) (Code n8n node): These nodes contain custom JavaScript logic to parse the full YouTube URL and extract only the essential video ID, necessary for the transcript fetching process.
Fetch Video Transcript Data (Sheets/Webhook) (HTTP Request n8n node): Responsible for calling the external API endpoint used to retrieve the full, raw text transcript for the extracted video ID.
Parse Transcript Text (Sheets/Webhook) (Code n8n node): Cleans the raw JSON response from the transcript API, often concatenating time-stamped segments into a single, clean block of text ready for AI input.
OpenRouter Chat Model / OpenRouter Chat Model1 (AI Language Model n8n node): Connects the LangChain prompt to a powerful large language model hosted via OpenRouter. This n8n node is configured to handle the complex generation task.
Rewrite The Transcript (sheets/webhook) (LangChain Chain LLM n8n node): This crucial n8n node uses specific system and user prompts to instruct the LLM on how to transform the raw transcript (e.g., summarize, add subheadings, optimize for SEO).
Parse AI Output Into Headings (Code n8n node): Analyzes the text outputted by the AI and extracts key elements or reformats it for optimal storage in the spreadsheet columns.
Use this powerful n8n workflow to automate your LinkedIn content creation. Transform raw voice transcripts into polished, on-brand posts and visual concepts using AI and specialized n8n node logic. Boost efficiency with these ready-to-use n8n templates.

Automate business review preparation using this n8n workflow. Record a voice note, transcribe with Groq, structure with GPT, and instantly generate a Google Slides draft.

This advanced n8n workflow uses a webhook trigger and AI to convert voice memos into personalized, introspective journal entries in Google Drive and instantly push tasks to Google Tasks. Deploy this n8n template for seamless productivity and memory capture.

Use this powerful n8n workflow to analyze YouTube video content via Gemini AI and automatically generate detailed, interactive multiple-choice quizzes directly within Google Forms.

Use this powerful n8n workflow template to automate the creation of engaging LinkedIn posts from YouTube video transcripts, powered by an n8n webhook trigger and OpenAI integration.

Gerald Akhidenor is an AI Automation Lead Creative with 5 years of experience in AI automation consultancy. He specializes in n8n and API integrations, driving innovative automation solutions. As founder of DominixAI, Gerald combines creative vision and technical expertise to streamline processes and boost efficiency through cutting-edge AI technologies. Website: https://dominixai.com JobMonkey: https://trafficabc.com/jobmonkey-application-generator/







































