Generate AI Video Avatars from URLs with HeyGen, Gemini & Upload to Social Media

Go to Workflow
0 views
Built by Juan Carlos Cavero Gracia Juan Carlos Cavero Gracia
Created on June 05, 2026

Description



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 platform-optimized descriptions, captures a dynamic background of the page (animated scroll or static image), composes and renders the video with HeyGen (free split‑screen or paid clean cut‑out), and sends it to Upload-Post with an optional human review step.

Note: You can generate full videos end‑to‑end using free trials—no credit card required—for all APIs used in this template (Google Gemini, ScreenshotOne, HeyGen, Upload‑Post).*

Who Is This For?
Creators & Marketers:** Explain articles, launches, and workflows without filming or editing.
Media & Newsletters:** Turn breaking stories into clear, shareable shorts.
Agencies:** Scale content creation with review gates and multi-account publishing.
Founders & Product Teams:** Maintain an on-brand presence in minutes.

What Problem Does It Solve?
Making platform-native explainers is slow and inconsistent. This workflow:
Writes the script with AI:** ~30s hook-led monologue with key facts.
Optimizes per platform:** Tailored captions for TikTok, Reels, and Shorts.
Generates the video automatically:** Uses the page itself as background + avatar voiceover.
Publishes everywhere:** Optional review, then one-click multi-platform posting.

How It Works
URL Input: Paste any page to convert (article, blog, or workflow).
AI Agent (Gemini): Reads the page and produces a single script (~30s) + platform-specific descriptions.
Video Background: Animated scroll capture (9:16) or featured image via ScreenshotOne.
HeyGen Composition & Render:
Free: split-screen vertical (avatar bottom, background top).
Paid: clean avatar cut‑out over video/image (background removal).
Render & Poll: Waits for HeyGen to finish and retrieves the final MP4.
Human Review (optional): Approve or reject in a simple form.
Publish (Upload-Post): Uploads to TikTok, Instagram (Reels), and YouTube Shorts with AI-generated titles/descriptions.

Setup
Credentials (all offer free trials, no credit card required):
HeyGen API (X-Api-Key) + your avatar_id and voice_id.
ScreenshotOne API key.
Upload-Post (connect your social accounts).
Google Gemini (chat model).
Variables in “Set Input Vars”:
workflow_url: page to convert.
background_removal: true (paid) or false (free).
background_type: video (animated scroll) or photo (static).
Publishing: Choose platforms in Upload-Post; enable review if you want to approve before posting.

Requirements
Accounts:** n8n, HeyGen, ScreenshotOne, Upload-Post, Google (Gemini).
API Keys:** HeyGen, ScreenshotOne, Gemini; Upload-Post credentials.
Assets:** An avatar and a voice available in HeyGen.

Features
URL → Short in minutes:** 9:16 vertical (720×1280).
Pro script with hook:** Clear, natural, ~30s.
Two render modes:** Split-screen (free) or clean cut‑out (paid).
Background from the page:** Animated scroll or main image.
Human-in-the-loop:** Approval before going live.
Multi-publish:** TikTok, Instagram Reels, YouTube Shorts via Upload-Post.
Start free:** Generate videos with free trials across all APIs—no credit card required.

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured