Generate AI video avatars from URLs with HeyGen, Gemini & upload to social media
Needs changesWhat this workflow does
This AI workflow has 25 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model, HTTP Request and Upload Post (community). It also calls upload.heygen.com and api.heygen.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Input Vars (Edit Fields (Set)): sets 7 fields: workflow_url, screenshotone.comAPI_KEY, heygen_api_key…
- Social Media Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (HTTP Request); output parser: Structured Output Parser
- video or photo (If): checks a condition and branches into true / false
- Get background video (HTTP Request): calls an HTTP API
- Get background photo (HTTP Request): calls an HTTP API
- upload to heygen (HTTP Request): calls upload.heygen.com (POST)
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Create video avatar with background removal (HTTP Request): calls api.heygen.com (POST)
- Create video avatar with split screen (heygen free trial api) (HTTP Request): calls api.heygen.com (POST)
…plus 10 more steps. See the full node list below.
Services it uses
HTTP calls to: upload.heygen.com, api.heygen.com
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 Social Media Agent (v1.6): 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).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Social Media Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Http Request Tool
n8n-nodes-base.httpRequestTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Manual Trigger
n8n-nodes-base.manualTrigger - Upload Post
n8n-nodes-upload-post.uploadPost - Edit Fields (Set)
n8n-nodes-base.set
From the author
This workflow turns any URL (news article, blog post, or even an n8n workflow page) into a vertical short video with your AI avatar explaining it ready for TikTok, Instagram Reels, and YouTube Shorts. It fetches the page, generates a tight 30–45s script and…