=== ILACHAT - AI Chatbot & Live Chat ===
Contributors: ilachat
Donate link: https://ila.chat
Tags: chatbot, live chat, AI chatbot, customer support, WooCommerce
Tested up to: 7.1
Stable tag: 2.0.1
Requires at least: 6.3
Requires PHP: 7.4.0
License: GPL v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

AI chatbot and live chat for WordPress and WooCommerce. Sync content and products, track orders, and capture leads.

== Description ==

ILACHAT connects your WordPress website and WooCommerce store to an AI customer support agent and live chat platform. Its dedicated AI chatbot uses your business knowledge base and instructions to generate relevant, context-aware answers. Answer questions based on your website content, guide shoppers to relevant products, retrieve current WooCommerce order details, and collect customer inquiries around the clock.

Keep the chatbot's knowledge base up to date with automatic background synchronization of selected website content and products. When human support is needed, your team can take over with the conversation history and return the conversation to the chatbot when appropriate.

Manage conversations from your website, Telegram, Bale and Goftino in one ILACHAT panel. You can also connect your own applications through the API. ILACHAT supports Persian and other languages, making it suitable for Iranian businesses as well as multilingual websites.

The plugin connects your site to the ILACHAT cloud service; an ILACHAT account is required. Chatbot behavior, team conversations, messaging channels and smart forms are managed in ILACHAT. WordPress settings control website integration, data synchronization and widget display. See the pricing page for service plans and usage limits.

=== Benefits of ILACHAT ===

* **Reduce repetitive support work:** answer common questions using your website content and business instructions, including outside your team's working hours.
* **Help shoppers choose products:** provide sales guidance and recommendations based on your synchronized WooCommerce catalog.
* **Answer order-status questions:** retrieve current WooCommerce order details when order tracking is enabled, with configurable customer verification and data-sharing controls.
* **Keep human support connected:** let operators take over with the conversation history available in the same panel.
* **Collect information for follow-up:** capture contact details through the chat widget and structured inquiries through smart forms.
* **Keep information under your control:** choose which website content, product data and order details are shared with ILACHAT.

=== AI Chatbot and Live Chat ===

* AI customer support agent delivering 24/7 automated assistance using your business content and instructions.
* Live chat for human operators to respond to website visitors from the ILACHAT panel.
* Train and customize your dedicated chatbot in ILACHAT using your website content, links, files and business instructions.
* Multilingual conversations, including Persian, with replies in your preferred business language.
* Customizable widget design, including colors and styles to match your branding.
* Lead capture: collect names, email addresses and phone numbers directly through the widget.
* Rich media messaging: send and receive images, files, voice notes and emojis through the widget.
* Interaction analytics to help you review conversations and improve support.

=== WordPress Content Synchronization ===

* Automatically synchronize selected posts, pages, custom post types and taxonomies with the ILACHAT knowledge base in the background.
* Choose which content types and fields are shared.
* Run bulk synchronization, overwrite previously synchronized items or delete synchronized data from ILACHAT by content type, while keeping your original site content.
* Manage background operations with progress tracking, operation history, and controls to pause, resume or cancel.
* Use WP-CLI commands for synchronization and operation management.

=== WooCommerce Integration ===

* **Product recommendations:** automatically synchronize WooCommerce products, variations and product categories with ILACHAT for sales guidance and relevant product recommendations. Control out-of-stock product synchronization and product priority.
* **Current order details:** enable order tracking so the chatbot can retrieve WooCommerce order data when a customer asks. Configure verification using email, phone, or both, and control which information is shared.
* **Shipment tracking:** provide postal or courier tracking codes and help customers track their shipments using the shipping information available for their orders.
* **Shipping plugin compatibility:** works with Amadast, Postex, COD24, Tapin, Torob, DigiExpress (Buy with Digikala), and SnappBox for shipment tracking information.
* **Order-specific guidance:** add special chatbot notes to individual orders to help answer order-tracking questions.
* **Order-sharing controls:** describe order statuses for clearer replies and select which billing, shipping and purchase details can be shared.
* Compatible with WooCommerce High-Performance Order Storage (HPOS).

Product and content updates are synchronized in the background. Order tracking retrieves current order data from your store when requested; shipment tracking depends on the installed shipping integration and the tracking information available in WooCommerce.

=== Team Inbox, Messaging Channels and Smart Forms ===

* Bring conversations from your website widget, Telegram, Bale, Goftino and API integrations together in one ILACHAT panel.
* Combine AI answers with human support. Operators can take over with the conversation history and return a conversation to the chatbot when appropriate.
* Manage team conversations with multiple operators, saved replies and conversation folders.
* Build smart forms in ILACHAT to collect structured information during conversations, with webhooks for advanced integrations.
* Connect chatbots to your own applications and other services through the API.

Messaging channels, smart forms and API integrations are configured in ILACHAT. Custom workflows may require technical implementation.

=== Widget Display and Elementor ===

* Automatically add the chat widget to your website without coding.
* Choose Default, Fast Load or Optimized widget loading.
* Control widget visibility based on website URL paths and optionally hide it from visitors who are not logged in.
* Embed the chat widget or an inline conversation using the included Elementor widgets.

=== Getting Started and Support ===

Connect your ILACHAT account, choose the content you want to synchronize, configure your chatbot, and enable the widget. Enable WooCommerce product synchronization and order tracking if your store needs them.

Need help with setup, settings or troubleshooting? Ask the built-in AI support assistant on the plugin's settings page for guidance.

[Create your ILACHAT account](https://ila.chat) | [View plans and usage limits](https://ila.chat/pricing/)

For setup instructions and advanced integrations, see the [technical documentation](https://ila.chat/docs) and the [WordPress customization and integration reference](https://ila.chat/docs/wordpress).

Need custom integrations or help adapting ILACHAT to your business? [Contact the ILACHAT team](https://ila.chat/contact/) for guidance and implementation support.

== External services ==

This plugin relies on the ILACHAT cloud service (main site `https://ila.chat` and API at `https://app.ila.chat`) to operate the chatbot, live chat, and data syncing. Service terms: [https://ila.chat/terms-of-use/](https://ila.chat/terms-of-use/). Privacy policy: [https://ila.chat/privacy-policy/](https://ila.chat/privacy-policy/).

All website content synchronization is optional, including posts, pages, custom post types, taxonomies, and WooCommerce products. You control which content types and fields are shared with ILACHAT and can disable individual synchronization features or turn off synchronization entirely. Product synchronization, order tracking, and lead sharing can also be disabled independently. However, the chatbot and live chat require a connection to the ILACHAT cloud service, where messages submitted through the chat widget are processed.

* Account connection and widget: When you connect the plugin, your site URL and the ILACHAT token are sent to validate the account. The chat widget script is loaded from `https://widget.ila.chat`, and chat messages plus any files or text entered in the widget are sent to ILACHAT to generate replies.
* Settings help assistant: The settings guide uses the ILACHAT service. Data is shared according to your settings.
* Content sync (optional): Only enabled content types and selected fields are sent. Depending on your choices, these can include the title, author display name, featured image URL, permalink, excerpt, categories/tags and cleaned body text of published posts, pages and custom post types. Taxonomy synchronization shares term names, descriptions, URLs and available images. Password-protected content is excluded. Deleting synchronized content queues its removal from your ILACHAT knowledge base.
* WooCommerce products (optional): If enabled, product data (name, short/long description, category names, attributes, price with currency, availability, image URLs, variations, and priority) is sent to ILACHAT to power product recommendations. Out-of-stock items are only synced if you enable that option.
* WooCommerce order tracking (optional): If enabled, the plugin shares a secret link with ILACHAT so it can call back to your site for order details when a user asks. Returned data can include order totals/status, billing/shipping contact details, available shipment tracking codes from supported shipping integrations, items, customer-visible notes and any special notes you add, limited by the settings you choose (you can require phone/email checks).
* Lead collection (optional): If enabled, the widget pre-fills the logged-in user's name, email, and phone so they are sent to ILACHAT together with the conversation.
* Control and disconnection: You can disable all content synchronization, including posts, pages, custom post types, taxonomies and products, as well as order tracking and lead collection. You can also hide the widget entirely or disconnect the plugin. Disconnecting removes the stored token and stops account synchronization and the public website widget.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/ilachat` or install directly via the WordPress Plugins screen.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Connect your ILACHAT account in the ILACHAT settings page.
4. Choose which website content to synchronize, configure your chatbot in ILACHAT, and customize the chat widget.
5. If you use WooCommerce, enable the product synchronization and order-tracking features you need.

== Frequently Asked Questions ==

= Do I need WooCommerce to use ILACHAT? =
No. You can use the chatbot, live chat and content synchronization on WordPress websites without WooCommerce. Product synchronization and order tracking require WooCommerce.

= Do I need an ILACHAT account to use the plugin? =
Yes. You can create a free ILACHAT account at [https://ila.chat](https://ila.chat) and start using the chatbot and live chat immediately.

= Is ILACHAT free to use? =
The WordPress plugin is free to download and install. ILACHAT also offers a free service plan with limited usage for testing and getting started. Paid plans provide higher usage limits and additional capabilities. See pricing at [https://ila.chat/pricing/](https://ila.chat/pricing/).

= Does the plugin automatically sync WooCommerce products? =
Yes, when product synchronization is enabled. Product additions and updates are synchronized with ILACHAT in the background, according to your settings.

= Can customers check their WooCommerce order status in the chat? =
Yes, when order tracking is enabled. The chatbot can provide the current WooCommerce order status, share available postal or courier tracking codes, and help customers track their shipments using the shipping information recorded for their orders. Supported shipping plugins are listed in the WooCommerce Integration section. Responses follow your customer-verification and order-sharing settings. You can also add special notes to help answer order-tracking questions.

= Does ILACHAT synchronize posts, pages, and custom post types? =
Yes. The plugin automatically syncs selected WordPress posts, pages, custom post types and taxonomies with the ILACHAT knowledge base in the background. When selected content changes on your site, updates are synchronized in the background to help keep the chatbot's source information up to date.

= Does the widget collect user information? =
The widget can collect contact details such as name, email and phone number. Optional lead sharing can also pre-fill logged-in customer details, according to your settings.

= Can the chat widget appearance be customized? =
Yes. You can personalize colors, styles, and branding to match your website.

= Does ILACHAT support Persian and other languages? =
Yes. ILACHAT supports Persian and other languages. You can configure replies in your preferred business language.

= Is ILACHAT secure? =
ILACHAT is designed with security in mind. Its WordPress plugin uses HTTPS connections, WordPress permission checks, and configurable customer verification for WooCommerce order tracking. You can control which website content and order details are shared with ILACHAT and whether logged-in user information is provided for lead collection.

= Can conversations be handled by human operators too? =
Yes. Operators can take over conversations in the ILACHAT panel, view the conversation history and respond manually. They can return the conversation to the chatbot when appropriate.

= Does ILACHAT slow down my website? =
Content synchronization runs in controlled background batches. The chat widget loads external resources, so its performance impact depends on your hosting environment, caching configuration, and selected widget loading mode.

= Is ILACHAT limited to WordPress websites? =
No. The plugin connects WordPress and WooCommerce to the ILACHAT platform. You can also connect supported messaging channels or use the web service API, and manage conversations from the unified ILACHAT panel. These channels and advanced service features are configured in ILACHAT.

= Can I manage bulk synchronization without keeping the settings page open? =
Yes. Start and manage synchronization or remote deletion from the Advanced tab. Processing continues in the background, and you can return to check progress or use the WP-CLI commands.

= What data does ILACHAT share with its cloud service? =
ILACHAT processes chat messages through its cloud service. Depending on your settings, the plugin can also share selected website content, WooCommerce product information, order details, and logged-in user contact information. Content synchronization, order tracking, and lead sharing can be configured or disabled independently. See the External services section for details.

== Changelog ==

= 2.0.1 =
* Added an alternative connection method and improved connection callback handling.
* Added an optional reminder to leave a review.
* Fixed minor bugs and improved stability.

= 2.0.0 =
* Redesigned the admin settings pages.
* Added background synchronization with independent operations and progress controls.
* Added bulk resynchronization with an option to overwrite previously synchronized content.
* Added deletion of synchronized data without deleting original website content.
* Added operation history and controls to pause, resume or cancel processing.
* Improved synchronization buttons on content and category lists.
* Added page-based widget visibility rules and an option to hide the widget from guests.
* Added support for custom user mobile fields and improved lead collection.
* Added WP-CLI support for synchronization and operation management.
* Added a help assistant to the settings page.
* Improved settings storage and automatic migration while preserving existing data.
* Improved synchronization performance and service error messages.
* Improved WooCommerce order tracking and special order notes.
* Improved Elementor widgets and compatibility.
* Fixed synchronization issues involving protected content, product duplication and stock changes.
* Improved data protection, translations and overall stability.

= 1.4.0 =
* Added automatic synchronization after Quick Edit and Bulk Edit for posts and WooCommerce products.
* Added WooCommerce shipping tracking data to the order tracking API endpoint.
* Improved WooCommerce currency formatting for clearer order information.
* Improved the ILACHAT Elementor widget and updated the iframe widget for reliable loading across different environments.
* Improved post synchronization reliability and error notices.
* Changed the minimum required WordPress version from 6.2 to 6.3.

= 1.3.1 =
* Fixed minor bugs and improved stability.

= 1.3.0 =
* Added synchronization settings for selecting post types and configuring which fields are sent to ILACHAT.
* Added taxonomy synchronization support.
* Added a "Sync All Posts" action for each supported post type.
* Added an ILACHAT connection check to WordPress Site Health.
* Improved post content synchronization by sending content in Markdown format for better rendering.
* Improved ILACHAT connection performance and reliability.
* Fixed minor bugs and improved overall stability.

= 1.2.4 =
* Improved documentation for external service domains and data handling.
* Fixed minor issues and improved compatibility.

= 1.2.3 =
* Fixed minor bugs and improved stability.

= 1.2.2 =
* Added Elementor integration with new widgets and improved compatibility.
* Added options for optimizing JavaScript loading.
* Added a manual product priority setting for synchronization.

= 1.2.1 =
* Fixed minor bugs and improved performance.

= 1.2.0 =
* Added synchronization support for posts, pages, and custom post types.
* Added an option to show or hide the ILACHAT widget on the site.
* Fixed a conflict between ILACHAT special notes and WooCommerce order notes.
* Improved performance and overall stability.

= 1.1.0 =
* Added WooCommerce integration with automatic product synchronization.
* Added real-time WooCommerce order data access.
* Added customizable user authentication.
* Added support for order-specific chatbot notes.
* Added optional synchronization of lead data, including name, email, and phone number.
* Improved real-time user data handling and chatbot accuracy.

= 1.0.3 =
* Improved widget script placement.
* Improved compatibility with caching plugins.
* Fixed minor bugs.

== Upgrade Notice ==

= 2.0.0 =
Version 2.0 redesigns settings and moves synchronization to background operations. Existing settings are migrated automatically. After updating, review widget visibility, content synchronization and order-sharing settings.

== License ==

This plugin is licensed under the GNU General Public License v3.  
For more details, visit [https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html).
