Back to articles

19 June 2026 · Aurelius Ivan Wijaya · 5 min read

AI Video Automation with HeyGen and n8n: A Practical Guide for Indonesian Teams

A single recorded video does not scale to a thousand recipients. With the HeyGen API and an n8n workflow, one script can. Here is how the pieces fit, and where it pays off. Written by a HeyGen Ambassador.

What HeyGen actually does

HeyGen is an AI video platform that generates presenter videos using avatars. A team can use a custom avatar built from real footage, or one of the avatars the platform provides. Once an avatar exists, HeyGen can produce a finished video from a script without any camera or studio work.

Two capabilities matter most for teams building pipelines. The first is video translation: HeyGen can localize a video into other languages, matching lip movement to the translated audio, which makes it practical to produce multilingual versions of the same content without re-recording. The second is the API: HeyGen exposes an API for programmatic video generation, so a workflow can pass a script and variables to HeyGen and receive a finished video in return, without any manual export step.

Why automation pays off

The value shows up when one script becomes a thousand personalized videos. A welcome video for every new hire. An outreach video for every lead. One training script localized into every language your teams speak. Producing these manually means a production cycle for each one. Producing them through a pipeline means the cycle runs once, and the pipeline handles the rest.

For Indonesian companies operating across multiple cities, languages, or customer segments, this changes the economics of video communication. A team that previously could afford one recorded video per quarter can run personalized video at scale once the pipeline is in place.

The pipeline

The structure is straightforward. A data source (a CRM, a spreadsheet, or a form response) feeds an n8n workflow. The workflow reads each record, substitutes the per-record variables into a video template, and calls the HeyGen API to generate the video. HeyGen returns the finished video, and the workflow routes it to its destination: an email, a CRM field, an onboarding platform, or wherever the video needs to land.

No studio. No manual export per recipient. The same workflow runs whether there are ten records or ten thousand. n8n handles the orchestration, HeyGen handles the video generation, and the team manages the template and the data source.

Where it pays off first

Three starting points return the most for Indonesian teams:

  • Onboarding. A personalized welcome video for each new hire, generated from HR data the day an offer is accepted. Consistent message, personal delivery, no production overhead per hire.
  • Sales outreach. A short avatar video for each lead, pulling in the prospect's name and company from the CRM. Higher open-and-watch rates than plain email, produced at the same cost as a plain email once the pipeline runs.
  • Multilingual training. One recorded training script localized into Bahasa Indonesia, English, or any other language the team needs. The source video is recorded once; HeyGen translates it with matched lip movement.

What a team needs to learn

Building this pipeline is a build skill, not a one-time configuration. The team needs to understand what HeyGen can produce (avatar types, video translation, API structure), how to call the API from n8n (authentication, payload construction, polling for completion), and how to wire the data flow so each record produces the correct personalized video.

This is the skill the team keeps. Once the pipeline is running, the team can adjust the template, add new data sources, and extend the workflow without outside help. The AI Video Automation training at aitraining.id covers the full build: HeyGen capabilities, the API, and the n8n wiring that turns data into finished video.

Once a team can wire the pipeline itself, video stops being a per-clip cost and becomes something the team runs on demand.

Author note

Aurelius Ivan Wijaya is a corporate AI trainer in Indonesia, a HeyGen Ambassador, and the Official n8n Ambassador for Indonesia. He trains teams to build AI video automation.