Skip to main content

Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization

Workflow preview

Workflow preview
100%
Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Video Metadata Extraction & YouTube Auto Upload with AI Automatically process video files, extract metadata, generate AI optimized titles/descriptions/tags, and upload directly to YouTube with prop...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by masahiro hanawa.

Original n8n.io source

1.1 Workflow description

Title
Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization
Workflow name
Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization

Video Metadata Extraction & YouTube Auto-Upload with AI

Automatically process video files, extract metadata, generate AI-optimized titles/descriptions/tags, and upload directly to YouTube with proper categorization and thumbnail handling.

Key Features

  • YouTube Node Integration: Direct video upload to YouTube with full metadata
  • Binary Data Handling: Proper video and thumbnail binary processing
  • AI-Powered SEO Optimization: Generates engaging titles, descriptions, and tags
  • Video Metadata Extraction: Analyzes video properties (duration, resolution, codec)
  • Thumbnail Processing: Extracts or uploads custom thumbnails
  • Category Auto-Selection: AI determines optimal YouTube category

How It Works

  1. Video Intake: Receives video file via webhook or cloud storage trigger
  2. Metadata Extraction: Analyzes video file for technical properties
  3. AI Content Generation: Creates SEO-optimized title, description, and tags
  4. Thumbnail Processing: Extracts frame or uses provided thumbnail
  5. YouTube Upload: Uploads video with all metadata
  6. Post-Upload Processing: Retrieves video ID, creates playlist entry
  7. Notification: Sends confirmation with video URL

Required Credentials

  • YouTube OAuth2 (for video upload)
  • OpenAI API (for AI metadata generation)
  • Google Drive or Dropbox (optional, for cloud storage triggers)
  • Gmail (for notifications)
  • Google Sheets (for tracking)

Unique Features

  • Uses YouTube node for direct video upload (rarely used in templates)
  • Binary data manipulation for video and thumbnail handling
  • AI-generated SEO metadata optimized for YouTube algorithm
  • Category detection using AI classification
  • Merge node with chooseBranch for conditional flows

Example Request

{
  "videoFile": "<binary data>",
  "projectName": "Product Demo 2024",
  "targetAudience": "developers",
  "language": "en",
  "thumbnailFile": "<binary data>",
  "playlistId": "PLxxxxxxxx",
  "publishTime": "2024-01-15T14:00:00Z"
}

Supported Video Formats

  • MP4, MOV, AVI, MKV, WebM
  • Maximum file size: 128GB (YouTube limit)
  • Recommended: MP4 with H.264 codec

Output

{
  "videoId": "dQw4w9WgXcQ",
  "videoUrl": "https://youtu.be/dQw4w9WgXcQ",
  "title": "AI-Generated Title",
  "description": "SEO-optimized description...",
  "tags": ["tag1", "tag2", "tag3"],
  "category": "Science & Technology",
  "uploadStatus": "processed",
  "thumbnailUrl": "https://i.ytimg.com/vi/..."
}

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Video Upload Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Initialize Upload Session

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Validate Binary Data

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Extract Video Metadata

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Error Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 11 - Prepare AI Context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - AI Metadata Generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 13 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Parse AI Metadata

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Check Scheduled Publish

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Set Scheduled Settings

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Set Immediate Publish

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Merge Publish Settings

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 19 - YouTube Upload Video

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 20 - Process Upload Result

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Check Playlist Add

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - Add to Playlist

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 23 - Merge Playlist Result

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 24 - Log Upload to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization
Complexity advanced
Nodes 27
Categories Content Creation, Multimodal AI
Author masahiro hanawa
Published 15 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11823/11823.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract video metadata & auto-upload to YouTube with GPT-4o SEO optimization do?

Video Metadata Extraction & YouTube Auto Upload with AI Automatically process video files, extract metadata, generate AI optimized titles/descriptions/tags, and upload directly to YouTube with prop...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.