=== Klozio – Chatbot ===
Contributors: mygoodsite71
Tags: chatbot, ai, woocommerce, support, live chat
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hosted AI sales assistant: it advises your visitors, recommends the right products and guides them to purchase 24/7. Just a license key — no back-office access.

== Description ==

**Klozio is an AI sales assistant for your store** — far more than a simple chatbot. Trained on the **public content** of your site (products, pages, FAQ), it advises your visitors, **recommends the right products** (clickable cards with image and price), replies in several languages and **guides them to checkout 24/7**. It also reports back what visitors look for but don't find (unmet requests) and alerts you to **hot leads**. Klozio is published by **MyGoodSite**.

The chatbot's "brain" is **hosted by MyGoodSite**: the plugin is a lightweight shell that injects the widget with your license key. **No access to your admin is ever transmitted** — only your public pages are indexed.

= Features =

* 24/7 AI answers, multilingual (EN, FR, ES, DE, IT — automatic detection).
* Full customization: position, bubble style, accent color, title, welcome message, logo, teaser bubble.
* Suggested questions (clickable buttons) and proactive opening.
* Email (lead) capture with review and CSV export in the admin.
* Live license verification (subscription status, monthly usage).
* One-click catalog synchronization.

= External service / privacy =

This plugin connects to a third-party service provided by MyGoodSite in order to run the chatbot:

* **Endpoint:** `https://bot.klozio.fr` (widget `w.js`, and API `/chat`, `/sync`, `/lead`, `/leads`, `/status`).
* **Data sent:** your license key, your site domain, the messages typed by your visitors in the chat, and where applicable the email they voluntarily leave. The **public** content of your site is indexed to generate answers.
* **Hosting:** European Union (Contabo GmbH, Germany). Answers generated by Anthropic (Claude model), which does **not** train its models on this data.
* Terms: https://www.mygoodsite.fr/cgv/ — Privacy: https://www.mygoodsite.fr/politique-de-confidentialite/

== Installation ==

1. Upload the `klozio-chatbot` folder to `/wp-content/plugins/`, or install the plugin from the Plugins screen.
2. Activate the plugin.
3. Open the **Klozio** menu (in the admin sidebar) and enter your **license key** (provided after subscribing on klozio.fr).
4. Customize the appearance, then click **Sync now** to index your catalog.

== Frequently Asked Questions ==

= Does the chatbot have access to my WordPress admin? =

No. Only the public pages of your site are indexed. The plugin never sends credentials or admin data.

= Is my data used to train an AI? =

No. Public content is indexed and then passed to the model at the time of each question. Anthropic does not train its models on data sent through its API.

= What happens if I cancel my subscription? =

The chatbot stops displaying and your knowledge base is deleted on the server side within the timeframe set out in the terms (GDPR).

== Screenshots ==

1. Klozio in conversation on a product page: it answers visitor questions instantly.
2. Welcome message and suggested questions (clickable buttons) when the chat opens.
3. Floating bubble and teaser message, discreet, on the store.

== Changelog ==

= 1.4.5 =
* Widget script now enqueued via the WordPress Scripts API (wp_enqueue_script + script_loader_tag) instead of a raw <script> tag.
* Removed the remote Google Fonts request on the admin settings page.
* Removed the manual load_plugin_textdomain() call (translations are loaded automatically by WordPress.org since 4.6).

= 1.4.4 =
* New: "To add to your site (opportunities)" action plan — unmet requests and frequent questions are summarized into concrete, prioritized and typed actions (product, page, info, catalog) to recover lost sales.

= 1.4.3 =
* Back-office redesign: guided dashboard navigation and interface improvements.
* Endpoint switched to the branded domain bot.klozio.fr.

= 1.4.2 =
* Dashboard redesigned to the Klozio brand (premium design) with a guided empty state when there is no data yet, and a product click-through rate indicator.

= 1.4.1 =
* "Operator back-office" access (reserved for the operator): manage every client — costs, margins, onboarding and smoke-test — from the dashboard, via an operator key.

= 1.4.0 =
* WooCommerce catalog importer: products, prices, SKUs, stock and categories sent to the chatbot → it answers on price and reference, and recommends the right products.
* Automatic daily synchronization (catalog + content).

= 1.3.1 =
* "AI sales assistant" positioning assumed everywhere (name, description, dashboard) — Klozio is not a simple chatbot.
* Dedicated **Klozio** admin menu (top level) instead of being hidden under Settings.

= 1.3.0 =
* Klozio becomes a true salesperson: product recommendations as clickable cards (image, price) in the chat.
* "Sales performance" dashboard: recommendations, product clicks, value of clicked products, top products.
* "Unmet requests" insights: what your visitors search for that the site doesn't have.
* Hot lead alert: email notification to the merchant on strong purchase intent.

= 1.2.1 =
* New brand identity: the chatbot becomes **Klozio** (published by MyGoodSite). No change in behavior.

= 1.2.0 =
* Tabbed interface (Settings / Appearance / Dashboard / Emails).
* Light or dark theme.
* Dashboard: period filter, frequent questions, CSV export of conversations.
* Email notification on every contact left by a visitor.
* Hide the bot on Cart / Checkout pages.
* "Erase my data" button (GDPR).

= 1.1.0 =
* Live license verification, color picker, media library for the logo, live preview.
* Suggested questions, proactive opening, lead capture and CSV export.

= 1.0.0 =
* Initial release: widget injection, license key, catalog synchronization.
