Skip to content
Integration

HeyGen integrations and automation

Say what should happen in HeyGen, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

HeyGen on Whenever

About HeyGen

HeyGen is an innovative video platform that harnesses the power of generative AI to streamline your video creation process

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the HeyGen workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your HeyGen workflow

HeyGen turns a script into a video presented by an avatar, translates existing videos into other languages with matching voice, and offers a Video Agent that produces a video from a single prompt. Through the API, all of these are jobs: you submit a request, receive an ID, and the finished file arrives minutes later. An automation therefore has two halves, the request and the collection, and they rarely run in the same moment.

For the collection half, HeyGen supports both a one-off callback URL on a request and persistent webhook endpoints registered through its webhooks API. Endpoints subscribe to events such as avatar_video.success and avatar_video.fail, and each endpoint gets a signing secret used for an HMAC signature on the raw body. HeyGen documents retries with backoff for up to 24 hours and warns that the same event can be delivered more than once, so a workflow should deduplicate on the video ID with the event type, or on the callback_id you set when creating the video. Polling the video status endpoint is the fallback when you cannot receive webhooks.

Generation consumes credits from the HeyGen account, and longer videos cost more than short ones. Before putting video creation on a trigger, think about what could fire it many times: a spreadsheet with a hundred new rows becomes a hundred render jobs. Put a ceiling in the brief, and prefer a review step where a person approves scripts before submission.

Avatars and voices are referenced by ID. List them through the API once, choose the ones your brand has approved, and keep those IDs fixed so every generated video looks the same. If your account has custom avatars, only users with access to them can use them in requests. Any AI step that writes scripts can vary between runs; the HeyGen render itself receives exactly the text you pass.

HeyGen workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Render approved scripts from a sheet

Submits one video per approved row and records the job ID.

Build this workflow

Collect finished videos via webhook

Handles success and failure events from a registered endpoint.

Build this workflow

Translate a weekly update video

Creates translations of a single source video for regional teams.

Build this workflow

Related apps for your workflows

All integrations

HeyGen FAQs

Should I poll HeyGen or use a webhook for video status?

HeyGen recommends webhooks or a per-request callback_url over polling the video status endpoint. Webhook endpoints are registered through the API and each one has its own signing secret.

Why did I receive the same HeyGen webhook twice?

HeyGen retries failed deliveries for up to 24 hours and states that one event can arrive more than once with the same payload. Deduplicate on the video ID plus event type, or on your callback_id.

How do I verify that a webhook really came from HeyGen?

Compute an HMAC-SHA256 of the raw request body with the endpoint secret and compare it with the signature header. The secret is only shown when the endpoint is created or rotated.

How do I keep generated videos consistent?

Fix the avatar ID and voice ID in the workflow and pass the script text unchanged. If an AI step writes the script, its wording can differ per run, so review scripts before rendering.

What limits how many videos an automation can make?

Your HeyGen plan's credits and the trigger design. Cap the number of jobs per run and avoid triggers that can fire in bulk without review.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.