=== AI Chat Bot ===
Contributors: aichatbot
Tags: chat, chatbot, live chat, customer service, leads
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds your AI Chat Bot assistant to every page of your site. Paste one ID, no theme editing.

== Description ==

This plugin puts your AI Chat Bot assistant on your WordPress site. It does one thing: it adds the widget script to every page, with the right settings, so you do not have to edit a theme file or ask a developer.

You need an AI Chat Bot account. The assistant answers your website visitors from your own pages, says plainly when it does not know something, and sends you each new lead. All of that is configured in your dashboard, not here.

**What this plugin does**

* Adds the assistant to every page of your site.
* Takes your agent ID, or the whole snippet if that is what you have to hand.
* Lets you switch the assistant off without deleting anything.

**What it does not do**

* It does not collect, store or send any personal data of its own.
* It does not add dashboard widgets, notices, upsells or adverts.
* It does not change how the assistant behaves. That is your dashboard's job.

**Privacy**

The plugin itself stores one setting in your WordPress database: your agent ID, a colour, and whether the assistant is switched on. It sends nothing anywhere.

The widget script it adds is served from the AI Chat Bot service, and visitors who use the chat interact with that service under its own privacy policy and terms. If your site needs a cookie or privacy notice, treat the assistant as you would any other third-party chat tool.

== Installation ==

1. Download `ai-chat-bot.zip` from https://ai-chat-bot.co/wordpress-chatbot-plugin and leave it zipped.
2. In WordPress, go to **Plugins → Add Plugin → Upload Plugin**, choose the zip, click **Install Now**, then **Activate Plugin**.
3. Go to **Settings → AI Chat Bot**.
4. Paste your agent ID. It is on the Widget screen of your AI Chat Bot dashboard. You can paste the whole snippet instead and the ID will be taken out of it.
5. Make sure **Show the assistant** is ticked, and save.
6. Open your site in a new tab. The chat bubble should be in the corner.

Your dashboard confirms the install by itself, usually within a few minutes of the first visitor.

== Frequently Asked Questions ==

= Do I need an account? =

Yes. The plugin adds an assistant you already have; it does not create one. You can start one at ai-chat-bot.co.

= Where do I find my agent ID? =

On the Widget screen of your dashboard. If it is easier, copy the whole snippet shown there and paste that into the ID box. The plugin takes the ID out of it.

= I pasted the ID and nothing appears. =

Three things are worth checking, in this order. Make sure **Show the assistant** is ticked. Clear your caching plugin's cache, since the page a visitor gets may have been built before you saved. And view your page source and search for `widget.js`. If it is there, the script is loading and the problem is on the dashboard side: if this site is on a different domain from the one your assistant was set up for, add it under **Where it can appear** on your Widget screen.

= Can I hide it on some pages? =

Not from this screen. Most sites want the assistant everywhere, and a page-by-page rule is the kind of setting that quietly stops a lead reaching you. If you need it, a developer can do it in a few lines with the `wp_enqueue_scripts` action.

= Does it slow my site down? =

The script is loaded asynchronously and in the footer, so it does not hold up your page. The chat panel itself is only fetched if a visitor opens the chat.

= I use a caching or optimisation plugin. =

The script is added through WordPress's own enqueue system rather than printed directly into your footer, which is what lets optimisation plugins see it and handle it properly. If yours is set to combine or defer all scripts, exclude `widget.js`: combining a third-party script with your own is a common way to break both.

= Does it work on multisite? =

Yes. Each site in the network has its own settings and its own agent ID.

== Changelog ==

= 1.0.0 =
* First release.
