=== Maya for WooCommerce ===
Contributors: mytechupgrade
Tags: ai, voice assistant, chatbot, woocommerce, product discovery
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add Maya AI voice assistant to your WooCommerce store. Visitors ask questions in natural language — Maya answers with live product and stock data.

== Description ==

Maya is an AI voice and text assistant that sits on your WooCommerce store as a floating widget. Visitors click the microphone button and ask questions like "what do you have in stock for birthday gifts?" — Maya answers instantly with live product data.

**Features:**

* Voice and text conversations — visitors speak or type naturally
* Live product catalog — Maya queries your real WooCommerce inventory
* In-stock only responses — Maya never recommends out-of-stock items
* Multilingual — auto-detects and responds in the visitor's language
* Lead capture — Maya captures contact info when visitors show interest
* Compliant with the EU Accessibility Act (mandatory June 2025 for EU businesses)

**How it works:**

This plugin connects your WooCommerce store to the Maya service hosted at maya.mytechupgrade.com. It:
1. Injects the Maya widget script on every storefront page
2. Optionally connects your WooCommerce REST API so Maya can serve live product data

All visitor conversations and AI processing happen on Maya's servers. See our Privacy Policy at https://maya.mytechupgrade.com/privacy for details.

**Requirements:**

* A Maya account — sign up at https://maya.mytechupgrade.com
* WooCommerce 7.0 or higher

== Installation ==

1. Upload the plugin to `/wp-content/plugins/` or install via Plugins → Add New.
2. Activate the plugin through the Plugins menu.
3. Go to WooCommerce → Maya to configure.
4. Enter your Widget ID (from your Maya dashboard under Websites).
5. (Optional) Add your WooCommerce REST API keys for live product data.

== Frequently Asked Questions ==

= Where do I get my Widget ID? =
Log in to your Maya dashboard at https://maya.mytechupgrade.com, go to Websites, and copy the Widget ID for your store.

= How do I generate WooCommerce REST API keys? =
Go to WooCommerce → Settings → Advanced → REST API → Add key. Set Permissions to Read and generate. Copy the Consumer key and secret into the Maya settings page.

= Does this plugin store visitor data? =
Visitor conversations are handled by Maya's servers. This plugin itself stores only your Widget ID and API connection credentials in your WordPress database. See https://maya.mytechupgrade.com/privacy.

= Is the plugin free? =
The plugin is free. Maya requires a subscription — plans start at €99/month with a 14-day free trial.

== Screenshots ==

1. Maya settings page under WooCommerce menu
2. Maya widget on a WooCommerce storefront

== Changelog ==

= 1.1.1 =
* Changing only the store domain or widget ID now re-syncs the connection to Maya
  (previously the backend kept the old config until the API keys were re-saved)
* Consumer secret can no longer be accidentally overwritten with the masked display
  value when saving other fields

= 1.1.0 =
* Added live WooCommerce catalog connection (Consumer key/secret + shop domain)
* Maya now answers product/stock questions with real-time WooCommerce data
* Fixed license to GPLv2 for WordPress.org compliance

= 1.0.0 =
* Initial release — widget embed + settings page

== Upgrade Notice ==

= 1.1.0 =
Adds live product catalog support. Add your WooCommerce REST API keys in WooCommerce → Maya to enable.

== External Services ==

This plugin connects to Maya (https://maya.mytechupgrade.com) to:
- Load the Maya voice assistant widget (widget.js) on your website pages
- Sync your WooCommerce product catalog to Maya's knowledge base (optional, requires WooCommerce REST API keys)

Data processed: website visitor messages, lead capture data (name, email). Audio processed in real-time; not stored by Maya.

Terms of Service: https://maya.mytechupgrade.com/terms
Privacy Policy: https://maya.mytechupgrade.com/privacy
