> ## Documentation Index
> Fetch the complete documentation index at: https://easy-peasy.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add your agent to your website

> Put a chat bubble on every page of your website with one line of code, embed the chat inside a page, or share a link to a hosted chat page.

There are three ways to put your agent on the web:

* **Chat bubble**: a button in the corner of every page that opens the chat. The most common choice.
* **Shareable link**: a hosted chat page. No website needed; share it in emails, QR codes, or your social profiles.
* **Iframe embed**: the chat inside a page, such as a help center or a contact page.

Open your agent, click **Channels**, and click **Manage** on **Chat bubble**. The **Website** page has all three.

## Add the chat bubble

**1. Style the chat bubble**

Click **Customize chat bubble**. It opens [**Appearance** > **Chat bubble**](https://easy-peasy.ai/docs/agents/appearance.md#chat-bubble) in the Playground, where you choose where the bubble sits, its size, icon, color, and text. The **Website** page shows your saved settings and a preview of them on a sample page.

**Open full preview** shows the real chat on a sample page.

**2. Copy the install snippet**

Under **Install snippet**, click **Copy**. The code is the same for every look, because the bubble's settings are saved with your agent:

```html theme={null}
<script
    src="https://bots.easy-peasy.ai/chat.min.js"
    data-chat-url="https://bots.easy-peasy.ai/bot/YOUR_AGENT_ID"
    defer>
</script>
```

**3. Paste it into your website**

Paste the code just before the closing `</body>` tag of your site, on every page where the chat should appear. Most site builders have a place for this, such as **Footer code** or **Custom code**: see [Website platforms](https://easy-peasy.ai/docs/agents/website-platforms.md).

**4. Check your site**

Open your website. The chat bubble appears in the corner, and the greeting pops up next to it. Click the bubble and ask a question.

![A sample web page with the agent's chat bubble at the bottom right and its greeting, Welcome to Example Yoga Studio! How can I help you?, next to it](https://mintcdn.com/easy-peasyai/9Brw5At2juy5r5tl/images/agents/preview-bubble.webp?fit=max\&auto=format\&n=9Brw5At2juy5r5tl\&q=85\&s=5b2c85fa9e79c0823c4dea19f26aa7be)

The bubble shows as soon as your page loads. The chat itself loads in the background once the page has settled, or right away when a visitor points at, taps, or tabs to the bubble, so it doesn't slow your page down.

Everything about the bubble and the chat, from its position and icon to the greeting and colors, is saved with your agent and updates on your site within about a minute, without changing the code. An older install code that still sets a position, size, color, or icon keeps working; what you save in [**Appearance**](https://easy-peasy.ai/docs/agents/appearance.md#chat-bubble) takes priority over it.

![Install snippet with a Copy button, Shareable link with the agent's hosted chat URL, and Iframe embed with an iframe code](https://mintcdn.com/easy-peasyai/9Brw5At2juy5r5tl/images/agents/website-snippet.webp?fit=max\&auto=format\&n=9Brw5At2juy5r5tl\&q=85\&s=3eafaa086089933ecfd5735b59281c0d)

## Shareable link

**Shareable link** is a chat page hosted by Easy-Peasy.AI, at `https://bots.easy-peasy.ai/bot/YOUR_AGENT_ID`. Open it or copy it with the buttons next to it. Share it anywhere you'd share a link, or turn it into a QR code.

## Iframe embed

**Iframe embed** puts the chat inside a page instead of floating over it. Copy the code and paste it where the chat should appear. To make it fill its space on every screen size, set the width to 100%:

```html theme={null}
<iframe
  src="https://bots.easy-peasy.ai/bot/YOUR_AGENT_ID?mode=embedded"
  width="100%"
  height="600"
  allow="microphone">
</iframe>
```

Keep `allow="microphone"` so visitors can use voice input and voice calls.

## Your Agent ID

**Your Agent ID** identifies your agent in embed codes, the [WordPress plugin](https://easy-peasy.ai/docs/agents/wordpress.md), [Zapier](https://easy-peasy.ai/docs/agents/integrations.md#zapier), and the [REST API](https://easy-peasy.ai/docs/agents/integrations.md#rest-api).

## Control the chat from your website's code

Developers can open, close, and hide the chat from their own code, and pass the signed-in visitor's name and email to the agent. See [Chat widget for developers](https://easy-peasy.ai/docs/developers/chat-widget.md).

> [accordion] The chat bubble doesn't appear
>
> * Check that the code is before `</body>` and that you published your site.
> * In [**Settings**](https://easy-peasy.ai/docs/agents/settings.md), **Is agent publicly available?** must be on.
> * If you set **Allowed Domains**, your website's domain must be in the list.
> * If your site uses a Content Security Policy, allow `https://bots.easy-peasy.ai` for scripts, frames, and connections (`connect-src`). Without `connect-src`, the bubble shows its default look instead of the one you saved.

> [accordion] The chat opens but says it can't answer
>
> The agent may be paused because your plan's allowance ran out. See [Limits and usage](https://easy-peasy.ai/docs/agents/limits-and-usage.md#when-an-allowance-runs-out).

> [accordion] The greeting pop-up stopped showing
>
> After a visitor closes the pop-up or opens the chat, it stays hidden for that visitor for 24 hours. To change when it shows, or turn it off, use **Auto show initial messages pop-ups after (in seconds)** on [**Appearance**](https://easy-peasy.ai/docs/agents/appearance.md).

> [card] [Website platforms](https://easy-peasy.ai/docs/agents/website-platforms.md)
>
> Steps for WordPress, Wix, Squarespace, and Webflow.

> [card] [Appearance](https://easy-peasy.ai/docs/agents/appearance.md)
>
> Name, greeting, and colors inside the chat.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.