=== AI Chat for Website ===
Contributors: devsmooth
Tags: chat, live chat, ai chatbot, chatbot, lead generation
Requires at least: 6.0
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

An AI chatbot for your website that answers from your own pages, hands quotes to a real person, and emails you every lead.

== Description ==

AI Chat for Website adds a chat widget to your WordPress site.

* **Answers from your own website.** The assistant reads your pages and answers visitors from them, at any hour. It names the page each answer came from, and it says so when your site does not cover a question. It never invents services, prices or policies.
* **A real person can take over.** The widget always shows a "Talk to a person" link, and the assistant asks for a person on its own when a visitor wants a quote, a booking or a call back. Your team takes over live from the portal.
* **Every lead by email.** When a visitor gives a name, an email address or a phone number, you get an email with the whole conversation. Missed chats become leads too.
* **See who is on your site.** How many visitors are on the site now, the pages they read, where they came from and which campaign brought them. Or switch visit recording off and keep chat only.
* **Private by design.** The AI model is self-hosted by the service, the widget sets no cookies, and it honours the Global Privacy Control signal.

The Free plan has no time limit and no credit card. Paid plans raise the limits for a flat price.

This plugin prints the widget snippet with your site key. It has no other job.

= Setup =

1. Sign up at [app.aichatforwebsite.com](https://app.aichatforwebsite.com/signup) and add your website. The service reads your site.
2. Copy the site key (it starts with `st_`) from the Install page of the portal.
3. In WordPress, go to Settings, AI Chat for Website, paste the key and save.

The widget then shows on every page. By default it is hidden from logged-in editors and administrators so your own visits are not counted.

= Third-party service =

This plugin loads the widget script from `https://app.aichatforwebsite.com/w.js` in your visitors' browsers, and the widget talks to that service to answer questions, record visits (if enabled) and pass chats to your team. The service is AI Chat for Website by DevSmooth Software Inc.

* Website: [aichatforwebsite.com](https://www.aichatforwebsite.com/)
* Terms: [aichatforwebsite.com/legal/terms/](https://www.aichatforwebsite.com/legal/terms/)
* Privacy: [aichatforwebsite.com/legal/privacy/](https://www.aichatforwebsite.com/legal/privacy/)
* Wording for your own privacy notice: [aichatforwebsite.com/legal/customer-notice/](https://www.aichatforwebsite.com/legal/customer-notice/)

Nothing is sent from your WordPress server to the service; the plugin only prints the script tag.

== Installation ==

1. Install and activate the plugin, from this directory or from the zip on the Install page of the portal (app.aichatforwebsite.com).
2. Go to Settings, AI Chat for Website.
3. Paste your site key from the portal's Install page and save.

== Frequently Asked Questions ==

= Do I need an account? =

Yes. The Free plan at app.aichatforwebsite.com has no time limit and needs no credit card.

= I saved the key and I see no widget =

Log out or open a private window: the widget is hidden from logged-in editors and administrators by default. A caching plugin may also need its cache cleared once.

= Does it set cookies? =

No. A visitor is a random token in your site's own localStorage, and only when visits are recorded or a chat starts.

= Can I switch off visit recording? =

Yes. Untick "Record visits" in the plugin settings, or switch it off for the site in the portal. Either one makes the widget chat only.

= Does it slow my site down? =

The script is loaded asynchronously and is about the size of a small image. It runs after the page has rendered.

== Screenshots ==

1. The widget answering a question, with the page it came from.
2. A person on the team taking over the chat.
3. The plugin settings page.

== Changelog ==

= 1.0.0 =
* First release: prints the widget snippet with your site key, chat-only switch, hidden for logged-in editors.
