🎬 Create Kling 2.6 ad videos and post them to YouTube using the YouTube API

⚡ 40 views · 🎬 Content Creation & Video

💡 Pro Tip — YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments — no quota limits, just structured data.

View All Scrapers

Description

What it is

An automated workflow for creating Kling 2.6 videos and posting them to YouTube.

The workflow is divided into three main phases.

Create Kling 2.6 Video

This phase handles the initial video creation based on user input.

Wait for Video Processing

Wait 5 mins: The workflow pauses for 5 minutes. This waiting period is necessary as it typically takes 3–5 minutes for the video to be ready after the generation request.

Post to YouTube

This phase focuses on generating YouTube SEO details and uploading the video.

YT Video SEO (AI Generation):

An AI agent (using OpenRouter’s OpenAI GPT-5 Mini model) acts as a YouTube SEO specialist and viral content strategist. It generates the following details for the YouTube video:

The AI agent is configured to follow guidelines for virality and YouTube’s tag limits.

Structured Output: Parses the structured JSON output from the AI agent.

Setup

To run this workflow, you need to set up credentials in n8n for:

OpenRouter: Generate API key from your OpenRouter account.

Google Sheets: Uses OAuth 2.0. Connect by authenticating your Google account.

YouTube Data API: Configure credentials to allow posting videos to YouTube.

đź”— Nodes Used

Google Sheets, HTTP Request, YouTube, AI Agent, Basic LLM Chain, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup