=== Avosist Chatbot ===
Contributors: avosist
Tags: chatbot, ai, artificial intelligence, customer support, live chat
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add the Avosist AI Chatbot to your website. Provide 24/7 automated customer support.

== Description ==

**Avosist Chatbot** is the official WordPress plugin for the Avosist AI Platform. It integrates a 24/7 AI-powered chatbot widget on your WordPress site using your business knowledge base.

= Features =

* **Avosist AI Engine** — Natural and smart conversations powered by advanced AI.
* **AI Capabilities** — Book appointments, create orders, open support tickets, and transfer to human agents.
* **Knowledge Base** — Trained on your PDFs, Excel sheets, Word files, and website URLs.
* **Customizable Design** — Choose from 18 launcher icons, light/dark modes, and custom colors.
* **Quick Replies** — Suggest quick reply chips to guide visitors.
* **Chat History** — Seamless chat continuation even after page reloads.
* **2-Minute Setup** — Connect with your Avosist account and go live instantly.
* **Secure** — Shadow DOM encapsulation, HTTPS support.
* **Mobile Friendly** — Looks perfect on all mobile devices.

== External services ==

This plugin relies on the third-party/external Avosist AI platform (https://www.avosist.ai) to function.

* **Widget Script:** The plugin dynamically enqueues the chatbot widget script (`widget.js`) on the frontend from the Avosist servers.
* **Token Verification:** The plugin sends a secure HTTP request containing only the widget token to the Avosist API (`/api/chatbot/verify-token`) to verify the account connection during setup.
* Terms of Service: https://www.avosist.ai/en/terms-of-service
* Privacy Policy: https://www.avosist.ai/en/privacy-policy

== Installation ==

1. Go to **Plugins > Add New** in your WordPress admin panel.
2. Search for "Avosist Chatbot".
3. Click **Install Now** and then **Activate**.
4. Go to **Settings > Avosist Chatbot**.
5. Click **Connect with Avosist** to authenticate, or enter your Widget Token manually.

== Frequently Asked Questions ==

= Is an Avosist account free? =

Avosist offers a free trial. For detailed pricing information, please visit https://www.avosist.ai/en/pricing.

= How do I train my chatbot? =

You can upload PDF, Excel, and Word files, or crawl your website via the Avosist Dashboard > Knowledge Base section.

= Can I hide the widget on specific pages? =

By default, the widget is loaded sitewide. You can use the `[avosist_chatbot]` shortcode on specific pages if you want to load it conditionally.

= Where do I find my Widget Token? =

Go to Avosist Dashboard > Web Chatbot > Select your widget > Click "Get Code". The token will be copied to your clipboard.

= How does the transfer to live support work? =

Enable the "Live Support Transfer" option in the Avosist Dashboard > Widget Settings > AI Capabilities. The AI will automatically route the customer to a representative when necessary.

== Screenshots ==

1. Admin settings page — Connecting with Avosist
2. Chatbot widget appearance on a WordPress site
3. Creating a widget from the Avosist Dashboard
4. Launcher icon customization options

== Changelog ==

= 1.4.1 =
* Fixed plugin header description to be in English.
* Finalized minor documentation translation adjustments.

= 1.4.0 =
* Fixed duplicate header verification issue by removing redundant Plugin URI.
* Added missing languages path folder inside plugin directory to satisfy textdomain checks.
* Disclosed third-party service dependency and updated links to www.avosist.ai.
* Added manage_options capability authorization checks to admin OAuth callback route for improved security.

= 1.3.9 =
* Added Cache lock and frontend check to prevent sending multiple duplicate email transcripts for the same session.

= 1.3.8 =
* Saved visitor name and email to database upon initial info submission.
* Synchronized local storage visitor details with API payload.
* Fixed SMTP From header conflict for transcript and human handoff notification emails.

= 1.3.7 =
* Injected FontAwesome styles dynamically to the light DOM document head to resolve rendering issues in Shadow DOM on certain browsers.

= 1.3.6 =
* Moved FontAwesome stylesheet tag inside HTML template block.

= 1.3.5 =
* Integrated FontAwesome CSS within Shadow DOM block to fix launcher icons mismatch.

= 1.3.4 =
* Restructured utensils launcher icon to fix drawing paths issues.

= 1.3.3 =
* Synchronized FontAwesome classes with custom SVG drawing wrappers.

= 1.3.2 =
* Converted launcher bubble to a tooltip and added support for notification sound.

= 1.3.1 =
* Disabled click behavior of quick chips while visitor form is active.

= 1.3.0 =
* Resolved visual flash of unstyled content (FOUC) and added fade-in transition behavior.

= 1.2.9 =
* Fixed style repaint lag in widget.js.

= 1.2.8 =
* Resized branding footer logo to 16px.

= 1.2.7 =
* Added avosist.ai link in footer branding.

= 1.2.6 =
* Added support for custom support agent avatars.

= 1.2.5 =
* Implemented chat transcript form and email delivery flow.

= 1.2.4 =
* Strengthened error catching when pulling chat history.

= 1.2.3 =
* Fixed history list disappearance on view change.

= 1.2.2 =
* Resolved widget JS syntax error (missing closing parenthesis).

= 1.2.1 =
* Fixed admin conversation stats calculation.

= 1.2.0 =
* Updated widget.js version to v2.1.0.

= 1.1.0 =
* Integrated widget.js version v2.0.0 with custom dark/light modes, quick replies, and human handoff notifications.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.4.1 =
Updated plugin header description to English and finalized minor documentation translations.

= 1.4.0 =
Disclosed third-party dependencies, secured OAuth callback handler, and standardized headers to comply with WordPress.org guidelines.

= 1.3.9 =
Security update preventing transcript duplicate email delivery.

= 1.3.8 =
Synchronized visitor info with backend database and resolved SMTP From header delivery issues.
