=== Luxivo Live Chat ===
Contributors: luxivo
Tags: live chat, chat, customer support, woocommerce, ai chatbot
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

Live chat that keeps going by e-mail, with an optional AI agent. Your team sees the WooCommerce cart and orders of the person they're helping.

== Description ==

[Luxivo](https://luxivo.app) puts a chat on every page of your site. Answer live from a shared inbox, or let the AI agent answer the easy questions from your help center. When a visitor closes the tab before you reply, your answer goes to their e-mail, and their reply comes back into the same chat.

**Set up in a minute**

1. Install and activate the plugin.
2. Go to Settings → Luxivo and click **Connect with Luxivo**.
3. Sign in (or start a free trial), pick the chat for this site. Done: no code to paste.

**What you get**

* A chat button on every page, in your colors, light or dark to match your theme.
* Replies by e-mail when the visitor has left, back into the same conversation.
* An AI agent that answers from your help center and hands over to your team when it isn't sure.
* Proactive messages on chosen pages ("Questions about sizes?"), with six ready-made templates.
* Live visitors: see who's on your site and on which page, and start the chat yourself.
* Logged-in users are recognized: your team sees their name and e-mail.
* Speaks English, Polish, German, Spanish and French, following your site's language (works with WPML and Polylang).

**WooCommerce**

With WooCommerce active, your team sees the visitor's cart (items with photos, and the total) and, for logged-in customers, their last five orders with links to each order in your admin. It is never written into your pages, so page caches can't mix visitors up.

**Light on your site**

The chat script loads asynchronously, in the footer, and the chat lives in its own iframe: it can't slow down or restyle your theme.

== External services ==

This plugin connects your site to Luxivo (https://luxivo.app), the live chat service it adds to your site. A Luxivo account is required (14-day free trial, then a paid plan).

* On every front-end page, visitors' browsers load the chat from https://luxivo.app/widget.js. The chat sends the messages visitors write, the page they are on and their browser language to Luxivo, so your team can answer them.
* If "Logged-in users" is on, the name and e-mail of the logged-in WordPress user are sent to Luxivo when they use your site.
* If WooCommerce is active and its option is on, the visitor's cart (product names, quantities, prices, and links to the products and their images) and, for logged-in customers, their last five orders (number, status, total, date and an admin link) are sent to Luxivo.
* Settings → Luxivo → Connect opens https://luxivo.app/app/connect in your browser. Luxivo sends back only your widget's public key.

Luxivo [Terms of Service](https://luxivo.app/terms) and [Privacy Policy](https://luxivo.app/privacy).

== Installation ==

1. Install from Plugins → Add New (search for "Luxivo"), or upload the zip and activate it.
2. Settings → Luxivo → **Connect with Luxivo**.

You can also paste a widget key from Luxivo → Widgets → Install code.

== Frequently Asked Questions ==

= Do I need a Luxivo account? =

Yes. Connect creates one if you don't have it yet. Every account starts with a 14-day free trial, no card needed.

= Will it slow down my site? =

No. The script loads asynchronously in the footer and the chat runs in its own iframe.

= Where do I change the colors, texts and office hours? =

In your Luxivo dashboard (Widgets). Changes show up on your site on the next page load, no plugin update needed.

= Can I hide the chat on some pages? =

Yes: in Luxivo, Widgets → Edit → General → Hide on pages (for example /checkout or /my-account/*). Developers can also use the `luxivo_enabled` filter.

= Does it work with caching plugins? =

Yes. Nothing visitor-specific is written into your pages. The WooCommerce cart is fetched separately, uncached.

== Screenshots ==

1. The chat on your site, with a proactive message from your team.
2. The shared inbox, with the visitor's WooCommerce cart and orders.
3. Settings → Luxivo: connect in one click.
4. Live visitors on your site.

== Changelog ==

= 1.0.0 =
* First release: connect with Luxivo, chat on every page, logged-in users, WooCommerce cart and orders.
