End-to-end YouTube video automation with HeyGen, GPT-4 & Avatar videos
Needs changesWhat this workflow does
This AI workflow has 23 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, Google Sheets and YouTube.
How it runs
Trigger: On a schedule (every day).
- Get row(s) in sheet (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Sort: sorts the items
- Code: runs custom JavaScript code
- Edit Fields (Edit Fields (Set)): sets or maps fields
- Limit: keeps the first few items
- HTTP Request: calls an HTTP API
- Extract HTML (Code): runs custom JavaScript code
- AI Video Script (Transcript Generator) (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Generate the Video (HTTP Request): calls an HTTP API
…plus 8 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other YouTube + Google Sheets templates (78) · Other YouTube + OpenAI templates (68)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Video Script (Transcript Generator) (v1.8), AI Agent for Meta Data of Youtube (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| 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
From the author
🎥 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…