AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Connect HeyGen to Zapier to Automate Personalized Video Outreach from CRM Leads

Lise Gamel · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Manual video outreach converts, but it doesn't scale. Having an SDR or account executive log into HeyGen's web dashboard, manually type a lead's first name and company, queue the render, wait four minutes, download the MP4, and paste the link into a CRM task kills sales velocity. On paper, HeyGen's REST API solves this. In reality, growth marketing and SDR teams rarely get prioritized engineering sprint capacity to build custom webhook listeners, queue workers, and database synchronizers.

The pragmatic middle ground is HeyGen's native Zapier integration (Create a Video From Template action combined with the New Avatar Video Event (Success) trigger). At 365Finds, we regard this no-code pipeline as the fastest operational path to turn raw inbound CRM leads into high-converting 1:1 video emails.

Setting it up requires avoiding two major traps: credit billing confusion and architectural polling mistakes. Here is how marketing and sales teams can configure a reliable, end-to-end automated pipeline between HubSpot or Salesforce and HeyGen.


The Non-Negotiable Prerequisite: API Credits vs. Subscription Credits

Before configuring a single Zap, understand HeyGen’s integration commercial model. This is where most marketing operations teams stumble.

HeyGen operates on a dual billing structure:

  1. Web App Subscription Credits: The credits included in HeyGen's Creator, Team, or Enterprise monthly/annual plans are strictly meant for manual video rendering inside the browser interface.
  2. API Credits (Pay-as-you-go): Connecting HeyGen to Zapier, Make, or any third-party workflow tool authenticates via an API Key. Any video generated through external triggers executes against HeyGen's API endpoints and consumes separate API credits.

If your account holds 100 unused web subscription credits but zero API balance, your Zap will throw an authorization or payment failure error. Teams must navigate to Settings > API in HeyGen, copy the API key, and pre-purchase dedicated pay-as-you-go API credits. In Zapier, add a new connection under Apps > HeyGen, paste the API key, and confirm the handshake.


Step 1: Design the Dynamic Template in HeyGen AI Studio

Zapier cannot dynamically create layout elements out of thin air; it maps CRM data into predefined placeholders within an existing template.

  1. Navigate to the Templates tab in HeyGen and select Create Template.
  2. Select your AI avatar (a customized Instant Avatar of your founder or top-performing SDR yields significantly higher authenticity than a generic stock avatar).
  3. Draft your base outreach script. Enclose any dynamic contact data in double curly brackets:
    Hi {{first_name}}, I saw that you lead the team at {{company_name}}. 
    Reaching out because teams in {{industry}} usually struggle with pipeline velocity. 
    I recorded this quick walk-through specifically for you.
    
  4. HeyGen automatically scans script text and on-screen text layers. Any string wrapped in {{...}} is instantly indexed as an exposed template variable.
  5. Publish the template. Save the template name and ID for reference in Zapier.

365Finds Practical Rule on Fallback Text: Never map CRM fields into HeyGen without sanitation. If a lead enters your CRM with an empty company field or lowercase "john", the AI avatar will mispronounce names or leave strange grammatical pauses. Ensure your CRM data hygiene workflow normalizes names and applies fallback values (such as "your team" if company_name is missing).


Step 2: Build Zap 1 — CRM Trigger to HeyGen Video Generation

Do not attempt to pack lead intake, video rendering, and CRM link writeback into a single linear Zap. Video rendering is asynchronous; an AI avatar video takes between 2 to 8 minutes to compile. A sequential Zap using a "Delay by Zapier" step is brittle—if HeyGen takes 6 minutes and your delay timer was set for 5, downstream steps pull an empty payload and fail.

Instead, decouple the architecture into two dedicated Zaps. Zap 1 handles ingestion and generation dispatch.

Configuration Workflow:

  1. Trigger App & Event: Select your CRM (e.g., HubSpot with event New Contact in List or Contact Property Updated, or Salesforce with New Lead).
  2. Filter by Zapier (Essential): Set conditions so only sales-qualified records proceed:
    • Lead Status exactly matches MQL or High Priority.
    • Email exists and is a business email domain.
    • First Name is not blank.
  3. Action App & Event: Select HeyGen, then choose the action Create a Video From Template.
  4. Account Authentication: Select your connected HeyGen API credential.
  5. Template Selection: Select the template created in Step 1. Zapier will dynamically poll HeyGen’s schema and render input boxes for each detected variable:
    • Template Variables — first_name: Map CRM field First Name.
    • Template Variables — company_name: Map CRM field Company Name.
    • Template Variables — industry: Map CRM field Industry (or fallback).
  6. Title / Identifier Field: In the video title field, append the lead's email address or CRM Contact ID:
    Outreach - {{Contact_ID}} - {{Email}}
    
    This identifier is crucial for parsing and matching the contact record during callback execution in Zap 2.
  7. Test the Step: Run a test. HeyGen will return a response status indicating that video processing has been initiated alongside a generated video_id.

Step 3: Build Zap 2 — Event-Driven Callback and CRM Writeback

Once HeyGen finishes video processing, it pushes an event notification. Zap 2 catches this event instantly, matches the finished assets back to the specific CRM lead, and stages the outreach delivery.

Configuration Workflow:

  1. Trigger App & Event: Select HeyGen as the trigger app, and select New Avatar Video Event (Success) (also listed as Avatar Video Success).
  2. Payload Inspection: When triggered, HeyGen delivers several valuable asset fields:
    • video_id: Internal unique identifier.
    • video_title: Contains the Lead ID/Email string configured in Zap 1.
    • video_url / share_url: The hosted HeyGen landing page where the prospect can view the video in their browser.
    • download_url: Direct download link for the MP4 video file.
    • gif_download_url: An animated GIF preview thumbnail derived from the avatar speaking.
  3. Formatter Step (Text/Split): Use Formatter by Zapier (Text > Split Text) to extract the CRM Contact ID or Email address from the video_title.
  4. CRM Action 1 (Find Record): Select your CRM (e.g., HubSpot > Find Contact by email or ID).
  5. CRM Action 2 (Update Contact Properties): Write the returned video assets into custom contact properties created on your lead record:
    • heygen_video_url = share_url or download_url
    • heygen_gif_url = gif_download_url
    • heygen_video_status = Completed
  6. Delivery Action (Outreach Sequence or Email):
    • Option A (Automated Sequence Enrollment): Trigger a CRM workflow that enrolls the contact into a HubSpot Sequence or Salesloft cadence once heygen_video_status equals Completed.
    • Option B (Direct Email via Zapier): Use Gmail or SendGrid to dispatch an email. In the HTML email body, embed the animated GIF hyperlinked to the dynamic video landing page:
      <p>Hi {{first_name}},</p>
      <p>I put together a 45-second video explaining how this works for {{company_name}}:</p>
      <p>
        <a href="{{heygen_video_url}}" target="_blank">
          <img src="{{heygen_gif_url}}" alt="Personalized Video Preview" width="480" style="border-radius: 8px;" />
        </a>
      </p>
      <p>Click the video above to watch the breakdown.</p>
      

Architecture Comparison: Decoupled Webhooks vs. Linear Delay

Evaluation DimensionDecoupled Architecture (Zap 1 + Zap 2)Linear Architecture (Single Zap + Delay)
Trigger MechanismEvent-driven instant webhook (Avatar Video Success)Fixed timer (Delay by Zapier 5-10 min)
Render FluctuationsHandles 2-min renders and 15-min peak queues perfectlyFails if rendering time exceeds delay duration
Task Quota EfficiencyZero wasted tasks on polling or timeout retriesConsumes task executions even when renders fail
Error IsolationFailures caught via New Avatar Video Event (Fail)Breaks entire automation silently midway
Implementation ComplexityRequires extracting Lead ID in Zap 2 titleSimple to construct; prone to production collapse
365Finds RecommendationStrictly recommended for enterprise productionDiscouraged outside single-user testing

Operational Discipline: 365Finds Strategic Takeaways

Personalized video outreach works because it breaks through email inbox clutter. Prospects recognize their own name, company, and website context within seconds of opening an email.

However, automating this at scale without commercial guardrails is dangerous:

References