=== Turut AI ===
Contributors: gbabir
Tags: chatbot, woocommerce sync, ai sales agent, live chat, automation
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects your WooCommerce store with Smart AI Sales Agent for real-time inventory sync and automated omnichannel tracking.

== Description ==

**Turut AI** is the official WordPress integration for the Smart AI SaaS platform. It bridges the gap between your WooCommerce store and your omnichannel AI sales agent with zero coding required!

Turn your website into an automated sales machine by instantly synchronizing your products, prices, and stock levels with your AI chatbot. Whether your customers reach out via Facebook Messenger, WhatsApp, or Webchat, the AI will always have the latest product information.

### 🚀 Key Features:
* **Zero-Click WooCommerce Sync:** Automatically push new products, price changes, and stock updates to your AI memory in real-time.
* **Auto Lead Pipeline:** When a customer places an order on your website, it instantly appears in your Smart AI Dashboard's Lead CRM.
* **1-Click Widget Injection:** Enable the AI Webchat Widget on your website's footer directly from the plugin settings—no theme editing needed!
* **Secure Handshake Authentication:** Connect your store securely using a Workspace ID and Secret Key. No WP admin passwords are required!

### 💡 Why Smart AI?
Smart AI is an omnichannel Inbox and AI Sales Agent designed to automate your Facebook and WhatsApp business channels while perfectly syncing with WooCommerce. 

== Installation ==

1. Upload the `smart-ai-connect` folder to the `/wp-content/plugins/` directory, or install directly through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Click on the new **Smart AI** menu in your WordPress sidebar.
4. Go to your Smart AI Dashboard, copy your **Workspace ID** and **Secret Key**.
5. Paste them into the plugin settings and click **Connect & Save**.
6. (Optional) Check the "Show Chatbot Widget" box to instantly enable live chat on your site.

== Frequently Asked Questions ==

= Do I need a Smart AI account? =
Yes, you need an active workspace on the Smart AI platform to use this plugin.

= Does this slow down my website? =
Not at all! We use asynchronous, non-blocking background requests (webhooks) to sync your data. It has zero impact on your website's page load speed.

= How long does the product sync take? =
Updates are sent in real-time. The moment you save a product or an order is placed, your AI knows about it within milliseconds.

== Screenshots ==

1. **Smart AI Settings Panel:** Easy 1-click connection using your Workspace ID and Secret Key.
2. **Chatbot Widget:** The beautiful AI chat widget running on your WooCommerce storefront.

== Changelog ==

= 1.0.1 =
* Added support for WooCommerce Variable Products (syncs variation details and prices).
* Improved Widget Client ID auto-injection logic.

= 1.0.0 =
* Initial Release.
* Added Real-time WooCommerce Product Sync (Stock, Price, Description, Image).
* Added Automated Order Webhook for CRM.
* Added 1-Click Chatbot Widget Injection.