=== Ollama AI Content Generator ===
Contributors: ollama-content-api
Tags: ollama, ai, faq, woocommerce, products, seo, schema, aeo, geo, shortcode, bulk, logging
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later

Generate AI-powered FAQs for WooCommerce products with AEO (Answer Engine Optimization) and GEO (Generative Engine Optimization) via Ollama. Bulk generate for 100K+ products with AJAX processing and full logging.

== Description ==

Connect your WooCommerce store to the Ollama Content API to automatically generate high-quality FAQs for your products. Handles catalogs of any size with AJAX batch processing that never times out.

= Features =

* **Bulk generation for 100K+ products** — processes in small AJAX batches, no timeout
* **Full generation logs** — dedicated DB table tracking every product, status, and errors
* **Real-time progress** — live progress bar, success/fail counts, pause and cancel
* **Per-product generation** — generate FAQs for individual products from the edit screen
* **JSON-LD FAQ schema** — rich search result markup for AEO (Answer Engine Optimization)
* **GEO-optimized output** — well-structured content for AI search engines
* **Beautiful accordion display** — dark mode support, works with any theme
* **Shortcode** — `[product_faqs]` or `[product_faqs product_id="123"]`
* **Auto-display** — automatically shows FAQs on product pages (toggle in settings)
* **Manual editing** — add, edit, or remove individual Q&A pairs

== Installation ==

1. Upload the `wp-ollama-content` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins screen
3. Go to "Ollama AI" in the WordPress admin
4. Enter your API URL and API Key on the Settings tab
5. Click "Test Connection" to verify

== Usage ==

=== Per-Product Generation ===
1. Edit a WooCommerce product
2. Scroll to the "AI-Generated FAQs (Ollama)" meta box
3. Click "Generate FAQs with AI"
4. Edit or remove questions as needed
5. Update the product to save

=== Bulk Generation (100K+ Products) ===
1. Go to "Ollama AI > Bulk Generation" in the admin
2. Select a product category or "All Products"
3. Set FAQs per product and batch size
4. Click "Start Generation"
5. Monitor real-time progress — pause, cancel, or let it complete
6. Review logs for any failed products

=== Shortcode ===
`[product_faqs]` in any product description, or `[product_faqs product_id="123"]`.

=== Auto-Display ===
Enable "Auto-display FAQs on product pages" in settings to show FAQs below the product description.

== Frequently Asked Questions ==

= Do I need an Ollama server? =
Yes. You need access to an Ollama Content API server. Set the URL in the plugin settings.

= Can it handle 100K products? =
Yes. The bulk generator processes products in small AJAX batches (configurable, default 5 per call). It never times out and provides real-time progress with pause/cancel.

= Are generation logs stored? =
Yes. Every product generation is logged in a dedicated database table with status, FAQ count, and timestamps. View logs in the Bulk Generation page.

= What models are supported? =
Any model available on your Ollama server (default: gemma4).

= Does it output schema markup? =
Yes. JSON-LD FAQPage schema is injected into the product page head for rich search results (AEO).
