=== Corps AI Chatbot Lite ===
Contributors: cr1m0
Tags: woocommerce, chatbot, ai, product recommendations, customer support
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI chatbot for WooCommerce using your own Anthropic API key (BYOK). Helps customers find products and add items to cart directly from the chat widget.

== Description ==

AI Chatbot for WooCommerce Lite adds an intelligent chat assistant to your WooCommerce store. It knows your product catalog, answers customer questions, recommends products with real prices, and lets customers add items to cart directly from the conversation.

**How it works:**

1. Get your Anthropic API key at [console.anthropic.com](https://console.anthropic.com)
2. Enter the key in plugin settings
3. The chatbot is immediately active on your store

**Features:**

* AI-powered product recommendations based on customer questions
* Add to cart directly from chat
* Full product catalog awareness (names, prices, stock, variations)
* Customizable widget (colors, texts, welcome message)
* Custom system prompt support
* Product cache for fast responses
* Works with any WooCommerce theme

**Prefer not to manage your own API key?**

This Lite version is BYOK — you need your own Anthropic API key and pay Anthropic directly for token usage. If you'd rather not deal with that, the [managed service at license.corps.sk](https://license.corps.sk) handles the API key for you. Available plans:

* **Free** — 5,000 tokens/month, no Anthropic account needed, basic widget customization
* **Starter / Pro / Business** — higher token limits, add-to-cart, custom prompts, conversation logs, email reports, token usage dashboard

== External Services ==

This plugin connects to the **Anthropic API** to generate AI responses.

* Service: Anthropic (claude.ai)
* Purpose: Generate AI responses to customer questions
* Data sent: Chat messages and product catalog information (no personal customer data)
* Terms of Service: https://www.anthropic.com/legal/consumer-terms
* Privacy Policy: https://www.anthropic.com/legal/privacy

No data is sent to any service without the user providing their own Anthropic API key.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/corps-ai-chatbot-lite/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Settings → AI Chatbot Lite**
4. Enter your Anthropic API key
5. Customize the chatbot and save

== Frequently Asked Questions ==

= Do I need an Anthropic account? =

Yes — this Lite version is BYOK (Bring Your Own Key). You need an API key from [console.anthropic.com](https://console.anthropic.com) and pay Anthropic directly for token usage (typically very low for a WooCommerce chatbot).

If you prefer not to manage your own key, the [managed service at license.corps.sk](https://license.corps.sk) offers a Free plan (5,000 tokens/month) and paid tiers — no Anthropic account required.

= Which Anthropic model does the plugin use? =

Claude Haiku 4.5 — a fast and cost-efficient model optimized for customer chat. The model is fixed in this Lite version.

= Is WooCommerce required? =

Yes. This plugin requires WooCommerce to be installed and active.

= How do I monitor my API usage and costs? =

Go to [console.anthropic.com → Usage](https://console.anthropic.com/settings/usage) to see your token consumption and costs.

= What data is sent to Anthropic? =

Only the chat message content and product catalog information. No personal customer data (names, emails, addresses) is sent.

== Screenshots ==

1. Chat widget on a WooCommerce store
2. Product recommendations with prices and add-to-cart buttons
3. Admin settings — API key and chatbot customization

== Changelog ==

= 1.1.1 =
* Docs: Corrected FAQ — Lite version uses Claude Haiku 4.5 only (no model switching UI)
* Docs: Clarified BYOK requirement and noted the managed alternative at license.corps.sk

= 1.1.0 =
* Fully translatable — all strings wrapped in WordPress i18n functions
* English defaults for all widget texts
* Slovak (sk_SK) translation included
* System prompt translated to English (chatbot responds in customer's language automatically)
* Added languages/ directory with .pot template for community translations

= 1.0.9 =
* Fix: Reverted permission_callback to __return_true (correct WP pattern for public endpoint)

= 1.0.8 =
* Fix: Removed plugins_api filter (WP.org handles updates)
* Fix: Escape CSS color variables via sanitize_hex_color()

= 1.0.7 =
* Fix: Nonce verification for chat REST endpoint (X-WP-Nonce header)
* Fix: sanitize_callback for boolean settings uses rest_sanitize_boolean

= 1.0.6 =
* Fix: Text Domain zosúladený so slug pluginu
* Fix: skrátenie short description na 150 znakov
* Fix: Stable tag zosúladený s verziou pluginu

= 1.0.5 =
* Model uzamknutý na Claude Haiku (odstránený výber modelu z admin UI)

= 1.0.4 =
* Max počet produktov v kontexte uzamknutý na 8 (odstránený z admin UI)
* Max tokenov v odpovedi znížený na 512

= 1.0.3 =
* Pridaný "Zobraziť podrobnosti" popup v zozname pluginov

= 1.0.2 =
* Fix: fatal error pri odoslaní správy (referencie na licenčný systém)
* Fix: oprava logovania v AI provideri a product cache

= 1.0.0 =
* Prvé vydanie

== Upgrade Notice ==

= 1.0.6 =
Odporúčaná aktualizácia — opravy pre WP.org kompatibilitu.
