# 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 the **Publish** screen.
2. Under **Embed on your website**, 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/5ukdR8K5uwR6lQCwJsdj" 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:

* Click **Download Plugin** and install it on your WordPress dashboard.
* **Copy WordPress Code** & add it to your WordPress plugin while loggin in.

***

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


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
