# HeyGen

Let Lyna AI create avatar videos, voiceovers and translations from your HeyGen account, using your plan credits.

Connect your HeyGen account so Lyna AI can make the video your app needs, a welcome message or a product tour, and put it in the page.

## What it lets you do

- Turn a prompt into a finished video with Video Agent, and refine it with follow-up messages.
- Create avatar videos with lip-sync, then list, inspect or delete them.
- Find, design or clone voices, and generate speech.
- Translate videos with voice cloning and lip-sync.
- Cut videos into short clips, and remove filler words and long silences.
- Work with templates, avatars, brand kits and your assets.
- See your profile and remaining credits.

| Item                         | Detail                                                                                                                                              |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| What it asks for             | A sign-in on HeyGen's page.                                                                                                                         |
| Who pays the provider        | You. It uses the credits of your HeyGen plan, and some actions have their own price.                                                                |
| Do actions change real data? | Yes. Creating a video spends your credits, and deleting a video or a voice is real.                                                                 |
| Where it runs                | On HeyGen's servers.                                                                                                                                |
| Who uses it                  | Lyna AI while it builds, in Build mode. Your published app can use it too: [Use a connector in your app](/integrations/connectors/use-in-your-app). |

## What you need before you start

- A HeyGen account on any plan. Remote access is on all plans, and calls use your plan's credits.
- Enough credits for what you ask, and a paid plan for the few actions that need one (see below).
- Consent from any person whose voice or likeness you clone.
- Edit access to your Lyna project.

### Permissions in HeyGen

HeyGen's docs describe no list of permissions to grant. Any avatar or voice in your account can be used through this connection, and what limits it is your plan, your credits and the addresses HeyGen trusts.

| Task                                       | What you need                                        |
| ------------------------------------------ | ---------------------------------------------------- |
| Create videos, voiceovers and translations | Any plan, with enough credits                        |
| Use a custom avatar or voice               | That avatar or voice in your account                 |
| Generate avatar looks                      | A plan above the free tier                           |
| Use a paid speech model                    | A paid plan                                          |
| Clone a person's voice or likeness         | That person's consent, through HeyGen's consent flow |

See [HeyGen's remote server](https://developers.heygen.com/mcp/overview) and [avatar consent](https://developers.heygen.com/docs/avatar-consent).

## Ways to connect

**On the connector's page.** A sign-in on HeyGen's own page. Lyna stores it encrypted. Only the owner can sign in again.

**Who owns the account?** The person who signed in. Every call goes out as that person's HeyGen account, whoever typed the request.

**Who can use it?** Only you, in the projects you link it to, until you change it. On the connector's page, **Who can use it** also offers **Only this project** and **The whole workspace**. See [Who can use a connection](/integrations/connectors#who-can-use-a-connection).

## Set it up

1. ### Open the connector

   Open the **+** menu of the chat and choose **Connectors**. Find **HeyGen** with the search field or under **Content and media**, then open its page.
2. ### Connect

   Choose **Connect**. The **New connection** page opens and reads "Sign in with your HeyGen account to connect." Choose **Connect** at the bottom of the page. **Sharing**, just above, sets who can use it.
3. ### Sign in

   A new window opens on HeyGen's own page. If your browser blocks the window, the page goes to the sign-in in the same tab and brings you back after. Sign in and approve the access.
4. ### Read the result

   The page tests the connection and shows the result. **Connected** means Lyna can use it.

This connector shows no field to fill in: everything you give, you give on HeyGen's own page.

> [!WARNING]
>
> **What never to share**
>
> Lyna never asks for your HeyGen password. Type it only on HeyGen's own page, and never paste a password, a token or a key in the chat.

### Check it works

After you choose **Connect**, the page tests the connection and shows the result. Run it again at any time with **Test connection**. **Connected** proves that HeyGen's server answered, accepted your sign-in and listed its tools. A pass does not prove access to every piece of data. Some tools depend on your plan, and a custom avatar or voice has to exist in your account.

To check for real, ask for something you know exists:

- "What are my remaining HeyGen credits?"

## What to ask Lyna AI

Type these in the chat, in Build mode, and adjust the names to yours. Once it is connected, **Use HeyGen** on its page starts a message for you.

| What you build or do | What to type                                                                                                       | What happens                                                            |
| -------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| Add a welcome video  | "Check how many video credits I have left, then make a 30 second welcome video for my home page from this script." | Lyna AI reads your credits, then creates the video after your approval. |
| Localize a tour      | "Translate my product tour video into French and put it on the French page."                                       | After your approval, the translation is made and your page uses it.     |
| Track your videos    | "List my last 5 videos and give me their status."                                                                  | It lists them in the chat.                                              |
| Add a voiceover      | "Generate speech from this paragraph with a calm voice."                                                           | After your approval, it creates the audio with your credits.            |
| Cut social clips     | "Cut my launch video into three short clips."                                                                      | After your approval, it creates clips from what is said.                |
| Clean a recording    | "Remove the filler words and long silences from my demo video."                                                    | After your approval, it makes a cleaner version.                        |
| Stay on brand        | "List my brand kits and templates, then use the main one for this video."                                          | It reads what your account holds and uses it.                           |

### Approvals and tool switches

Before a call, Lyna AI shows the tool and what it asks. You choose **Deny**, **Allow once**, **Always allow this tool** or **Always allow this connector**. A tool its server marks as read-only does not ask. A changed or new tool asks again, and **Ask again** on the connector's page takes a choice back.

Under **What Lyna AI can use**, each tool has a switch. Lyna AI stops using a tool you turn off, in your chats in this project.

### Stay safe

What a connector answers reaches the AI as data, never as instructions. Read each approval before you accept it.

- Ask for your credits before a large request, since videos use them. HeyGen's own docs list a price for some actions.
- A batch can hold up to 100 videos, translations or lipsyncs. Read the approval on any batch.
- Cloning a voice or creating an avatar of a person needs their consent, and HeyGen has a consent flow for it.

## Limits

- Generated scene videos run 5 to 15 seconds. Longer ones need the HeyGen HTTP API.
- Clips come from speech, so music-only or silent videos fail.
- Studio avatars cannot be deleted, and a voice used by a template cannot be deleted.
- A free plan has fewer tools, and instant voice clones are capped per day.
- See [HeyGen MCP](https://developers.heygen.com/mcp/overview).
- Connector tools run in Build mode. Plan and Ask do not run them.

## Troubleshooting

| What you see                                                           | What it means and what to do                                                                                                                                                         |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Needs sign-in**                                                      | Your sign-in ended, or you revoked it at HeyGen. Choose **Connect** and sign in again.                                                                                               |
| The sign-in window does not open                                       | Your browser blocked it, so the page goes to the sign-in in the same tab. If nothing happens, allow pop-ups for Lyna and choose **Connect** again.                                   |
| No answer from the sign-in window yet                                  | If the window is still open, finish there. If you closed it, choose **Connect** again.                                                                                               |
| **The sign-in was cancelled.**                                         | You closed or declined HeyGen's page. Choose **Connect** and approve the access.                                                                                                     |
| **The service refused the sign-in.**                                   | Check that you used the right account and that your organization allows this access, then choose **Connect**.                                                                        |
| **The sign-in took too long. Start it again.**                         | Choose **Connect** and sign in again.                                                                                                                                                |
| **The sign-in worked, but the server did not answer.**                 | Choose **Test connection**.                                                                                                                                                          |
| **Not tested yet**                                                     | No test has answered. Choose **Test connection**.                                                                                                                                    |
| **Connection failed**                                                  | The page says why next to it. If the server did not answer, choose **Test connection**.                                                                                              |
| A call fails with a permission error                                   | **Connected** does not prove access to every piece of data. HeyGen refused the call with the rights of the account you connected. Check Permissions in HeyGen above, then try again. |
| **New tools to review**                                                | The server changed its list of tools, so Lyna stops using it until you decide. Read the list, then choose **Approve new tools**.                                                     |
| **Turned off**                                                         | Lyna AI does not use it. Choose **Turn on**.                                                                                                                                         |
| It needs a new sign-in. Only the person who connected it can give one. | Someone else connected it, and that sign-in ended. Ask that person to choose **Connect**.                                                                                            |
| The person who connected it left the workspace                         | The connection holds no key or sign-in. Choose **Connect** to use it again.                                                                                                          |
| Sign-in or calls are refused                                           | HeyGen lists the addresses it trusts for custom agents. If the address of Lyna is refused, ask HeyGen for access.                                                                    |
| A video failed                                                         | Ask Lyna for the failure code and message of that video.                                                                                                                             |
| A speech call is refused for your plan                                 | Check that the voice engine is allowed on your plan and fits the language.                                                                                                           |

### Disconnect

**Turn off** stops Lyna from using the connector and keeps your settings. **Remove from this project**, under **More options**, takes it out of this project only, and shows when another project uses it. **Delete connection**, in the same menu, removes it from every project, with what it stored, and says first how many projects lose it. Videos you made stay in your HeyGen account.

## Related

- [Connectors](/integrations/connectors): What connectors are and how the chat uses them.
- [Sanity](/integrations/connectors/sanity): Work with structured content.
- [Playwright](/integrations/connectors/playwright): Check the page in a real browser.
- [Chat modes](/features/ai/chat-modes): Build, Plan and Ask.
