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