=== AskCybex AI Chat Widget ===
Contributors: askcybex
Tags: ai, chatbot, rag, customer support, wordpress ai, faq bot, openai, gemini
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an AI-powered chatbot to your WordPress site — trained on YOUR content. No coding needed.

== Description ==

**AskCybex AI Chat Widget** lets you embed a custom AI chatbot trained on your own documents (PDF, DOCX, TXT, CSV) or any URL. Works with OpenAI, Google Gemini, and Anthropic Claude.

**Perfect for:**
* Small business websites answering FAQs
* WooCommerce stores guiding customers through products
* Service businesses reducing support emails
* Membership sites delivering instant answers

= Features =
* Train on PDF, DOCX, TXT, CSV documents — or paste a URL
* GPT-4o, Gemini 2.5 Pro, Claude 3.5 — your choice of AI model
* Bring Your Own API Key (BYOK) — no markup on AI costs
* Token-based billing — pay only for what you use
* Streaming responses with typewriter effect
* Gutenberg block + legacy shortcode support
* WooCommerce auto-training (sync product catalog automatically)
* WordPress Admin dashboard token balance widget
* Full conversation history per session
* IP restriction per deployment
* 7-day free trial on all plans

= Plans =
* **Free**: 50,000 tokens on signup — no payment required
* **Starter**: $9/month — 500,000 tokens, 1 deployment
* **Growth**: $29/month — 2,000,000 tokens, 5 deployments
* **Pro**: $79/month — 10,000,000 tokens, unlimited deployments

= Getting Started =
1. Install and activate this plugin
2. Go to **Settings → AskCybex AI** and enter your API base URL
3. Sign up at [askcybex.ai](https://askcybex.ai) and create a deployment
4. Upload your documents and click **Train**
5. Copy your **API Key** and **Deployment ID** from the dashboard
6. Insert the **AskCybex Chat Widget** Gutenberg block — or use the shortcode

= Shortcode Usage =
`[askcybex_chat deployment_id="YOUR_ID" api_key="YOUR_KEY"]`

Optional attributes:
`[askcybex_chat deployment_id="YOUR_ID" api_key="YOUR_KEY" title="Ask Us Anything" height="500"]`

= Gutenberg Block =
Search for **"AskCybex Chat Widget"** in the block inserter. Configure Deployment ID, API Key, title, color, and height in the block sidebar.

= WooCommerce Integration =
When WooCommerce is active, the plugin automatically syncs your product catalog to your chatbot whenever a product is saved (debounced to once per hour).

== Installation ==

1. Upload the `askcybexai-gutenberg-block` folder to `/wp-content/plugins/`
2. Activate through **Plugins → Installed Plugins**
3. Go to **Settings → AskCybex AI** to configure your API base URL
4. Get your API Key from your [AskCybex dashboard](https://askcybex.ai)

== Frequently Asked Questions ==

= Do I need an OpenAI API key? =
No. AskCybex handles AI keys on the server side. You can optionally supply your own key for BYOK billing, or use the platform's shared keys on a token plan.

= What file types are supported? =
PDF, DOCX, TXT, and CSV. You can also train from any public URL.

= Is there a free plan? =
Yes — sign up at askcybex.ai and you get 50,000 free tokens with no payment required.

= Can I use this with WooCommerce? =
Yes. When WooCommerce is active, the plugin automatically trains your chatbot on your product catalog whenever products are updated.

= Does it support multiple languages? =
The AI models support multi-language responses. The bot detects the user's question language and responds accordingly.

= Is my data secure? =
Your documents are processed securely. Pinecone vector storage is used for embeddings. No raw documents are stored long-term — only vector representations.

== Screenshots ==

1. Chat widget embedded on a WordPress page
2. AskCybex dashboard — create and train a deployment
3. Gutenberg block configuration panel
4. Admin settings page
5. WP Admin dashboard token balance widget

== Changelog ==

= 1.1.0 =
* Added streaming responses with typewriter effect
* Added Train-from-URL feature (paste any public URL to train)
* WooCommerce product auto-sync integration
* Admin dashboard token balance widget
* SSE (Server-Sent Events) support for real-time streaming

= 1.0.0 =
* Initial release
* Gutenberg block and shortcode support
* PDF, DOCX, TXT, CSV document training
* OpenAI, Gemini, Claude provider support

== Upgrade Notice ==

= 1.1.0 =
Upgrade for streaming responses and Train-from-URL. No breaking changes.
