How to Automate YouTube Video Metadata Creation with n8n & AI

This workflow automates YouTube video metadata creation using n8n and OpenAI’s GPT-4. It generates SEO-friendly titles, descriptions, tags, and hashtags from video transcripts, saving hours of manual editing and boosting video engagement.
formTrigger
agent
youTube
+7
Workflow Identifier: 1215
NODES in Use: Sticky Note, Form Trigger, Google Docs Tool, OpenAI Chat Model, Set, Langchain Agent, YouTube, Form, Output Parser, Sticky Note
Automate YouTube metadata with n8n and AI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This n8n workflow takes a YouTube video link and transcript as input.
It creates SEO-friendly title, description, tags, and hashtags automatically.
The metadata includes affiliate and promo links from Google Docs.
Finally, it updates the video on YouTube via API.

This saves hours of manual work and helps videos get found easier.


Who Should Use This Workflow

Content creators uploading YouTube videos with transcripts.
Anyone wanting fast, error-free metadata generation.

Good for creators with affiliate or promo links to add.
Users needing improved video SEO without manual research.


Tools and Services Used

  • n8n: For automation orchestration.
  • OpenAI GPT-4 Mini: To generate metadata text.
  • Google Docs: To fetch affiliate and promotional links.
  • YouTube API: To update video metadata.

Inputs, Processing, and Outputs

Inputs

  • YouTube Video Link
  • Video Transcript text
  • Optional focus keywords

Processing Steps

  1. Extract video ID from the input link.
  2. Get affiliate and promo links from Google Docs document.
  3. Send transcript, keywords, and links to GPT-4 Mini to generate JSON metadata.
  4. Parse AI JSON output for video title, description, tags, and hashtags.
  5. Format tags as comma-separated string suitable for YouTube.
  6. Update YouTube video via API with generated metadata.
  7. Show confirmation message with updated title and link.

Outputs

  • SEO optimized video title
  • Rich video description including affiliate links
  • Relevant tags and hashtags
  • YouTube video metadata updated automatically
  • Friendly confirmation displayed

Beginner Step-by-Step: How to Build This in n8n

Importing the Workflow

  1. Download the ready workflow using the Download button on this page.
  2. Open your n8n editor where workflows are managed.
  3. Use the “Import from File” option and select the downloaded workflow file.

Configuring Credentials and Settings

  1. Add or update Google Docs API credentials.
  2. Add OpenAI API Key with GPT-4 Mini access.
  3. Provide YouTube API Key to enable video metadata updates.
  4. Check the syncbricks information node to ensure the Google Docs document URL is correct.
  5. If needed, update YouTube channel IDs or other static values.

Testing and Activation

  1. Test the workflow by submitting the form with a sample YouTube video link and transcript.
  2. Watch the workflow logs to confirm all nodes run successfully.
  3. Once confirmed, activate the workflow to run automatically on actual form submissions.

Consider checking out resources on self-host n8n if planning to run the workflow on your own server.


Customization Ideas

  • Change categoryId in the YouTube node to better match video content.
  • Adjust keyword length or count in the AI prompt within the Youtube Meta Generator.
  • Add more affiliate links by updating the Google Docs document and its URL.
  • Modify call to action phrases in the AI prompt to suit your audience goals.

Common Issues and Fixes

Webhook not triggering on form submission

Make sure the webhook URL is correctly copied and active in the Webhook node.
Use n8n’s webhook test feature to check if data reaches the workflow.

Invalid YouTube video ID error

Check that the video link is the short YouTube format like “https://youtu.be/abc123”.
Update the Extract Video ID node’s replace expression if a different URL style is used.


Pre-Production Checklist

  • Submit form with real sample YouTube links and transcripts to test.
  • Verify access to Google Docs document with affiliate info.
  • Confirm OpenAI API key and GPT-4 Mini availability in the workflow.
  • Test YouTube API credentials for metadata editing permission.
  • Run full workflow once to check outputs and node responses.

Workflow Summary

✓ Automates YouTube metadata creation from transcripts.
✓ Saves creators multiple hours per video upload.
✓ Includes affiliate and promo links dynamically.
✓ Updates YouTube metadata automatically via API.
✓ Improves SEO and viewer engagement with optimized tags and descriptions.
✓ Simple upload and form use with confirmation feedback.


Automate YouTube metadata with n8n and AI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, but the Extract Video ID node must be updated to parse IDs from longer URLs.
OpenAI API usage depends on transcript size and prompt length. Keeping transcripts short reduces costs.
Yes, n8n secures API keys and uses encrypted communication. Avoid entering sensitive info in transcripts.
Check YouTube API credentials and permissions. Also verify correct video ID extraction and input.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.