=== Guangergaozhi AI Chat and SEO Sync ===
Contributors: guwanning, guangergaozhi
Tags: ai chat, seo, schema, content, growth
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.2.50
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress site to GrowthOS for AI chat, content synchronization and SEO/GEO optimization.

== Description ==

GrowthOS connects a WordPress website to the GrowthOS SaaS platform. After activation with a GrowthOS license code, site owners can enable an AI chat widget, synchronize public site content, and publish approved SEO/GEO metadata and structured data back to WordPress pages, posts and supported product content.

Main capabilities:

* Activate or reconnect a WordPress site with a GrowthOS license code.
* Sync public pages, posts, categories, WooCommerce products and product categories to GrowthOS.
* Render an AI chat widget on the storefront without exposing the GrowthOS site token in browser code.
* Inject approved SEO/GEO title, meta description, AI summary, Open Graph, Twitter and JSON-LD data into WordPress pages.
* Poll GrowthOS jobs for approved article publishing and SEO/GEO updates.
* Configure chat theme colors and avatar from the WordPress admin screen.

= External services =

This plugin connects to the GrowthOS SaaS service. By default, requests are sent to `https://open.tui161.com`; site administrators can change the API endpoint in the plugin settings.

The plugin sends public site content and selected metadata to GrowthOS for content synchronization, AI chat configuration, SEO/GEO analysis and publishing workflows. Chat messages submitted by visitors are proxied through WordPress REST endpoints to GrowthOS so the GrowthOS site token is not exposed in visitor browsers.

Service provider: GUANGERGAOZHI / GrowthOS

Terms of service: https://www.tui161.com/legal/growthos-ai-connector/terms

Privacy policy: https://www.tui161.com/legal/growthos-ai-connector/privacy

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/growthos/` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Open the GrowthOS menu in WordPress admin.
4. Confirm the Cloud API Base URL.
5. Paste the GrowthOS license code generated in the GrowthOS SaaS admin panel.
6. Click Activate / Reconnect.
7. Enable AI chat and SEO/GEO injection as needed, then sync site content.

== Frequently Asked Questions ==

= Do I need a GrowthOS account? =

Yes. The plugin requires a GrowthOS SaaS account and a site license code before cloud synchronization, AI chat and SEO/GEO publishing can work.

= Does the plugin expose my GrowthOS site token to visitors? =

No. Visitor chat requests are proxied through WordPress REST endpoints. The GrowthOS site token is stored in WordPress options and used server-side.

= Can I disable the AI chat widget? =

Yes. The chat widget can be disabled from the GrowthOS plugin settings page.

= Can I disable SEO/GEO injection? =

Yes. SEO/GEO head output can be disabled from the GrowthOS plugin settings page.

= What content is synchronized? =

The plugin synchronizes public WordPress pages, posts, categories, WooCommerce products and product categories, including URLs, titles, excerpts and selected metadata needed for GrowthOS workflows.

== Screenshots ==

1. GrowthOS admin settings for activation, chat and SEO/GEO controls.
2. GrowthOS AI chat widget on a WordPress site.
3. SEO/GEO metadata generated in GrowthOS and rendered on WordPress pages.

== Changelog ==

= 0.2.50 =

* Recovers visitor chat sessions when a stored conversation proof is no longer valid after an upgrade or reconnect.
* Keeps existing SaaS-configured assistant names, welcome messages and suggested questions unchanged.

= 0.2.49 =

* Keeps chat widget UI labels aligned with the detected site or browser locale while preserving SaaS-configured assistant name, welcome message and suggested questions.
* Improves loading, placeholder, send button and RTL behavior for multilingual chat windows.

= 0.2.48 =

* Added WordPress.org release packaging support.
* Added AI chat widget theme and avatar controls.
* Improved multilingual content sync and SEO/GEO publishing workflows.
* Improved external service and privacy disclosures.
