=== Word.Chat Pro ===
Contributors: wordchat
Tags: chatbot, ai, ai chatbot, content writer, customer support, ai writer
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 0.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pro AI chatbot and content writer for WordPress. Unlimited content sync, unlimited messages, AI Content Writer, and advanced analytics.

== Description ==

Word.Chat Pro is the premium version of the Word.Chat AI chatbot plugin. It adds an intelligent chatbot to your WordPress site that answers visitor questions using your own content — plus powerful tools to create and optimize content with AI.

**How It Works:**

1. Install and activate — your site is automatically registered
2. Enter your Pro license key to unlock unlimited features
3. Sync your posts and pages — no content limits
4. Visitors chat with an AI trained on your content
5. Use the AI Content Writer to generate new posts based on your writing style

= Everything in Free, Plus: =

* **Unlimited Content Sync** — Sync every post, page, and custom content item on your site
* **Unlimited Chat Messages** — No monthly message cap for your visitors
* **AI Content Writer** — Generate new blog posts based on your site's topics and writing style
* **Internal Link Suggestions** — AI analyzes your content and suggests internal links to improve SEO
* **AI Content Editing** — Get AI-powered rewrite suggestions for existing posts
* **License Management** — Activate, validate, and manage your Pro license from the admin dashboard
* **Automatic Updates** — Background updates with license verification — always stay on the latest version
* **Dedicated Content Sync Page** — Full-featured sync management with bulk select, status tracking, and resync detection
* **Priority Support** — Dedicated support channel for Pro customers

= AI Content Writer Features =

The AI Content Writer analyzes your existing content to understand your:

* **Topics and themes** — What you write about
* **Writing style** — Tone, sentence length, vocabulary
* **Common keywords** — Your most-used terms and phrases
* **Content categories** — How your content is organized

Then it generates new content that matches your voice, complete with:

* Title and title variations
* Full article content
* SEO meta description
* Internal link suggestions to your existing posts

= Feature Comparison: Free vs Pro =

**Content Sync:**

* Free: 10 posts + 5 pages (15 items total)
* Pro: Unlimited posts and pages

**Chat Messages:**

* Free: 50 messages per month
* Pro: Unlimited messages

**AI Content Writer:**

* Free: Not available
* Pro: Full access — generate, edit, and optimize content

**Internal Link Suggestions:**

* Free: Not available
* Pro: AI-powered link suggestions between your posts

**Content Editing:**

* Free: Not available
* Pro: AI-assisted content rewrites and improvements

**Chat Analytics:**

* Free: Basic metrics dashboard
* Pro: Full chat history, top URLs, visitor patterns, detailed analytics

**Plugin Updates:**

* Free: Manual updates via WordPress dashboard
* Pro: Automatic background updates with license verification

**Support:**

* Free: Community support
* Pro: Priority support

= Included in Both Plans =

Both the Free and Pro plugins include:

* AI chatbot widget (customizable colors, position, text)
* Automatic content re-sync when published posts are updated
* Background processing with retry on failure
* Server-side API proxy (credentials never exposed to visitors)
* Analytics dashboard
* Full internationalization support
* WordPress 5.5+ compatibility

= How the AI Works =

Word.Chat uses advanced AI to understand and answer questions about your content:

1. Your content is analyzed and indexed when you sync it
2. When a visitor asks a question, the most relevant parts of your content are found
3. The AI generates a natural language answer using only your content as context
4. Source URLs are provided so visitors can navigate to the full content

The chatbot only answers based on YOUR content — it doesn't make things up or go off-topic.

= Privacy & Data =

* Word.Chat only processes your **published** post and page content (title + body text)
* Each site's data is stored in an isolated namespace — no cross-site data access
* API credentials are stored securely in your WordPress database and never exposed to the browser
* Chat queries go through a server-side proxy (your WordPress site → Word.Chat backend)
* No visitor personal data is collected by the chat widget
* License validation happens server-side between your site and the Word.Chat backend

== Installation ==

= New Installation =

1. Download the Word.Chat Pro plugin ZIP file from your purchase email or account
2. Go to **Plugins → Add New → Upload Plugin** in your WordPress admin
3. Upload the ZIP file and click **Install Now**
4. Activate the plugin
5. Go to **Word.Chat Pro** in the admin menu
6. Enter your license key in the **License** tab
7. Sync your content from the **Content Sync** tab

= Upgrading from Free =

1. Install and activate Word.Chat Pro — the free plugin will be automatically deactivated
2. All your existing settings, synced content, and API credentials are preserved
3. Enter your Pro license key in the **License** tab to unlock unlimited features

= After Activation =

1. Visit **Word.Chat Pro** in your admin menu
2. Your site credentials are preserved (or auto-generated if new)
3. Go to the **License** tab and enter your Pro license key
4. Go to **Content Sync** to sync unlimited posts and pages
5. Try the **AI Content Writer** tab to generate your first AI-powered post
6. The chat widget appears on your frontend automatically

== Frequently Asked Questions ==

= Do I need any AI accounts or API keys? =

No. Word.Chat Pro handles all AI processing on the backend. You don't need any external accounts or API keys.

= How do I get a license key? =

Purchase a Pro plan at [word.chat/pricing](https://www.word.chat/pricing). Your license key will be emailed to you and also available in your account dashboard.

= Can I use my license on multiple sites? =

Each license key is valid for one WordPress site. To use Word.Chat Pro on multiple sites, you'll need a separate license for each site.

= What happens if my license expires? =

Your chatbot will continue to work with Free plan limits (10 posts + 5 pages, 50 messages/month). You can renew your license at any time to restore unlimited access.

= Can I switch back to the Free plugin? =

Yes. Deactivate Word.Chat Pro and activate Word.Chat (Free). All your settings are preserved. Content beyond the free limits will remain synced but new syncs will be limited.

= Can I use both Free and Pro at the same time? =

No. Only one version can be active at a time. Activating Pro will automatically deactivate the free version, and vice versa. All settings are preserved when switching.

= Is my site data secure? =

Yes. Each site's content is stored in an isolated namespace. API credentials and license keys are stored server-side. Chat queries are proxied through your WordPress site so no credentials are exposed to visitors.

= Does the AI Content Writer work with any topic? =

The AI Content Writer analyzes your existing synced content to understand your topics and writing style. It works best when you have at least 5-10 synced posts for the AI to learn from. You can generate content on any topic, and the AI will match your existing style.

= Will the chatbot slow down my site? =

No. Content sync uses WordPress background processing. The chat widget loads asynchronously. Auto-updates happen in the background during WordPress cron runs.

= How do automatic updates work? =

With an active Pro license, your plugin checks for updates daily. When a new version is available, WordPress will automatically download and install it in the background — no manual action needed. You can disable this from the WordPress auto-updates settings if preferred.

= What happens if I deactivate the plugin? =

Your settings and synced content data are preserved. The chat widget will be removed from your frontend. Cron jobs are cleaned up. You can reactivate at any time.

= What happens if I delete (uninstall) the plugin? =

Deleting the plugin will:
* Call the backend to reset your synced content data
* Remove all Word.Chat settings from your database (including license data)
* Clean up all post meta data related to Word.Chat

== Screenshots ==

1. AI chatbot widget on a WordPress site — visitors get instant answers from your content
2. Admin settings page — manage credentials, customize widget, and view analytics
3. AI Content Writer — generate new blog posts trained on your writing style
4. License management — activate and manage your Pro license
5. Content sync page — bulk sync management with status indicators

== Changelog ==

= 0.2.0 =
* Restructured as standalone Pro plugin (wordchat-pro)
* Added conflict detection — automatically deactivates free plugin when Pro is active
* Added dedicated Content Sync admin page with bulk management
* Added WordChatVars to admin context for AI Content Writer
* Added ABSPATH guards to all PHP include files
* Added complete plugin header fields (License, Plugin URI, Author URI, Domain Path)
* Normalized wordchat_is_paid storage to consistent '1'/'0' string values
* Added plugin_slug to update check payloads for separate Free/Pro update tracks
* Added capability checks on all AJAX handlers
* Improved uninstall cleanup — now removes all Pro-specific options
* Fixed SQL queries to use $wpdb->prepare() consistently
* Updated admin menu slug to wordchat-pro

= 0.1.32 =
* Previous release (pre-split, as part of combined plugin)

== Upgrade Notice ==

= 0.2.0 =
Major restructure: Word.Chat Pro is now a standalone plugin. Install wordchat-pro and your existing settings will be preserved.
