=== AskCybex AI Chat v3 ===
Contributors: askcybex
Tags: ai, chatbot, chat, customer support, live chat, gpt, rag, elementor, divi
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 3.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Context-aware AI chat for WordPress. Unlimited chatbots, each fully designed in the builder, answering from your own documents.

== Description ==

AskCybex Chat v3 puts an AI assistant on your site that answers from **your** documents — and, unlike most chat plugins, actually understands follow-up questions.

Ask "What is your refund policy?", then "Does that include sale items?" and it knows what "that" means. v3 resolves each follow-up against the conversation *before* searching your documents, so the second question works as well as the first.

**Design every part of it.** Unlimited chatbots, each its own profile with its own API key, edited in a live-preview builder: header, logo, bubbles, input, send button, colours, sizes, borders and radii. Start from a preset, then fine-tune.

**Your API key never reaches the browser.** Every request goes through your own site, so the key stays in your database instead of your page source.

= Features =

* Unlimited chatbots, each with its own design and API key
* Live-preview design builder with ready-made presets
* Context-aware follow-up questions
* Answers appear with a natural typing effect
* Email capture before a chat starts
* 👍 👎 feedback on every answer, reported back in your dashboard
* Suggested questions from your trained content
* Optional source citations
* Conversation memory that survives a page reload
* Offline mode with a contact-page fallback
* Shortcode, Gutenberg block, Elementor, Divi and Beaver Builder
* Site-wide placement without editing a template
* One-click import from AskCybex Chat v1 and v2

= Requires an AskCybex account =

This plugin connects to AskCybex, where you upload documents and train your chatbot. Create a free account at https://askcybex.com — a deployment API key is all the plugin needs.

== Installation ==

1. Upload the plugin and activate it.
2. Go to **AskCybex Chat → Add New**.
3. Paste a deployment API key and press **Test connection**.
4. Design the widget, then save.
5. Place it with `[askcybex_chat_v3 id="12"]`, the block, your page builder, or switch on site-wide placement in Settings.

== Frequently Asked Questions ==

= Do I need to remove v1 or v2? =
No. v3 runs alongside them. Import your settings, check the result, then swap your shortcodes over when you're ready.

= Where does the API key live? =
In your WordPress database. The browser talks to your site; your site talks to AskCybex. The key is never printed into the page.

= Why is the first reply a moment slower than v2? =
v3 resolves your follow-up into a standalone question before searching your documents, which is what makes multi-turn conversations work. You can turn it off per chatbot under Behaviour.

= Can I use a different colour per site section? =
Yes — create as many chatbots as you like and place a different one on each page.

== Changelog ==

= 3.0.1 =
* Fixed: the widget could fail to open at all — clicking the chat icon did nothing. The
  sanitiser's allow-list was declared below the code that used it, so replaying a stored
  conversation (or a greeting containing a line break) threw before the launcher's click
  handler was bound. The widget looked dead rather than broken.
* Hardened: the greeting and stored history are now painted after every handler is bound,
  and inside a guard, so a single bad message can never leave the widget unresponsive.

= 3.0.0 =
* First release: design builder, context-aware retrieval, server-side API proxy, page-builder integrations, and importers from v1 and v2.
