=== Context AI - Product Description Generator ===
Contributors: fortuneteam
Tags: woocommerce, ai, openai, bulk
Requires at least: 6.5
Tested up to: 6.9
Stable tag: 1.0.1
Requires PHP: 8.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Generate SEO-optimized product descriptions using OpenAI (GPT-4o). Zero hallucinations. Background processing via Action Scheduler.

== Description ==

Stop writing descriptions manually. **Context AI** connects your store to OpenAI to generate high-quality, factual, and SEO-optimized content in seconds.

Unlike generic AI tools, this plugin is context-aware. It reads your product attributes (Color, Size, Material), categories, and tags to create descriptions that are strictly based on facts—**Zero Hallucinations**.

### 🔥 Why Context AI?

*   **No Timeouts:** Built on **Action Scheduler**. Even on shared hosting, it processes requests in the background without crashing your server.
*   **Context-Aware:** The AI knows your product data. It doesn't make up facts.
*   **Developer Friendly:** Clean code, strict typing (PHP 8.1+).

### 🚀 Free Version Features

*   **Single Product Generation:** Generate descriptions directly inside the product editor.
*   **SEO Optimization:** Automatically generates a main description and a short excerpt.
*   **Formatting:** Returns clean HTML (lists, paragraphs) ready for your theme.
*   **Smart Context:** Reads product title, attributes, and categories.

### ⚡ Upgrade to Pro (Agency License)

Need to process 10,000 products? Get the [Pro Version](https://www.woocontext.com) to unlock:

*   **Bulk Generation:** Process your entire catalog in one click.
*   **Background Queue:** Fire and forget. The plugin works while you sleep.
*   **Tone of Voice:** Choose between Professional, Witty, Luxury, and more.
*   **Custom Fields (ACF):** Include custom meta data in the AI context.
*   **Priority Support:** Direct access to senior developers.

[Get the Pro Version](https://www.woocontext.com)

== External services ==

This plugin connects to the OpenAI API to generate AI product descriptions.
Data sent: product title, product type, categories/tags, selected attributes, optional existing description (when enabled), optional custom fields (when available), and generation settings (tone, language, length, short description flag).
When sent: only when a user triggers description generation for a product or runs bulk generation.
OpenAI Terms of Service: https://openai.com/terms
OpenAI Privacy Policy: https://openai.com/privacy

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/context-ai-product-description-generator` directory.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to **Settings > Context AI** and enter your OpenAI API Key.
4. Open any product and click "Generate Description".

== Frequently Asked Questions ==

= Do I need an OpenAI API Key? =
Yes, you need your own API key from OpenAI. This ensures you pay the lowest possible price directly to them.

= Does it work with thousands of products? =
The Lite version allows generation one-by-one. The [Pro version](https://www.woocontext.com) includes a Bulk Processor powered by Action Scheduler designed for catalogs of 10,000+ items.

= What PHP version do I need? =
We use modern PHP features for stability and speed. You need PHP 8.1 or higher.

== Screenshots ==

1. Bulk generation from the Products list via Bulk Actions (“Generate AI Descriptions”).
2. AI Generator panel on the product edit screen (Product data tab / panel).
3. Plugin settings page (OpenAI API key, language, and generation options).

== Changelog ==

= 1.0.1 =
* Initial release.
* Added single product generation via OpenAI.
* Implemented Action Scheduler integration foundation.
