=== Relio – AI Chat Assistant ===
Contributors: jusev
Tags: ai chatbot, chat widget, woocommerce, live chat, customer support
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your site to Relio’s AI chat assistant. For WooCommerce: syncs products, tracks orders, and adds to cart from chat.

== Description ==

**Relio** is an AI-powered chat assistant that helps your website engage visitors and convert them into customers through intelligent conversations and product recommendations.

This plugin connects your store to the [Relio](https://relio.chat) service, enabling:

* **AI Product Recommendations** — Relio's chatbot understands your product catalog and recommends the right products based on customer conversations.
* **Add to Cart from Chat** — Customers can add recommended products directly to their WooCommerce cart without leaving the chat.
* **Order Tracking** — Completed orders are reported to Relio for sales attribution, letting you see which conversations led to purchases.
* **Automatic Chat Widget** — The Relio chat widget is automatically added to your store's front-end. No code changes needed.

= How It Works =

1. Install and activate this plugin.
2. Click "Connect to Relio" to link your store.
3. Sign up or log in at [relio.chat](https://relio.chat).
4. Approve the WooCommerce API connection.
5. Your products sync automatically — the AI chatbot is ready.

All chatbot configuration (tone, design, product settings) is managed in the Relio dashboard at [relio.chat](https://relio.chat).

= Third-Party Service =

This plugin connects to the **Relio** service ([relio.chat](https://relio.chat)) to provide AI chatbot functionality. By activating and connecting this plugin, your store data (product catalog, completed orders) is transmitted to Relio's servers for processing.

* **Service URL**: [https://relio.chat](https://relio.chat)
* **Terms of Service**: [https://relio.chat/terms](https://relio.chat/terms)
* **Privacy Policy**: [https://relio.chat/privacy](https://relio.chat/privacy)

Data transmitted includes:
* Product catalog (titles, descriptions, prices, images, URLs)
* Completed order details (total, products, customer email) for sales attribution
* Store URL for identification

No customer browsing data or personal information is collected by this plugin without the customer explicitly interacting with the chat widget.

== Installation ==

= Automatic Installation =

1. Go to **Plugins → Add New** in your WordPress admin.
2. Search for **"Relio AI Chat Assistant"**.
3. Click **Install Now**, then **Activate**.
4. Go to the **Relio** menu item in your admin sidebar.
5. Click **Connect to Relio** and follow the prompts.

= Manual Installation =

1. Download the plugin ZIP file.
2. Go to **Plugins → Add New → Upload Plugin**.
3. Choose the ZIP file and click **Install Now**.
4. Activate the plugin.
5. Go to **Relio** in your admin sidebar and click **Connect to Relio**.

== Frequently Asked Questions ==

= Do I need a Relio account? =

Yes. This plugin connects your WooCommerce store to the Relio service. You can create a free account at [relio.chat](https://relio.chat).

= Is WooCommerce required? =

Yes. This plugin is specifically built for WooCommerce stores and requires WooCommerce to be installed and active.

= What data is sent to Relio? =

Your product catalog (for AI recommendations) and completed order data (for sales attribution). No personal customer data is collected without their explicit interaction with the chat widget.

= Can I disconnect at any time? =

Yes. Go to **Relio → Settings** and click **Disconnect**. Your WooCommerce store continues to work normally.

= Where do I configure the chatbot? =

All chatbot settings (tone, design, features, popup rules) are managed in the Relio dashboard at [relio.chat](https://relio.chat). This plugin handles only the store connection.

== Screenshots ==

1. Meet Relio — AI-powered sales assistant with live product recommendations directly in the chat widget
2. Powerful analytics dashboard — Track conversations, revenue, conversion rates, and top products in real time
3. Safe for health & supplement stores — Built-in compliance guardrails prevent unsafe medical claims
4. Simple 3-step setup — Import products, let AI learn your catalog, and start selling in under 5 minutes
5. Understands intent, not just words — Semantic AI search finds the right products even from vague queries

== Changelog ==

= 1.2.1 =
* Fixed: Widget script now loads correctly (site key passed as URL parameter).

= 1.2.0 =
* Fixed: Chat widget now displays correctly after connecting via the plugin.
* New: Site selector — switch between Relio sites directly from the plugin settings.
* New: Settings page shows active chatbot name and domain.
* Improved: Connection flow uses secure API keys instead of numeric IDs.

= 1.1.0 =
* Self-hosted update mechanism for direct installs.
* Improved connection detection for Relio-first setup flow.
* Compatibility with WordPress 6.9 and WooCommerce 9.6.

= 1.0.0 =
* Initial release.
* WooCommerce API connection via built-in auth.
* Product catalog sync.
* Order webhook for sales attribution.
* Add-to-cart from chat.
* Automatic chat widget injection.

== Upgrade Notice ==

= 1.2.0 =
Critical fix: chat widget visibility after connection. Adds site selector for multi-site users.

= 1.1.0 =
Improved compatibility and update support.

= 1.0.0 =
Initial release.
