> For the complete documentation index, see [llms.txt](https://docs.supademo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.supademo.com/ai-demo-agent/publishing-and-sharing/embed-ai-demo-agents.md). Agents can also search and read this documentation through its [MCP server](https://docs.supademo.com/~gitbook/mcp).

# Embed AI Demo Agents

Put your AI demo agent right on your website. Learn how to add it as a popup that opens from your own button, or as a floating launcher that's always available in the corner of every page.

***

### **What is Embed AI Demo Agents?**

Once your demo agent is built, you can embed it directly on your website so visitors can explore your product without leaving the page. In addition to the **Inline embed**, Supademo offers two more embed options: a **Popup embed**, which opens your agent whenever someone clicks a button on your site, and a **Floating embed**, which shows an always-available **launcher** in the corner of your site.

Both options run on a single **SDK snippet** that you add to your site once. From there, add the button code or initialization code for the embed style you want.

{% @supademo/embed url="<https://app.supademo.com/demo/cmuvgi58903siqm9zqamkpfbe>" demoId="cmuvgi58903siqm9zqamkpfbe" %}

***

### **Before you start**

You'll need:

* A demo agent that's built and ready to share
* Access to edit your website's code (including the `<head>` tag)

***

### **1. Popup embed**

1. Click the **More actions** menu next to your demo agent.
2. Click **Share** to open the sharing and embed options.
3. Select **Popup embed** to open your agent in a popup whenever someone clicks a button on your site.
4. Click **Copy** to grab the **SDK snippet**, then paste it inside your site's `<head>` tag, before the button code.
5. Click **Copy** to grab the **button code**, then paste it wherever you want the button to appear. You can style the button to fit your site's design.
6. On your live site, click the button (e.g. **Talk to Supademo Onboarding Coach**) to launch the demo agent.
7. Your demo agent opens in a popup window on your site.

***

### **2. Floating embed**

1. In the same **Share** window, select **Floating embed** to show your agent as an always-available launcher in the corner of your site.
2. Click **Copy** to grab the **SDK snippet** and add it to your site's `<head>` tag. Skip this if you already added the SDK for the popup embed.
3. Click **Copy** to grab the **initialization code** and add it to your site to turn on the launcher.
4. On your live site, click the **launcher** in the bottom-right corner to open your demo agent and start chatting.

> 💡 **Tip:** You only need to add the SDK snippet once. It powers both the popup and floating embeds.

{% hint style="info" %}
**Prefer npm?** Install the SDK as a package instead of the script tag, so it's versioned with the rest of your code. In the agent's **Share** window, open the **npm** tab, or run:

`npm install @supademohq/sdk`

Then import it once in code that runs in the browser:

`import "@supademohq/sdk";`
{% endhint %}
