Extract Video Metadata & Auto-Upload to YouTube with GPT-4o SEO Optimization

Go to Workflow
0 views
Built by masahiro hanawa masahiro hanawa
Created on June 07, 2026

Description

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

Video Intake: Receives video file via webhook or cloud storage trigger
Metadata Extraction: Analyzes video file for technical properties
AI Content Generation: Creates SEO-optimized title, description, and tags
Thumbnail Processing: Extracts frame or uses provided thumbnail
YouTube Upload: Uploads video with all metadata
Post-Upload Processing: Retrieves video ID, creates playlist entry
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/..."
}

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
YouTube
n8n-nodes-base.youTube