> For the complete documentation index, see [llms.txt](https://help.wotnot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wotnot.io/deploy/publishing-agents/website/wordpress.md).

# WordPress

## Step 1: Copy the code snippet

* Goto Settings > Web > Installation
* Enter the domain where you want to launch your chatbot
* Copy the "Widget installation code"

<figure><img src="/files/1hsHi5uGOId5mj081nAw" alt=""><figcaption></figcaption></figure>

## Step 2: Adding the code on WordPress

### Using a plugin

1. Go to WordPress Dashboard > Plugins > Add New.
2. Search and install Insert [Headers and Footers](https://wordpress.org/plugins/insert-headers-and-footers/).
3. Click Install Now, then Activate the plugin.
4. Navigate to Settings > Insert Headers and Footers.
5. Paste your WotNot chatbot script into the Scripts in Header section.
6. Click Save to apply the changes.
7. If the chatbot does not appear immediately, try purging your website cache. This may be required if you're using a caching plugin or a CDN like Cloudflare.

### Using Elementor

**Every page Installation**

1. Navigate to Elementor > Custom Code (Pro version required).
2. Click Add New.
3. Name your script (e.g., Chatbot).
4. Paste the chatbot script.
5. Set Location to Head and Condition to Entire Site.
6. Click Publish.

**Page-Specific Installation**

1. Edit the page using Elementor.
2. Add an HTML widget.
3. Paste your chatbot script.
4. Save and update the page.


---

# 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://help.wotnot.io/deploy/publishing-agents/website/wordpress.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.
