=== ExertPro FAQ AI for WooCommerce ===
Contributors: exertpro, suvronur, azizul96  
Author URI: https://exertpro.com/
Tags: faq, ai, schema, product-faq, woocommerce-faq
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI FAQ Generator & FAQ Schema for WooCommerce Products.

== Description ==

ExertPro FAQ AI for WooCommerce automatically generates contextual, SEO-friendly FAQ sections for your WooCommerce product pages using leading AI providers. Each FAQ set is output with valid FAQPage JSON-LD schema markup to help your products appear in Google rich results.

**Supported AI Providers:**
* OpenAI — GPT-4o, GPT-4o Mini
* Google Gemini — Gemini 1.5 Pro, Gemini 1.5 Flash
* Anthropic Claude — Claude 3.5 Sonnet, Claude 3 Haiku
* xAI Grok — Grok 3, Grok 3 Mini
* Moonshot Kimi — moonshot-v1-8k, moonshot-v1-32k

**Key Features:**
* One-click AI FAQ generation per product
* Additive mode: re-generate appends new FAQs without replacing existing ones
* 5 display hook positions on single product pages
* 3 accordion styles (Modern, Minimal, Boxed)
* Full colour, font size, and style customisation
* FAQPage JSON-LD schema auto-output
* Manual override & inline FAQ editor in product meta box
* Secure API key storage with show/hide toggle
* Rate limiting on AJAX generation requests
* Auto-generate on product save (when content changes)

== External Services ==

This plugin connects to third-party AI APIs. By using this plugin you agree to the terms and privacy policies of the AI provider(s) you select.

**Data transmitted:** Product title and description only.
**Data NOT transmitted:** Customer data, order data, payment data, or any personally identifiable information.

= OpenAI =
* Endpoint: https://api.openai.com/v1/chat/completions
* Privacy Policy: https://openai.com/policies/privacy-policy
* Terms of Use: https://openai.com/policies/terms-of-use

= Google Gemini =
* Endpoint: https://generativelanguage.googleapis.com/
* Privacy Policy: https://policies.google.com/privacy
* Terms of Use: https://policies.google.com/terms

= Anthropic Claude =
* Endpoint: https://api.anthropic.com/v1/messages
* Privacy Policy: https://www.anthropic.com/privacy
* Terms of Use: https://www.anthropic.com/legal/terms

= xAI Grok =
* Endpoint: https://api.x.ai/v1/chat/completions
* Privacy Policy: https://x.ai/privacy-policy
* Terms of Use: https://x.ai/terms-of-service

= Moonshot Kimi =
* Endpoint: https://api.moonshot.cn/v1/chat/completions
* Privacy Policy: https://www.moonshot.cn/privacy
* Terms of Use: https://www.moonshot.cn/terms

== Installation ==

1. Upload the `exertpro-faq-ai` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **WooCommerce → ExertPro FAQ AI for WooCommerce** to configure.
4. Enter your API key for the AI provider you want to use.
5. Select your preferred model and click **Save Settings**.
6. Open any product and click **Generate FAQs with AI**.

== Frequently Asked Questions ==

= Do I need an API key? =
Yes. You must supply your own API key from at least one supported AI provider.

= Is any customer data sent to AI providers? =
No. Only the product title and description are transmitted.

= Can I edit the generated FAQs? =
Yes. Use the FAQ List editor inside the product meta box to edit, add, or remove FAQs manually.

= What is Additive Mode? =
When enabled, re-generating FAQs appends new items to existing ones instead of replacing them. Duplicate questions are automatically skipped.

= Does this work with WooCommerce HPOS? =
Yes. The plugin declares compatibility with WooCommerce High-Performance Order Storage.

= Can I change the FAQ display position? =
Yes. The Hook Position tab lets you choose from 5 positions on the product page with a visual mockup preview.

== Screenshots ==

1. Settings page — AI Configuration tab
2. Settings page — Hook Position tab with visual mockup
3. Settings page — Style Customization tab
4. Product meta box with generated FAQs
5. Frontend accordion (Modern style)

== WordPress.org SVN Assets ==

For contributors submitting to the WordPress.org plugin repository:
Plugin branding assets (banners, icons, screenshots) must be committed
to the SVN `/assets/` directory at the repository root — NOT inside the
plugin zip. See `wp-org-assets/README-SVN.txt` for details.

== Changelog ==

= 1.0.0 =
* Initial release.
* Support for OpenAI, Google Gemini, Anthropic Claude, xAI Grok, Moonshot Kimi.
* Additive FAQ mode, 3 accordion styles, FAQPage JSON-LD schema.
* Visual hook position selector with product page mockup.
* Full colour and font size customisation.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
