Skip to main content

Generate custom AI videos with Digital Avatars using HeyGen API

Workflow preview

Workflow preview
100%
Generate custom AI videos with Digital Avatars using HeyGen API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

n8n Workflow: Generate AI Videos with HeyGen Overview This automation connects directly to HeyGen's powerful AI video generation platform. It allows you to programmatically create videos with...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.switch, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate custom AI videos with Digital Avatars using HeyGen API
Workflow name
Generate custom AI videos with Digital Avatars using HeyGen API

🎥 n8n Workflow: Generate AI Videos with HeyGen


🚀 Overview

This automation connects directly to HeyGen's powerful AI video generation platform. It allows you to programmatically create videos with digital avatars and voiceovers, perfect for scaling your content creation for social media, marketing campaigns, or personalized messages without ever opening a video editor.

😩 The Problem

Creating video content is incredibly time-consuming and expensive. You have to write scripts, record audio, find actors or create complex animations, piece everything together in an editor, and then wait for it to render. Every minor change or personalization requires repeating the entire frustrating process. This manual work is a major bottleneck, making it nearly impossible to produce large volumes of high-quality video content quickly and affordably.

✨ The Solution

This workflow acts as your personal, automated video production assistant! When you provide a script, the automation instantly sends instructions to HeyGen to begin creating your video. It tells the AI which avatar and voice to use and starts the generation process. Then, it cleverly waits and periodically checks the status until your new video is finished and ready. It’s a completely hands-off process that transforms simple text into professional AI videos on demand.

🔧 What It Does

  1. Send a request to HeyGen's API to generate a video with:

    • Custom avatar
    • Scripted voice-over
    • Background color and dimension
  2. Wait 30 seconds

  3. Check video status

  4. Loop until video is completed, failed, or still processing

⚙️ Simple Setup

This workflow is a pre-built blueprint, designed to be up and running in minutes!

  • 1. Upload: Simply upload the provided JSON file into your n8n instance.
  • 2. Connect: Connect your app credentials (e.g., your HeyGen account). The workflow will show you exactly where.
  • 3. Activate: Turn the workflow on, and it's ready to go! Let your new automated employee get to work.

This free n8n workflow allows you to generate AI videos using HeyGen via their API.

🌐 Explore more workflows

❤️ Buy more workflows at: adamcrafts 🦾 Custom workflows at: [email protected] [email protected]

> Build once, customize endlessly, and scale your video content like never before. 🚀

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 - HeyGen

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

Block 2 - Wait4

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

Block 3 - HeyGen : Check Video

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

Block 4 - heygen_response

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 5 - Sticky Note

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

Block 6 - Sticky Note7

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

3. Summary Table

Workflow Generate custom AI videos with Digital Avatars using HeyGen API
Complexity intermediate
Nodes 6
Categories Content Creation, Multimodal AI
Author Abdellah Homrani
Published 03 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4622/4622.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 Generate custom AI videos with Digital Avatars using HeyGen API do?

n8n Workflow: Generate AI Videos with HeyGen Overview This automation connects directly to HeyGen's powerful AI video generation platform. It allows you to programmatically create videos with...

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.