# Publish to your site

URL: https://aihio.ai/en/help/get-started/publish-to-site\
Description: Add your finished chatbot to your website.

Once your AI agent is ready, you can add it as a floating chat widget or as a
conversation embedded in the page content.

## Embed the snippet

Open the agent's **Editor** and select **Install → Website chat widget**. Copy
the complete `<script>` element and add it once to your shared site template,
just before the closing `</body>` tag. To make the conversation a fixed part of
one page, select **Install → Embedded chat** and add the provided `<iframe>`
where it should appear.

> **Note — Placement:**
>
> The snippet works anywhere in the page template, but the best location is just before the `</body>` tag.

On an Astro site, place the code in a dedicated `.astro` component, change the
opening tag to `<script is:inline>`, and render the component in the shared
layout. See the [complete publishing guide](/en/help/ai-agent/publish) for
domain restrictions, analytics consent, signed-in visitor identification, and
troubleshooting.

## Verify it works

Open the published page in a private browser window. Confirm that the widget or
embedded conversation appears and answers a test message at both mobile and
desktop widths.
