> For the complete documentation index, see [llms.txt](https://aibotkit-docs.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aibotkit-docs.gitbook.io/documentation/embedding-your-chatbot/getting-your-embed-code.md).

# Getting Your Embed Code

Once your chatbot is set up, the final step is to make it visible on your website. AI Bot Kit provides a simple code snippet that you can copy and paste directly into your site.

***

#### Getting Your Embed Code

1. After saving your chatbot, go to **DEPLOY → Publish**.
2. Under **Chat Widget**, you’ll see a code snippet like this:

```html
<div id="ai-bot-kit-chatbot" data-chatbot-id="XXXXXXXX"></div>
<script src="https://app.aibotkit.io/embed.js" async defer></script>
```

3. Click **Copy Code** to copy the snippet.
4. Paste this code into the `<head>` or `<body>` section of your website’s HTML.
   * For site-wide installation, place it in the global **header/footer** section.
   * For a single page, paste it into that page’s custom HTML block.

💡 **Tip:** If your site uses a website builder (like Squarespace, Wix, or Shopify), add the embed code using the “Embed” or “Custom Code” block.

***

<figure><img src="/files/mZSsCkzyG8oTtmTj2vIY" alt=""><figcaption></figcaption></figure>

#### Share Link

AI Bot Kit also provides a **direct share link** to your chatbot.

* Click **View Link** to open your bot in a new tab.
* Use **Copy Link** to share your bot via email, social media, or with your team.

***

#### WordPress Plugin (Optional)

For WordPress users, a dedicated plugin is available:

* Select the **WordPress** deployment method on the Publish page.
* Install the AI BotKit plugin on your WordPress dashboard and connect your account.

***

⚡ **In Short:** Copy the embed code → Paste it into your website → Save changes → Your chatbot goes live instantly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://aibotkit-docs.gitbook.io/documentation/embedding-your-chatbot/getting-your-embed-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
