🎬 Generate AI video avatars from URLs with HeyGen, Gemini & upload to social media

⚡ 1,790 views · 🎬 Content Creation & Video

💡 Pro Tip — Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments — drop it into your workflow and skip the parsing.

View All Scrapers

Description

image.png

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?

What Problem Does It Solve?

Making platform-native explainers is slow and inconsistent. This workflow:

How It Works

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

Setup

  1. 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).
  2. 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).
  3. Publishing: Choose platforms in Upload-Post; enable review if you want to approve before posting.

Requirements

Features

đź”— Nodes Used

HTTP Request, AI Agent, Structured Output Parser, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup