Create YouTube videos daily from Google Sheets using MagicHour + Gemini
UnknownWhat this workflow does
This AI workflow has 26 nodes and runs on Google Sheets events (row added) (plus 1 other trigger). Along the way it connects Google Sheets, Google Gemini Chat Model, YouTube and Mediafx (community). It also calls api.magichour.ai over HTTP.
How it runs
Trigger: On Google Sheets events (row added) (plus 1 other trigger).
- If: checks a condition and branches into true / false
- Normalize Input (Edit Fields (Set)): sets 2 fields: Prompt, source
- Limit: keeps the first few items
- Generate Video Parameters (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Video Params Parser
- Create Video (HTTP Request): calls api.magichour.ai (POST)
- Initialize Retry Counter (Edit Fields (Set)): sets 3 fields: video_id, retry_count, max_retries
- Check Video Status (HTTP Request): calls an HTTP API
- Video Complete? (If): checks a condition and branches into true / false
- Download Video (HTTP Request): calls an HTTP API
- Wait: waits 30 seconds
…plus 10 more steps. See the full node list below.
Services it uses
HTTP calls to: api.magichour.ai
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-mediafx is verified or supports 3.0 (used in MixAudio audio).
Nodes used (15)
- Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Merge
n8n-nodes-base.merge - Limit
n8n-nodes-base.limit - YouTube
n8n-nodes-base.youTube - Media FX
n8n-nodes-mediafx.mediaFX - Code
n8n-nodes-base.code
From the author
🪄 Prompt To Video (MagicHour API) with Music & YouTube Automate AI video creation, background music, YouTube uploads, and result logging — all from a single text prompt. ⚡ Overview This n8n template turns a text prompt into a complete AI-generated video…