# Zapier Integration 

Automate avatar video creation using HeyGen's Zapier integration.

Automate your workflows with Zapier by integrating HeyGen's avatar video creation capabilities.

<Callout icon="📘" theme="info">
  **Note:**

  In addition to the workflow demonstrated in this guide, HeyGen’s Zapier integration supports several other actions, such as Create WebM Avatar Video, Translate a Video, Retrieve Video Status, Retrieve Translated Video Status, Retrieve Shareable Link, and Upload an Asset.

  You can explore these additional actions directly within Zapier when configuring your HeyGen integration.
</Callout>

## Create Your Zap

### 1. Select a Trigger

Every Zap begins with a trigger, which initiates the workflow whenever a specified event occurs. For this example, we’ll use a "New Spreadsheet Row" trigger to create a new video whenever a new row is added to a Google Sheet.

* **Trigger:** Click on **Trigger** > **Google Sheets** > **New Spreadsheet Row**.

<Image align="center" border={false} src="https://files.readme.io/56f7c07b6a10a60342bbac8e043d10078ec17946b47cf0746f73ce6c092d3ef0-CleanShot_2024-08-21_at_14.50.062x.png" />

### 2. Create a Scene for the Avatar Video

Next, set up an action to define the details of your video scene, including avatar, voice, and background.

* **Action:** Click on **Action** > **HeyGen** > **Create an Avatar Video (Scene)**.
* **Choose Your Account:** Select your HeyGen account.
* **Customize Your Settings:** Configure the parameters for your scene, such as avatar, voice, and background.

<Image align="center" border={false} src="https://files.readme.io/97359a90185731370e905a44ec954010c85fdad8e27d021ea550fca523918379-CleanShot_2024-08-21_at_14.51.302x.png" />

<Callout icon="📘" theme="info">
  **Note:**

  You can create multiple scenes by adding multiple "Create an Avatar Video (Scene)" actions if needed.
</Callout>

### 3. Generate the Avatar Video

After creating your scenes, you need to generate the final video by combining the scenes and setting final parameters.

* **Action:** Click on **Action** > **Create an Avatar Video (Generate)**.
* **Choose Your Account:** Select your HeyGen account.
* **Customize Your Settings:** Adjust settings such as test mode, captions, video title, dimensions, and callback ID. Add your scene(s) in the scenes section.

<Image align="center" border={false} src="https://files.readme.io/dc6e5cf464055ae38a4630efdd7fee6547be0290776e02351e5b0f4f242ab227-CleanShot_2024-08-21_at_14.56.302x.png" />

Your Zap is now ready to automate the creation of avatar videos.

## Final Step: Get the Video

Once you create a video using HeyGen’s API/Zapier, the video must be processed and rendered on the server, which typically takes 2-5 minutes. To obtain a shareable link for the video:

* **Trigger:** Use the "Avatar Video Success" trigger, which activates when the video is successfully created and ready to be accessed.
* **Action:** Configure actions like sending an email response with the video link once the video is ready.

<Image align="center" border={false} src="https://files.readme.io/a3734c942599b3eda5329053d40cfc76026c8a8cbe82245dad913489e8cd4a21-CleanShot_2024-08-21_at_14.58.072x.png" />

Here is the result:

<Embed url="https://app.heygen.com/embeds/7f3bc4b9ca2747cea4a6cdfc162bbfc5" href="https://app.heygen.com/embeds/7f3bc4b9ca2747cea4a6cdfc162bbfc5" typeOfEmbed="iframe" height="450px" width="100%" iframe="true" />

## Conclusion

With HeyGen’s integration through [Zapier](https://www.heygen.com/integrations/zapier), you can automate the process of creating personalized avatar videos. By setting up your Zaps to trigger video creation based on specific events, such as adding a new row in Google Sheets, and configuring your scenes and final video settings, you can efficiently generate engaging content tailored to your needs.

The two-step process ensures that once your video is rendered and ready, you can automatically send out the shareable link to the intended recipients.