End-to-end YouTube video automation with HeyGen, GPT-4 & Avatar videos
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Video Script (Transcript Generator) (v1.8), AI Agent for Meta Data of Youtube (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - Limit
n8n-nodes-base.limit - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - YouTube
n8n-nodes-base.youTube - Send Email
n8n-nodes-base.emailSend - Sort
n8n-nodes-base.sort
What it does
π₯ End-to-End YouTube Video Automation Workflow with n8n, HeyGen & AI Automate the entire YouTube content creation pipeline β from video idea to AI-generated avatar video, upload, metadata generation, and publishing β with zero manual intervention! --- Who is this for? This template is perfect for: Affiliate marketers (e.g., PartnerStack, SaaS products) YouTube creators scaling video production Agencies managing client content Educators and coaches delivering automated video lessons Entrepreneurs running faceless YouTube channels --- π§ What problem does it solve? Publishing consistent, high-quality video content is essential for audience growth and monetization. But manually creating each video β researching, writing, recording, uploading, and optimizing β is slow, repetitive, and unsustainable at scale. This workflow solves that by automating: β
Content sourcing from Google Sheets β
Script generation with AI β
Avatar video creation via HeyGen β
YouTube upload and metadata β
Final publishing and status update All done without touching a single button. Schedule it weekly and watch videos go live while you sleep. --- βοΈ What this workflow does π₯ Reads video ideas from a Google Sheet (e.g., PartnerStack affiliate product) π Fetches product details from the web using HTTP Request π§ Generates a promotional video transcript using an AI agent π Converts the script to an avatar video using HeyGen API β³ Waits for the video to render and fetches download URL β¬οΈ Uploads the video to YouTube via API π§ Generates title, description, tags, and hashtags using AI π Updates video metadata and changes visibility to Public π Logs publication details back to Google Sheets π€ Optional human-in-the-loop step before publishing --- π Setup 1. π Connect the following integrations: Google Sheets (or Airtable) HeyGen API YouTube Data API (OAuth 2.0) OpenAI / Gemini / Ollama 2. π§Ύ Add your video ideas to Google Sheets: Include product name, link, and "To Do" status 3. π Import the n8n template and configure API credentials 4. π§ Customize your AI prompt for tone, format, and industry 5. π Schedule it to run weekly (1 video per week) --- βοΈ How to customize this workflow Swap Google Sheets with Airtable, Notion, or API feeds Modify AI prompts for different use cases: reviews, explainers, tutorials Use D-ID, Synthesia, or your preferred avatar platform Add analytics, thumbnails, or comment automation Localize content for multi-language channels Integrate with Slack, Discord, or Telegram for notifications --- π Sticky Notes Included π Get Partner Idea: Pulls one item from the Google Sheet π Fetch Content: Extracts product details via HTTP request π§ AI Script: Generates video transcript using GPT or Gemini π₯ Video Generation: Sends script to HeyGen, waits for rendering β¬οΈ Upload to YouTube: Uploads video file π§ Metadata Generator: Creates optimized title, tags, description π Metadata Update: Updates YouTube metadata and sets video to Public π Sheet Update: Marks video as published in the Google Sheet π§ Human Approval (Optional): Pause & resume on manual review --- π Useful Links π§ Mastering n8n on Udemy π n8n Learning Guidebook π Sign Up for n8n Cloud (Use Code: AMJID10) π§ SyncBricks Automation Blog πΊ YouTube Channel β SyncBricks --- π Why this workflow? This advanced automation setup is ideal for users exploring: YouTube automation via n8n and API AI-powered content pipelines with OpenAI/Gemini Avatar video generation (HeyGen / D-ID / Synthesia) Workflow automation for affiliate marketing Full-stack video publishing using no-code tools Enterprise-grade publishing for brands and creators Built with modularity, customization, and full control in mind β whether youβre using n8n Cloud or a self-hosted instance.