AI-Powered YouTube Metadata Generation and Update - n8n Workflow

Instantly optimize your YouTube videos for SEO using this powerful n8n workflow. It leverages GPT-4o-mini to generate titles, tags, and descriptions from a transcript and automatically updates the video via the YouTube n8n node.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content creators and YouTubers looking to streamline their post-production SEO process.
Marketing teams needing rapid, consistent metadata generation.
Automation specialists seeking advanced examples of n8n templates integrating LangChain Agents and external APIs.
Users familiar with n8n and looking to leverage OpenAI for creative content generation.

Overview

Manually writing SEO-optimized titles, descriptions, and tags for every YouTube video is time-consuming and often inconsistent. This robust n8n workflow solves this by providing a unified, automated system. The user simply submits a video link, transcript, and focus keywords via an easy-to-use n8n trigger form. An advanced AI Agent (using GPT-4o-mini) then processes this information, utilizes an external Google Doc tool to fetch affiliate/promo links, and generates perfectly structured metadata. Finally, a dedicated n8n node instantly applies this highly optimized metadata directly to the live YouTube video, significantly enhancing discoverability and saving hours of manual labor. This powerful n8n template demonstrates how to build professional content pipelines.

How it Works

The entire process is initiated by the 'On form submission' n8n trigger. Users provide three crucial inputs: the YouTube Video Link, the full Video Transcript, and Focus Keywords.


  1. AI Agent Execution: The data flows to the 'Youtube Meta Generator' n8n Agent node. This Agent is configured with a detailed prompt instructing it to act as an SEO content specialist. It connects to the 'OpenAI Chat Model' (using GPT-4o-mini) and uses the 'syncbricks information' tool (a Google Docs n8n node) to embed relevant promotional links and boilerplate text into the final description.

  2. Structured Output: The Agent is configured with a 'Structured Output Parser' n8n node, ensuring the response is delivered as a reliable JSON object containing title, description, tags, hashtags, and calltoaction under a youtube_metadata key. This reliability is key for subsequent automation steps.

  3. Data Preparation: The 'Extract Video ID' n8n node uses a simple expression to strip the video ID from the submitted URL. The 'Format Tags' n8n node then converts the array of tags generated by the AI into the comma-separated string format required by the YouTube n8n node.

  4. YouTube Update: The 'YouTube' n8n node uses the extracted Video ID to update the existing video. It seamlessly injects the AI-generated Title, Description, and formatted Tags. The description is enriched with boilerplate social media links and the generated metadata.

  5. Confirmation: The final 'Form' n8n node displays a completion message to the original submitter, confirming the video update and providing the new title.

Installation Guide

To use this powerful n8n workflow, follow these steps:


  1. Import the n8n template: Copy the provided JSON and import it directly into your n8n instance.

  2. Set up Credentials:

OpenAI: You need to configure a credential for the 'OpenAI Chat Model' n8n node using your OpenAI API key.
Google Docs: Configure a Google Docs credential for the 'syncbricks information' n8n node. Note: You will need to replace the document URL with your own link repository if you are not using the original structure.
* YouTube: Configure a YouTube API credential for the 'YouTube' n8n node. This requires enabling the YouTube Data API v3 and setting up OAuth 2.0 credentials in Google Cloud, ensuring the necessary scopes are authorized for video editing.

  1. Activate the Trigger: Once credentials are set, activate the 'On form submission' n8n trigger node to generate the unique public URL for submitting video details.

  2. Customization: Review the prompt in the 'Youtube Meta Generator' n8n node to tailor the tone, required links, and channel hashtags to match your specific branding.

Node Details

On form submission (n8n trigger): The entry point of this n8n workflow, collecting the YouTube Video Link, Transcript, and Focus Keywords via a simple web form.
OpenAI Chat Model: Configured to use gpt-4o-mini, serving as the Large Language Model provider for the AI Agent.
syncbricks information (Google Docs Tool): Fetches external, static promotional data (affiliate links, course links) that the AI agent is instructed to incorporate into the final description.
Youtube Meta Generator (LangChain Agent n8n node): The core intelligence engine. It analyzes the transcript and keywords against a complex prompt to generate structured, SEO-focused output, leveraging the Google Docs tool.
Output Parser: Ensures the complex JSON output from the AI Agent strictly adheres to a defined schema, guaranteeing data integrity for subsequent steps in the n8n workflow.
Extract Video ID (Set n8n node): Essential data manipulation step. It uses a regular expression to cleanly extract the unique video identifier required by the YouTube API for the update operation.
Format Tags (Set n8n node): Transforms the AI-generated array of keywords into the single, comma-separated string format required by the YouTube API for video tags.
YouTube (n8n node): Performs the final, critical action. It uses the update operation to apply the new SEO-optimized Title, Description, and Tags to the specified video ID. This demonstrates powerful integration capabilities within n8n.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by

**Amjid Ali** is an automation expert and AI enthusiast specializing in creating intelligent workflows using low-code platforms like **n8n**. With a passion for simplifying complex processes, he designs solutions that enhance productivity and streamline operations. As an active contributor to the **n8n Creator Hub**, Amjid shares innovative use cases, practical templates, and best practices, empowering the community to unlock the full potential of workflow automation.

Featured*