> 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/chatbot-editor/step-6-publish.md).

# DEPLOY

**Deploy** is where you put your agent live and get the code to add it to your site. Open your agent and click **Deploy** in the left sidebar.

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

***

## Chatbot Status

The toggle at the top turns your agent **on or off for real visitors**.

* **On** — your chatbot is live and responding to visitors.
* **Off** — the widget won't respond, even if the embed code is already on your site.

{% hint style="info" %}
**Activating is not the same as deploying.** The toggle makes your agent *allowed* to respond; the embed code is what actually puts it *on your site*. You need both. You can also see the current status at any time from the **Active / Inactive** chip under your agent's name in the left sidebar.
{% endhint %}

***

## Test before you go live

Click **Test agent** in the top right to open a preview panel beside the screen you're on. Ask it the questions your customers actually ask, and check the answers are right before real visitors see them.

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

The preview is a real conversation with your agent, so it uses your message allowance and shows up in [Conversations](/documentation/chatbot-editor/conversation-history.md) like any other chat.

***

## Deployment methods

Once your agent is active, you have **four deployment methods**:

1. **Chat Widget**\
   Adds a floating chat window to your site. Copy the embed code and paste it just before the `</body>` tag in your website's HTML, then save and refresh.
2. **Embed on Page**\
   Embeds the chatbot inline within your page content, for a seamless, integrated look.
3. **WordPress**\
   Install via the AI BotKit WordPress plugin. The plugin connects your site and handles embedding automatically — see [WordPress Plugin Guide](/documentation/embedding-your-chatbot/wordpress-plugin-guide.md).
4. **Direct Link**\
   Share a standalone chatbot URL with your customers. They can chat without visiting your website at all.

Click any method to expand it for step-by-step instructions and its own copy button.

***

## Related Topics

* [Getting Your Embed Code](/documentation/embedding-your-chatbot/getting-your-embed-code.md)
* [Chatbot Not Showing](/documentation/troubleshooting-and-faqs/chatbot-not-showing.md) — if the widget doesn't appear after installing


---

# 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/chatbot-editor/step-6-publish.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.
