=== AskCybex AI Chat Widget v2 ===
Contributors: askcybexai
Tags: ai, chatbot, rag, customer support, live chat, openai, gpt, streaming
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI-powered chat widget with real-time streaming, lead capture, feedback, visual customization, and auto-updates.

== Description ==

AskCybex AI Chat Widget v2 is the next generation of the AskCybex.ai WordPress integration. Train a chatbot on your own content (PDFs, docs, URLs) and embed it on any page with a fully customizable floating chat widget.

**What's New in v2:**

* **Real-time streaming** — responses appear word-by-word for an instant feel
* **Visual customization** — set primary color, bot name, logo, and greeting from WP Admin or shortcode
* **CSS scoping** — all styles are namespaced under `.askcybex-widget` to avoid theme conflicts
* **Lead capture** — optional email gate before chat starts (great for follow-up)
* **Feedback buttons** — visitors can rate each response with 👍/👎
* **Multi-language** — auto-detects visitor browser language and responds accordingly
* **Auto-updates** — plugin updates itself when new versions are released
* **Floating widget** — configurable to bottom-left or bottom-right

**Requirements:**
* Free account at [askcybex.ai](https://askcybex.ai)
* At least one trained deployment with an API key

**Shortcode:**
`[askcybex_chat api_key="YOUR_KEY"]`

All options available as shortcode attributes — override global settings per page.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/askcybexai-chat-v2/`
2. Activate the plugin in WordPress Admin → Plugins
3. Go to **Settings → AskCybex Chat v2** and enter your API key
4. Add `[askcybex_chat]` to any page or post

== Frequently Asked Questions ==

= Where do I get an API key? =
Sign up at askcybex.ai, create a deployment, train it on your content, then copy the API key from the deployment settings.

= What is streaming? =
When enabled, the AI response appears word by word in real time — like ChatGPT. Requires no extra setup; it uses the `/api/stream/` endpoint automatically.

= Can I use multiple widgets on the same site? =
Yes — use different API keys per deployment, each with their own shortcode.

= Does the v2 plugin conflict with v1? =
No. They use different shortcodes (`[askcybex_chat]` vs `[ChatGenerate]`) and different CSS namespaces.

= How does auto-update work? =
The plugin checks the AskCybex server for new versions and shows the update in WP Admin → Updates, just like any other plugin.

== Screenshots ==

1. Chat widget open with custom color and bot avatar
2. Lead capture email gate
3. Settings page in WP Admin
4. Shortcode with all options

== Changelog ==

= 2.0.0 =
* Initial v2 release
* Real-time SSE streaming
* Visual customization (color, logo, greeting, bot name, position)
* CSS scoped to .askcybex-widget — no theme conflicts
* Lead capture (email gate before chat)
* Feedback buttons (👍/👎 per response)
* Multi-language auto-detection
* Auto-update mechanism via WP update API
* Floating widget with open/close toggle
* Shortcode supports per-page attribute overrides

= 1.1.0 (v1) =
* WP.org headers and readme.txt
* Basic chat widget

== Upgrade Notice ==

= 2.0.0 =
Major new release with streaming, visual customization, and lead capture. Safe to install alongside v1.
