=== AIPROCESSIA – AI Sales Assistant & Product Feed ===
Contributors: softnetsistemas
Tags: chatbot, ai, woocommerce, live chat, product recommendations
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI chat assistant selling from your real WooCommerce catalog: product cards, best sellers, add to cart. Needs an AIPROCESSIA plan.

== Description ==

**Important — this plugin is a connector for a paid external service.** The AIPROCESSIA AI assistant is a subscription service with public, flat pricing: Web EUR 49/month, Store EUR 99/month, Knowledge EUR 149/month (VAT excl., no lock-in, cancel from your panel). The plugin itself is free and fully functional as a connector; without an AIPROCESSIA account the widget and the feed simply do nothing.

**What the assistant does on your site:**

* Answers your visitors 24/7 with **your real content and catalog** — it never invents prices or products.
* Shows **product cards** (photo, real price, link) and an **add-to-cart button** right in the chat.
* Recommends **your actual best sellers** (using your real sales data) and always offers a value and a premium option.
* Knows **which product page the visitor is on** ("how much is this one?").
* **Captures leads**: when a visitor shows buying interest, you get their contact details by email instantly.
* Works in the visitor's language (built natively in Spanish and English).

**What this plugin does technically:**

1. Injects the AIPROCESSIA chat widget (a 14 KB deferred script) — only after you configure your widget token.
2. If WooCommerce is active, exposes a product feed (Google Shopping XML) at `/wp-json/aipf/v1/feed`, protected by a secret token, including product attributes (data sheet) and units sold — the data the AI uses for accurate answers and best-seller recommendations.
3. Without WooCommerce, the assistant works in website-chat mode (it learns from your site content, configured in your AIPROCESSIA panel).

**External services (disclosure).** This plugin connects to AIPROCESSIA (Softnet Sistemas SL, Spain — EU-hosted infrastructure, France):

* The visitor's browser loads the chat widget script from the aiprocessia.com domain (path /cuenta/documentos/widget/) and sends chat messages, by POST, to the AIPROCESSIA chat API on the same domain (path /cuenta/documentos/ask/ — an API endpoint, not a web page). This only happens after the site owner sets a widget token.
* AIPROCESSIA servers periodically fetch the product feed exposed by this plugin (if enabled).
* **Optional site registration (opt-in, unchecked by default).** The settings screen has a checkbox to register your site with AIPROCESSIA in order to receive plugin update notices, support and a free SEO+GEO report of your site. Only if you tick it, ONE request is sent to https://aiprocessia.com/cuenta/modulos/registro/ containing: your site domain, the site admin email, the platform (WordPress/WooCommerce and its version), this plugin's version and your language. AIPROCESSIA then sends a confirmation email to that address; **nothing is activated until you confirm** via its single-use link, and every email includes an unsubscribe link. If you leave the box unticked, this request is never made.
* Service terms and privacy: [Legal notice](https://aiprocessia.com/en/legal-notice.html) · [Privacy policy](https://aiprocessia.com/en/privacy-policy.html) · [Pricing](https://aiprocessia.com/en/ai-shopping-assistant/)

== Installation ==

1. Install and activate the plugin.
2. Create your account at [aiprocessia.com](https://aiprocessia.com/en/ai-shopping-assistant/) and get your widget token (panel → Document Assistant → Settings → Chat on your website).
3. In WordPress, go to Settings → AIPROCESSIA Assistant and paste the token. The chat appears on your site.
4. (WooCommerce) Enable the product feed and paste the feed URL shown into your AIPROCESSIA panel (Settings → My store catalog). Done — the assistant now sells from your catalog.

== Frequently Asked Questions ==

= Is the plugin free? =

The plugin is free. The AI assistant it connects to is a subscription service (from EUR 49/month + VAT, flat — no per-conversation or per-user fees, no lock-in). Public pricing: https://aiprocessia.com/en/ai-shopping-assistant/

= Does it work without WooCommerce? =

Yes. Without WooCommerce the assistant works in website-chat mode: it learns your site content (configured from your AIPROCESSIA panel) and captures leads. The product cards and best-seller features need WooCommerce.

= Will it slow my site down? =

No. The widget is a ~14 KB script loaded with `defer`, and nothing loads at all until you configure your token.

= Can the AI make up prices or products? =

No. It only answers with your catalog and site data; prices shown are always your store's real prices, and when it does not know something it says so and offers a human contact.

= Where is my data stored? =

On EU servers (France), with each customer's data isolated. Your content is never used to train AI models. You can delete your data from your panel at any time.

== Screenshots ==

1. The assistant selling in a WooCommerce store: it answers with the real catalog and shows product cards with photo, price, "View product" and "Add to cart".
2. Three-step setup screen: create your account, paste your widget token and (with WooCommerce) enable the product feed.

== Changelog ==

= 1.2.0 =
* New: optional site registration (checkbox, unchecked by default, email double opt-in) to receive plugin update notices, support and a free SEO+GEO report. Fully disclosed under External services; uninstall removes the registration flags.

= 1.1.1 =
* Readme: clarified the external service description (the chat API endpoint is documented as an API, not linked as a page).

= 1.1.0 =
* Frictionless onboarding: after activation you land on a 3-step setup screen, and a reminder notice shows until the assistant is connected. The signup link carries your site domain so the AIPROCESSIA panel can pre-fill your widget domains.

= 1.0.0 =
* Initial release: chat widget injection (token-gated), WooCommerce product feed with attributes (data sheet) and units sold, settings page, feed cache with automatic invalidation.

== Upgrade Notice ==

= 1.2.0 =
Adds an optional (opt-in, double-confirmed) site registration for update notices and a free SEO+GEO report. No behavior changes unless you tick the new checkbox.
