Generate and publish AI home cam Shorts with OpenAI, kie.ai and YouTube
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on a schedule (every day). Along the way it connects OpenAI Chat Model, Google Drive, YouTube and Gmail.
How it runs
Trigger: On a schedule (every day).
- Configure Workflow Variables (Edit Fields (Set)): sets or maps fields
- Pick Idea At Random (Code): runs custom JavaScript code
- Generate Video Script and Metadata (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Model; 1 tool (Think Through Video Concept); memory: Conversation Memory Buffer; output parser: Validate Video Script JSON
- Prepare Video Generation Request (Code): runs custom JavaScript code
- Submit Video to kie.ai (HTTP Request): calls an HTTP API
- Wait: pauses before continuing
- Poll kie.ai for Video Status (HTTP Request): calls an HTTP API
- Check if Video is Ready (If): checks a condition and branches into true / false
- Extract Video Download URL (Code): runs custom JavaScript code
- Download Generated Video File (HTTP Request): calls an HTTP API
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - YouTube
n8n-nodes-base.youTube - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs three times daily to generate an AI “home cam” short video concept with OpenAI, create the video via kie.ai, then download and archive it to Google Drive, upload it to YouTube as a public video, and send a confirmation email…