=== AI SmartTalk ===
Contributors: aismarttalk
Donate link: https://aismarttalk.tech
Tags: chatbot, ai, chat, customer support, live chat
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 2.13.3
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

AI-powered chatbot for your WordPress website. Connect your site to AI SmartTalk and provide instant customer support.

== Description ==

**AI SmartTalk** is a powerful AI chatbot solution designed to enhance your website's customer engagement and support capabilities.

= Features =

* **Easy Setup** - Connect your WordPress site with a single click using OAuth
* **AI-Powered Responses** - Intelligent chatbot trained on your content
* **Customizable Appearance** - Match your brand colors and style
* **Multi-language Support** - Available in English, French, German, and Spanish
* **Voice Input** - Allow users to speak to your chatbot
* **File Attachments** - Users can share files in the chat
* **Feedback System** - Collect user ratings on AI responses
* **Content Sync** - Automatically sync your pages and posts with AI SmartTalk
* **Smart Search** - Enhance your WordPress search with AI

= Elementor Widgets =

* Smart FAQ Widget
* Smart Calendar Widget
* Fact Check Widget
* Review Widget
* How-To Widget

= Requirements =

* An AI SmartTalk account ([Create one here](https://aismarttalk.tech))
* WordPress 5.0 or higher
* PHP 7.4 or higher

== Installation ==

1. Upload the `aismarttalk` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **AI SmartTalk** in your admin menu
4. Click **Connect with AI SmartTalk** and authorize your account
5. Configure your chatbot appearance and features

== Frequently Asked Questions ==

= Do I need an AI SmartTalk account? =

Yes, you need a free or paid AI SmartTalk account to use this plugin. You can create one at [aismarttalk.tech](https://aismarttalk.tech).

= Is it free? =

AI SmartTalk offers both free and premium plans. The plugin itself is free to use.

= Can I customize the chatbot appearance? =

Yes! You can customize the button style, colors, position, and more from the plugin settings or from your AI SmartTalk dashboard.

= Does it work with Elementor? =

Yes, AI SmartTalk includes several Elementor widgets for enhanced functionality.

== Screenshots ==

1. Plugin settings page
2. Chatbot widget on frontend
3. Connection setup

== Changelog ==

= 2.13.3 =
* Maintenance release. No functional change: it is the first version delivered to an installed site through the one-click update introduced in 2.13.1.

= 2.13.2 =
* Maintenance release. No functional change: it exists so the update channel introduced in 2.13.1 can be exercised from end to end on a real site.

= 2.13.1 =
* The plugin now updates itself: WordPress shows the usual "Update now" button on the Plugins screen, and the Advanced tab has a "Check for updates" button. Packages are downloaded from our CDN over HTTPS and verified against a published sha256 checksum before installation.

= 2.12.3 =
* Fixed: synced pages and posts kept their HTML structure instead of being flattened to plain text. Link targets and heading levels were previously discarded, so the assistant could not point visitors to a linked page and had no section structure to ground its answers in.

= 2.12.2 =
* Fixed: posts and pages using the "Read More" (<!--more-->) or page-break tag were synced truncated — only the teaser followed by "(more…)" reached the knowledge base, so the assistant could not answer from the body of those articles. The full content is now sent.

= 2.12.1 =
* Security: the get-orders-by-email and add-to-cart conversation tools are now bound to the verified identity of the conversation user (user_email). Orders can no longer be read or modified for an arbitrary email address or user id.

= 2.12.0 =
* Settings dropdowns now show the concrete value that is applied (e.g. "Bottom Right", "Enabled") instead of an ambiguous "API Default" — for appearance, features and GDPR options alike.
* Fixed unreadable dropdowns: option text no longer turns black on hover in the dark settings theme.
* Compacted the Features and GDPR toggles into a responsive grid so the settings page is shorter and easier to scan.

= 2.11.0 =
* Configurable sync scope: independently choose whether to sync your WooCommerce products and/or your pages & posts (mirrors the PrestaShop connector, where most merchants sync products only).
* Smart defaults on fresh installs — a new WooCommerce store syncs products only, a content site syncs pages & posts; existing connected sites keep syncing everything (no change on upgrade).
* Every sync trigger (manual, automatic, on save/delete, on stock change) now respects the selected scope.

= 2.10.0 =
* Widget language control: restrict which languages the chatbot switcher offers (mirrors the PrestaShop connector); the active language falls back to the first allowed one when the visitor's language is not offered.
* Require authentication: optionally gate the chatbot so only logged-in users can chat.
* GDPR & consent: opt-in consent notice, custom privacy-policy URL, and an optional consent wall with a custom message.
* Customer sync: export your customers to the AI SmartTalk CRM (on account create/update, removed on deletion), with an "all customers / marketing opt-in only" consent filter and a "Sync all" action.
* The widget now clears the signed-in user's token client-side on logout.

= 2.9.0 =
* In-widget shopping cart for WooCommerce: add products to the cart straight from the assistant's product cards, then manage the cart (change quantity, remove items, apply vouchers) without leaving the chat.
* Powered by AI SmartTalk's canonical, same-origin cart bridge — the storefront stays the source of truth and the logged-in customer is re-checked server-side on every request.
* The native cart updates live after a change made from the widget — both classic themes (cart fragments) and block themes (Mini-Cart block / Interactivity API).
* Fix: quantity changes and removals made from the widget cart now persist reliably (the WooCommerce cart session is loaded before the line is validated in the REST context).
* Fix: product cards now expose the correct WooCommerce product id, so "Add to cart" works on slug-based product URLs.

= 2.8.0 =
* WooCommerce products are now synchronized using the AI SmartTalk cross-platform canonical product format (v1), aligned with the PrestaShop connector.
* Prices are emitted as structured amounts (currency, minor units, decimals) so the assistant can filter and sort precisely.
* Unified stock block: availability (in_stock/out_of_stock), quantity and restock date.
* Variable products now sync their variations as canonical variants (SKU, price, attributes, stock).
* Product categories are synced as a hierarchy so products are auto-attached to real categories.
* Out-of-stock cleanup and deletions now use the canonical product endpoints.

= 2.5.2 =
* Added OAuth authentication (no more manual token copying)
* New modern settings page design
* Added chatbot appearance customization
* Added voice conversation mode
* Improved translations (FR, DE, ES)

= 2.4.0 =
* Added Elementor widgets
* Added Smart FAQ features
* Performance improvements

= 2.3.0 =
* Added content synchronization
* Added smart search integration

== Upgrade Notice ==

= 2.10.0 =
Adds widget language restriction, an optional login requirement, GDPR/consent controls, and customer CRM sync — bringing WooCommerce to parity with the PrestaShop connector.

= 2.9.0 =
Adds an in-widget WooCommerce cart (add to cart from product cards, manage quantities/vouchers) with live native-cart sync. Requires WooCommerce; no-op on non-WooCommerce sites.

= 2.5.2 =
Major update with OAuth authentication and new settings interface. Please reconnect your AI SmartTalk account after updating.

