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

# WordPress

> Add a bot to your WordPress website using Webchat.

> [!NOTE]
>
> You will need:
>
> * A [published bot](https://botpress.com/docs/get-started/quick-start.md)
> * A WordPress website. Your website could be managed ([WordPress.org](https://wordpress.org/)) or self-hosted ([WordPress.com](https://wordpress.com/))
> * If you're self-hosting: a WordPress [plan that allows installing plugins](https://wordpress.com/pricing/)

> [!TIP]
>
> Visual learner?
>
> Check out our [WordPress guide](https://www.youtube.com/watch?v=PzGFVqOzDsk) on YouTube, which teaches you how to build and embed a bot on your WordPress website.

## 1. Get your embed code

To embed a bot on your website, you need the bot's Webchat embed code. You can get the embed code from the Dashboard:

1. Open your bot's Workspace and select the bot you want to embed.
2. In the left sidebar, go to **Webchat** > **Deploy Settings**.
3. Copy the **Embed code**:

![Embed code from Dashboard](https://mintcdn.com/botpress/ZI-0qkWaLdZHgMpF/snippets/webchat/assets/embed-code-dashboard.png?fit=max\&auto=format\&n=ZI-0qkWaLdZHgMpF\&q=85\&s=dbacbc9da04036057f8f23086996c1eb)

## 2. Install the WPCode plugin in WordPress

1. Login to your [WordPress dashboard](https://login.wordpress.org).
2. From the left navigation bar, select **Plugins**.
3. Search for the [WPCode plugin](https://wordpress.org/plugins/insert-headers-and-footers/#description) and select **Install Now**.

## 3. Add the bot to your WordPress website

1. From the left navigation bar, select **Code Snippets**.
2. Select **Add New**. Then, select **Add Your Custom Code (New Snippet)**.
3. Select **HTML Snippet**. Then, paste your Webchat embed code into the **Code Preview** field.
4. Scroll to the **Insertion** section, then open the **Location** drop-down menu. Select **Side Wide Body**.
5. In the upper-right corner, set the snippet to **Active**, then select **Save Snippet**.

> [!TIP]
>
> Your bot is now live on your WordPress site.

## Next steps

Now that you've added your bot, try [styling](https://botpress.com/docs/webchat/get-started/configure-your-webchat.md) it to match the rest of your website's user interface.


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