Create on demand AI videos from simple text and receive a ready to share link when rendering finishes. Great for marketing and sales teams that need quick spokesperson clips for product updates, ads, and outreach without editing software.
The run starts manually. A config step stores the avatar id, voice id, and the script. An HTTP request sends these details to the video generate endpoint. The flow waits ten seconds, then checks the status with the video id. A decision step looks for a completed state. If the video is still processing, the loop waits and checks again. When done, the final step outputs the video_url so you can copy it or pass it to another system.
You need a HeyGen account, API credits, and an API key. Add an HTTP Header credential in n8n named X Api Key and apply it to both HTTP nodes. Paste your avatar and voice ids plus the script in the config node. Expect production time to drop from hours to minutes and scale the number of videos you can ship each week. Adjust the wait time if your queue is busy or if you hit rate limits.