# Embed on your site

> Copy the one-line snippet, add your domain, and put the agent live.

Source: https://www.hey.support/docs/launch/embed

---

The agent goes on your site with a single script tag. Open **Preview & Launch** from the top navigation.

## Copy the snippet

The embed is one line. Copy it from the Deploy page:

```html
<script src="https://hey.support/api/chat/embed.js" data-chatbot-id="YOUR_ID" defer>
</script>
```

Paste it into your site just before the closing `</body>` tag. On most platforms there is a place to add a custom script or footer code; that is where this goes. The `defer` attribute means it loads without slowing your page down.

The theme, position, greeting, and everything else are set in your dashboard, so the snippet never changes when you tweak the agent. It stays exactly this thin.

## Your Chatbot ID

The Deploy page also shows your **Chatbot ID** on its own, with a copy button. It is the same ID that appears in the snippet. Some installs, like the WordPress plugin, ask for the ID directly rather than the whole script.

## Allowed domains

Add every domain the agent should run on under **Allowed domains**. This is what makes the agent live.

Domains verify themselves. The first time real traffic reaches the agent from a domain you added, it flips from **Pending** to **Verified**. You do not paste a token or edit DNS. The "Live on N sites" count at the top reflects the domains actually serving traffic.

<Callout title="Verify your email first">
  You need a verified email address before you can deploy. If you signed up with email and password and have not confirmed your address yet, the Deploy page prompts you to do so.
</Callout>

## Test before you ship

The page carries a **live preview** beside the form — the real agent with your real settings, not a mock — so you can talk to it exactly as a visitor would before the snippet goes anywhere.

There is also a **Live demo** card with a shareable link to a hosted version of the agent. That is the one to send a colleague for a second opinion; it needs no login.

Ask your real top questions and check the answers. If one is weak, the fix is almost always in [Knowledge](/docs/knowledge/overview).

## Other ways to install

If you are on Shopify, WordPress, or a site builder, you may not need to paste the script by hand. See [One-click installs](/docs/launch/one-click-installs).
