===  AskCybex WooCommerce Sync ===
Contributors: askcybexai
Tags: woocommerce, ai, chatbot, askcybex, product sync
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
WC requires at least: 6.0
Stable tag: 1.0.0
License: GPLv2 or later

Automatically syncs your WooCommerce product catalog to AskCybex.ai so your chatbot always answers product questions with up-to-date information.

== Description ==

**AskCybex WooCommerce Sync** bridges WooCommerce and AskCybex.ai. Every time you save, update, or delete a product the plugin:

1. Exports your full product catalog (name, SKU, description, price, stock status, categories) as a CSV
2. Uploads the CSV to your AskCybex.ai deployment
3. Triggers a retrain so the chatbot answers with the latest data

= Features =

* Automatic retrain on product save / delete (debounced with WP-Cron)
* Manual "Sync All Products Now" button in the settings page
* Configurable: choose which fields to include in the training data
* Paginated export — handles stores with thousands of products
* Shows last-sync timestamp and status in the settings page

= Requirements =

* WooCommerce 6.0 or higher must be installed and active
* An AskCybex.ai account with an API key and a trained deployment

== Installation ==

1. Upload the plugin ZIP via **Plugins → Add New → Upload Plugin**
2. Activate the plugin
3. Go to **Settings → AskCybex Woo Sync**
4. Enter your API key and deployment ID
5. Click **Save Changes** — products will sync automatically from now on

== Frequently Asked Questions ==

= Does it sync immediately when I save a product? =

It schedules a WP-Cron job 10 seconds after the save to avoid blocking your browser. If your site has a cron runner configured it fires within seconds; otherwise it fires on the next page load.

= Will it slow down my WooCommerce dashboard? =

No. Syncing runs in a background cron job, not during the save request.

= How many products can it handle? =

It pages through products in batches of 100, so it scales to any catalog size.

== Changelog ==

= 1.0.0 =
* Initial release
