=== AeroChat - AI Chatbot & Customer Service Automation === Contributors: aerochat Tags: chatbot, ai, customer service, woocommerce, live chat Requires at least: 5.8 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 2.0.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Sync your WordPress & WooCommerce content to the AeroChat AI chatbot and answer customer questions automatically. == Description == AeroChat adds an AI-powered chatbot to your WordPress site and keeps it in sync with your content. Pages, posts, and — when WooCommerce is active — products, coupons, and shipping zones are sent to the AeroChat knowledge base so the chatbot can answer customer questions accurately. Features: * AI chatbot widget that appears in the bottom-right corner of your site. * Automatic, real-time sync of pages and posts when you publish or update them. * WooCommerce support: products (with variants, pricing, and stock), coupons, and shipping zones. * One-click "Sync Now" to push all of your content at once. * Simple connection flow — paste the API key from your AeroChat dashboard and you're done. A free or paid AeroChat account is required to use this plugin. You can create one at https://aerochat.ai. == External services == This plugin connects to the AeroChat service (operated by AeroChat) to power the AI chatbot and to sync your site content into the chatbot's knowledge base. The plugin does not contact AeroChat until you enter an API key generated from your AeroChat dashboard. The plugin communicates with the AeroChat API at https://app.aerochat.ai for the following purposes: 1. Connection / verification * What is sent: your site URL, the chatbot enabled/disabled state, and your AeroChat API key. * When: when you save your API key, when you toggle the chatbot on or off, and periodically to verify the connection is still valid. * Endpoint: https://app.aerochat.ai/bot/wordpress/webhook/ping 2. Content synchronisation * What is sent: published pages and posts (title, URL, and content); and, when WooCommerce is active, products (name, description, price, variants, stock, tags, image URL), coupons (code, discount type, amount, expiry date), and shipping zones and methods. * When: when you click "Sync Now", when you save your API key, and automatically when you create, update, or delete the relevant content. * Endpoints: https://app.aerochat.ai/bot/wordpress/webhook/content and https://app.aerochat.ai/bot/wordpress/webhook/batch 3. Chat widget (front end) * What is sent: when the chatbot is enabled, your site loads the AeroChat widget script and visitors' chat messages are sent to AeroChat so the AI can generate replies. * When: on front-end page views while the chatbot is enabled. * Script: https://app.aerochat.ai/static/chatbox_live.js Use of the AeroChat service is governed by the AeroChat Terms of Service (https://aerochat.ai/legal/terms) and the AeroChat Privacy Policy (https://aerochat.ai/legal/privacy-policy). == Installation == 1. Upload the plugin files to the `/wp-content/plugins/aerochat` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the "Plugins" screen in WordPress. 3. Go to the AeroChat menu, then "Settings". 4. Paste the API key generated from your AeroChat dashboard (Channels > WordPress > Generate API Key) and click "Save Settings". Your content will sync automatically. 5. On the AeroChat Dashboard page, toggle "Enable AeroChat chatbot in your theme" to show the widget on your site. == Frequently Asked Questions == = Do I need an AeroChat account? = Yes. The plugin connects your WordPress site to your AeroChat account. You can create an account at https://aerochat.ai. = Does it work with WooCommerce? = Yes. When WooCommerce is active, the plugin also syncs your products, coupons, and shipping zones so the chatbot can answer store-related questions. = How do I stop syncing my content? = Remove the API key on the Settings page, or deactivate the plugin. The widget can also be turned off independently using the toggle on the Dashboard page. == Screenshots == 1. The AeroChat Settings page, where you paste the API key from your AeroChat dashboard. == Changelog == = 2.0.4 = * Compliance: admin Settings and Dashboard JavaScript is now enqueued via wp_enqueue_script / wp_localize_script (admin_enqueue_scripts) instead of printed inline; no inline