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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free