Skip to main content

Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets

Workflow preview

Workflow preview
100%
Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Automated AI Video Avatar Workflow for Shorts using n8n & HeyGen Automatically generate AI avatar short videos and publish them to social platforms using n8n and HeyGen. This workflow turns viral i...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheets, n8n-nodes-base.scheduletrigger, @apify/n8n-nodes-apify.apify, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.googlegemini, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by giangxai.

Original n8n.io source

1.1 Workflow description

Title
Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets
Workflow name
Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets

Automated AI Video Avatar Workflow for Shorts using n8n & HeyGen

Automatically generate AI avatar short videos and publish them to social platforms using n8n and HeyGen. This workflow turns viral ideas or prepared scripts into fully rendered AI avatar videos and handles publishing and tracking without manual editing.


Who is this for?

This template is ideal for:

  • Content creators producing Shorts, Reels, or TikTok videos at scale
  • Marketers using AI avatars for faceless or branded content
  • Affiliate marketers running automated short-form content funnels
  • AI automation builders combining LLMs, avatars, and no-code workflows
  • Teams that want a repeatable system to generate and publish short videos

If you want to automate AI avatar video creation instead of manually scripting, rendering, and uploading videos, this workflow is for you.


What problem is this workflow solving?

Creating short-form video content with AI avatars usually involves many manual steps and tools. Common challenges include:

  • Manually writing scripts for each video
  • Switching between AI tools for script generation and video rendering
  • Waiting for avatar videos to render and checking status manually
  • Uploading videos to social platforms one by one
  • Tracking which ideas have been processed or published

This workflow connects all steps into a single automated pipeline and removes repetitive manual work.


What this workflow does

This automated AI video avatar workflow:

  • Triggers on a defined schedule
  • Loads viral content ideas or pending rows from Google Sheets
  • Analyzes content and generates optimized scripts using AI
  • Creates AI avatar videos automatically via HeyGen
  • Waits for video rendering and checks completion status
  • Retrieves the final video once rendering is complete
  • Publishes the video to social platforms
  • Updates Google Sheets with publishing status and results

The entire process runs end-to-end with minimal human intervention.


Setup

1. Prepare Google Sheets

Create a Google Sheet to manage your content pipeline with columns such as:

  • idea / topic – Source idea or viral reference
  • script – Generated or custom script (optional)
  • status – pending / processing / published / error
  • video_url – Final rendered video link
  • publish_result – Publishing status or notes

Only rows marked as pending will be processed by the workflow.


2. Connect Google Sheets

  • Authenticate your Google Sheets account in n8n
  • Select the spreadsheet in the content loading nodes
  • Ensure update nodes can write back to the same sheet for status tracking

3. Configure AI & HeyGen

  • Add credentials for your AI model (e.g. Gemini or OpenRouter)
  • Add your HeyGen API credentials
  • Configure avatar settings such as voice, language, and style

Test video creation once before running the workflow at scale.


4. Configure Publishing & Schedule

  • Set up publishing credentials for your target social platforms
  • Open the Schedule trigger and define how often the workflow runs
  • The schedule controls how frequently new AI avatar videos are created and published

How to customize this workflow to your needs

You can adapt this workflow without changing the core structure:

  • Replace viral idea sources with your own content inputs
  • Add approval steps (Slack, Telegram, Email) before video creation
  • Customize scripts per platform or language
  • Disable publishing and use the workflow only for video generation
  • Add retry logic for failed renders or publishing steps
  • Extend the workflow with analytics or performance tracking

Best practices

  • Start with a small batch of test rows
  • Keep status values consistent in Google Sheets
  • Use short, clear scripts optimized for AI avatars
  • Monitor render and publish status nodes regularly
  • Adjust schedule frequency based on rendering limits

📄 Documentation

For a full walkthrough and advanced customization ideas, see Video Guide

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - Update row Viral Content

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 3 - Cron – Fetch Viral Ideas

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 4 - Get Viral Video Dataset

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 5 - Save Viral Ideas to Google Sheet

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Cron – Process Viral Row

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 7 - Load Viral Idea from Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Analyze Viral Video

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 9 - Parse Script Structure

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 10 - AI Agent – Script & Avatar Director

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 11 - Finalize Avatar Script

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Create AI Avatar Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 13 - Wait for Video Rendering

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 14 - Get Rendered Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 15 - Check Video Status

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 16 - Save Viral Ideas to Google Sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 17 - Publish Video to Tiktok

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 18 - Publish Video to Facebook

Type / Role
@blotato/n8n-nodes-blotato.blotato - blotato
Config choices
Version 2

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets
Complexity advanced
Nodes 23
Categories Content Creation, Multimodal AI
Author giangxai
Published 27 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13024/13024.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create and publish AI avatar short videos with Gemini, HeyGen and Google Sheets do?

Automated AI Video Avatar Workflow for Shorts using n8n & HeyGen Automatically generate AI avatar short videos and publish them to social platforms using n8n and HeyGen. This workflow turns viral i...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.