Skip to main content

Generate AI videos from text with HeyGen and voice cloning.

Workflow preview

Workflow preview
100%
Generate AI videos from text with HeyGen and voice cloning. preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Video Generator with HeyGen Create AI Powered Videos in n8n with HeyGen This workflow enables you to generate realistic AI videos using HeyGen, an advanced AI pla...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.wait, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Emmanuel Bernard - n8n Expert Lausanne.

Original n8n.io source

1.1 Workflow description

Title
Generate AI videos from text with HeyGen and voice cloning.
Workflow name
Generate AI videos from text with HeyGen and voice cloning.

🎥 AI Video Generator with HeyGen

🚀 Create AI-Powered Videos in n8n with HeyGen

This workflow enables you to generate realistic AI videos using HeyGen, an advanced AI platform for video automation. Simply input your text, choose an AI avatar and voice, and let HeyGen generate a high-quality video for you – all within n8n!

Ideal for:

  • Content creators & marketers 🏆
  • Automating personalized video messages 📩
  • AI-powered video tutorials & training materials 🎓

🔧 How It Works

1️⃣ Provide a text script – This will be spoken in the AI-generated video.
2️⃣ Select an Avatar & Voice – Choose from a variety of AI-generated avatars and voices.
3️⃣ Run the workflow – HeyGen processes your request and generates a video.
4️⃣ Download your video – Get the direct link to your AI-powered video!


⚡ Setup Instructions

1️⃣ Get Your HeyGen API Key

  • Sign up for a HeyGen account.
  • Go to your account settings and retrieve your API Key.

2️⃣ Configure n8n Credentials

  • In n8n, create new credentials and select "Custom Auth" as the authentication type.
  • In the Name provide : X-Api-Key
  • And in the value paste your API key from Heygen
  • Update the 2 http node with the right credentials.

3️⃣ Select an AI Avatar & Voice

  • Browse available avatars & voices in your HeyGen account.
  • Copy the Avatar ID and Voice ID for your video.

4️⃣ Run the Workflow

  • Enter your text, avatar ID, and voice ID.
  • Execute the workflow – your video will be generated automatically!

🎯 Why Use This Workflow?

✔️ Fully Automated – No manual editing required!
✔️ Realistic AI Avatars – Choose from a variety of digital avatars.
✔️ Seamless Integration – Works directly within your n8n workflow.
✔️ Scalable & Fast – Generate multiple videos in minutes.

🔗 Start automating AI-powered video creation today with n8n & HeyGen!

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 - When clicking ‘Test workflow’

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

Block 2 - Wait

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

Block 3 - Output

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

Block 4 - Sticky Note1

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

Block 5 - is Completed

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

Block 6 - Sticky Note2

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

Block 7 - Sticky Note3

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

Block 8 - Create Video

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

Block 9 - Config

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

Block 10 - Get Video Status

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

3. Summary Table

Workflow Generate AI videos from text with HeyGen and voice cloning.
Complexity intermediate
Nodes 10
Categories Content Creation, Multimodal AI
Author Emmanuel Bernard - n8n Expert Lausanne
Published 01 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3054/3054.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 AI videos from text with HeyGen and voice cloning. do?

AI Video Generator with HeyGen Create AI Powered Videos in n8n with HeyGen This workflow enables you to generate realistic AI videos using HeyGen, an advanced AI pla...

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.