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

# Install on your site

> Add the chat widget to any website with one snippet.

Putting your chatbot on your website is one script tag. You get it from the
**Go live** page.

## Where to find it

**1. Open your chatbot**

From **Chatbots**, click the chatbot you want to publish.

**2. Open Go live**

In the left sidebar, under **Publish**, click **Go live**.

**3. Open 'On your website'**

Click **On your website**, enter your website address and click **Generate
code**. Your embed code appears; copy it.

![Chatwize Go live page with the On your website option](https://mintcdn.com/chatwize-b26e5811/RuMGj4tlfho4YYoG/images/en-install.png?fit=max\&auto=format\&n=RuMGj4tlfho4YYoG\&q=85\&s=d65a5704c33086a3c5c2b918dd312f52)

Go live → On your website is where your embed code lives.

## Your code

The code looks like this, with your own key in place of
`wk_YOUR_WIDGET_KEY`:

```html theme={null}
<script src="https://eu.chatwize.ai/embed.js" data-widget-key="wk_YOUR_WIDGET_KEY" defer></script>
```

> [!WARNING]
>
> Use the code exactly as you receive it. The widget key belongs to the website
> address you entered. To show the chatbot on a second domain, add that address on
> the **Go live** page.

## Where to paste it

Paste the code just before the closing `</body>` tag on every page where you want
the chat to appear. Thanks to `defer`, the widget waits until your page has
loaded.

> [accordion] Your own HTML site
>
> Add the code before the closing body tag in your template or layout file, so
> it loads on every page.

> [accordion] WordPress
>
> Use a plugin that lets you insert code in the footer, or add it to your
> theme's footer template.

> [accordion] Shopify
>
> Add the code to `theme.liquid` before the closing body tag in your theme's
> code editor.

> [accordion] Webflow / Wix / Squarespace
>
> Use the site-wide custom code or footer section in your site settings and
> paste the code there.

> [accordion] Google Tag Manager
>
> Create a Custom HTML tag with the code and trigger it on all pages.

> [!TIP]
>
> The **Go live** page has expandable installation guides per platform (WordPress,
> Shopify, Wix, Squarespace, Webflow and other), with the steps for your exact
> site.

## Check that it works

Open your website and look for the chat bubble in the corner. Click it and ask a
question. Not showing? Check that the code is on the page, that the website
address you entered in Chatwize is correct, and clear any page cache.

## Shareable link

Prefer a separate chat page over a bubble? On **Go live**, use the **Shareable
link**: a direct link to your chatbot you can share by email, social media or a
QR code, which you can download right there. No website needed. To build that
same chat page into a page of your own, an **iframe** variant is ready below the
link.

> [!NOTE]
>
> There is one shareable link per chatbot. Anyone who has the link can talk to your
> chatbot. If it gets out, replace it on that same page; the old link stops working
> immediately.

## Restricting your chatbot

Under **Settings → Access & management** you decide who may use the chatbot and
how intensively.

> [accordion] Rate limit
>
> Limits how many questions one visitor can ask in a row. Leave this on: it
> keeps the chatbot available for ordinary visitors and stops one person using
> up your allowance. Sharing the chatbot widely, for example via social media
> or a QR code? Then pick a tighter limit.

> [accordion] Password protection
>
> Put an access code on the chatbot, with your own text on the lock screen.
> Handy for an internal chatbot, a chatbot behind a customer portal, or one
> you are still testing.


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