# HubSpot Email

Embed and deliver personalized HeyGen videos through HubSpot emails

You can send personalized videos directly through HubSpot email campaigns. This allows you to include the videos generated via HeyGen in your workflow emails.

In this tutorial, we will show you how to deliver personalized videos via the email feature in HubSpot. So your end result will look something like this:

<Image align="center" border={true} src="https://files.readme.io/e7be532a2d0a1b2cbb3d3846c17e488bf1ac4796096e00e2f629ae69aa5b780c-image.png" className="border" />

# Prerequisites

This tutorial assumes that you already have a list of generated personalized videos. If not, follow along [Generate personalized videos from template via Google Sheets + Zapier](https://docs.heygen.com/docs/create-personalized-video-template) to generate your initial set of personalized videos.

Or you can use this spreadsheet of personalized videos to jump start this tutorial.

[Example Google Sheet](https://docs.google.com/spreadsheets/d/1G5tRaDJ_o4e2E3DM_oz_dscFwxV_R8Y_KZWa1IX2hK0/edit?usp=sharing)

<Image align="center" border={true} src="https://files.readme.io/27cf860104994842a56c155712cda882e984049b9c5918515a4e419044c41921-image.png" className="border" />

# Video tutorial

Follow these steps to send personalized video emails in HubSpot:

1. Add custom fields
   * HeyGen Video Share Page URL
   * HeyGen Video Download URL
   * HeyGen GIF Download URL
2. Create email template
   * [Sample email template](https://docs.google.com/document/d/122T_0UdSp8MhRxuuGzWlAhAu2uLNzkp5v5Vz9KQsxLo/edit?usp=sharing)
3. Import CSV & send

**Watch the video tutorial here:**

<Embed url="https://www.loom.com/embed/6c9370aa8dfb44f6ad06188e9af10dc1?sid=84a3febc-5966-4046-990e-97a05a0f38ba" href="https://www.loom.com/embed/6c9370aa8dfb44f6ad06188e9af10dc1?sid=84a3febc-5966-4046-990e-97a05a0f38ba" typeOfEmbed="iframe" height="520px" iframe="true" />

# Advanced Option: GIF preview

As a more advanced option, you can also embed a GIF preview that links to the personalized video in your email.

<Image align="center" border={true} src="https://files.readme.io/82d0c7e89a02227e13fc39a13346aa1dbc225fd1891aa7d53e00cd9ad0a57fcd-image.png" className="border" />

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

  Double check your CRM to make sure it supports HTML elements in emails.
</Callout>

To enable GIF preview thumbnails, insert the following snippet into an HTML element in your HubSpot email template.

```html html
<div style="padding: 24px 0">
  <a href="{{contact.heygen_video_share_page_url}}">
    <img style="height: 270px" src="{{contact.heygen_video_gif_url}}" alt="preview image" />
  </a>
</div>
```

**Watch the video tutorial here:**

<Embed url="https://www.loom.com/embed/96f6e5dd61d64beb80389b286703104d?sid=3fda7cbf-0cfc-4f62-b9b0-e98d8e660b18" href="https://www.loom.com/embed/96f6e5dd61d64beb80389b286703104d?sid=3fda7cbf-0cfc-4f62-b9b0-e98d8e660b18" typeOfEmbed="iframe" height="520px" iframe="true" />