=== WeblyConnect ===
Contributors: weblyarts
Tags: chatbot, ai, customer-support, automation, knowledge-base
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.2.17
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to WeblySuite. Pair with WeblyAgent Connect from the Plugin Directory. WeblyMCP Connect is not listed yet.

== Description ==

**Connect WordPress to AI agents in minutes.**

Turn your WordPress site into an AI-powered workspace with agents, knowledge bases, automations, booking, and secure integrations, powered by [WeblySuite](https://weblyarts.com/weblysuite).

WeblyConnect is the **bridge**. It links your site to your WeblySuite account. By itself it does not add a chat widget or site tools. Install **WeblyAgent Connect** from the Plugin Directory. **WeblyMCP Connect** is not in the directory yet.

= What you can do =

* **Customer support agent** – answers visitors using your WordPress posts and pages
* **Documentation assistant** – uses your site content and extra knowledge you upload
* **Booking assistant** – helps schedule appointments
* **Email automation** – sends contextual email from the tools you connect
* **External tools** – Jira, GitHub, Google Calendar, Gmail, WooCommerce, Stripe, and more

= Companion plugins =

Install these as well. WeblyConnect alone does not show a chat or run automations.

1. **[WeblyAgent Connect](https://wordpress.org/plugins/weblyagent-connect/)** – visitor chat widget. **Now in the Plugin Directory** (Plugins > Add New).
2. **WeblyMCP Connect** – WordPress tools and integrations (bookings, email, Jira, GitHub, WooCommerce, …). **Not in the Plugin Directory yet.** Until it appears under Plugins > Add New, do not expect to find it there. Product page: https://suite.weblyarts.com/weblymcp-connect/

WeblyAgent Connect requires this plugin (`Requires Plugins: weblyconnect`).

= Get started in 5 minutes =

1. Install and activate WeblyConnect.
2. Open **WeblyConnect** in wp-admin and click **Connect to WeblySuite**.
3. Sign in to your [WeblySuite](https://suite.weblyarts.com) account (or create one).
4. Install **[WeblyAgent Connect](https://wordpress.org/plugins/weblyagent-connect/)** for on-site chat.
5. **WeblyMCP Connect** is not listed on wordpress.org yet. Chat works without it; extra site tools wait for that plugin.

= WeblySuite account =

Connecting your account is explicit consent to send chat, site, and knowledge data to WeblyArts services.

* Console: https://suite.weblyarts.com
* Product: https://suite.weblyarts.com/weblyconnect/
* Terms (EN): https://suite.weblyarts.com/terms-of-service-en/
* Terms (IT): https://suite.weblyarts.com/terms-of-service/
* Privacy: https://weblyarts.com/en/privacy

= What this plugin includes =

* Encrypted storage of your WeblySuite token
* Connect flow back to the WeblySuite console
* Shared chat UI assets used by WeblyAgent Connect
* Admin screen: connection status, plan snapshot, disconnect

= Bundled libraries =

* `@microsoft/fetch-event-source` v2.0.1 (MIT), readable source in `assets/js/lib/fetch-event-source.js`

== Installation ==

1. Upload the `weblyconnect` folder to `/wp-content/plugins/` or install from Plugins > Add New.
2. Activate **WeblyConnect**.
3. Open **WeblyConnect** in the wp-admin menu.
4. Click **Connect to WeblySuite** and sign in with your WeblySuite account.
5. Install **[WeblyAgent Connect](https://wordpress.org/plugins/weblyagent-connect/)** for visitor chat. **WeblyMCP Connect** is not in the Plugin Directory yet.

== Frequently Asked Questions ==

= Does WeblyConnect do anything on its own? =

It connects the site to WeblySuite. The chat widget is **[WeblyAgent Connect](https://wordpress.org/plugins/weblyagent-connect/)** (already listed). Bookings, email, Jira, GitHub, WooCommerce and other site tools are **WeblyMCP Connect**, which is **not** on wordpress.org yet. Until that listing is approved, install Agent Connect from the Plugin Directory; extra site tools are not available as a directory plugin.

= Do I need a paid WeblySuite account? =

The plugin code is free and GPL. AI replies and extra tools run on WeblySuite (trial or paid). If a request is over your plan, the service returns an error. Nothing in this zip is locked.

= Does the plugin phone home before I connect? =

No. Until you connect a WeblySuite account, it does not call WeblyArts chat, knowledge, or tools APIs.

= Where do updates come from? =

When hosted on WordPress.org, plugin updates come from the Plugin Directory only.

== Screenshots ==

1. Plan picker before connect. Choose a WeblySuite plan and start the console connect flow.
2. Connected dashboard. Token status, plan snapshot, and disconnect.
3. Wallet PAYG and upgrade cards after the site is linked.

== Privacy ==

After you connect a tenant token, this site may send to WeblyArts:

* Chat messages and session ids (visitor widget, via WeblyAgent Connect)
* Knowledge content you choose to ingest
* Tool calls you enable (via WeblyMCP Connect)
* Site name and billing snapshot requests (via WeblySuite)

See https://weblyarts.com/en/privacy and https://suite.weblyarts.com/terms-of-service-en/

== Changelog ==

= 0.2.17 =
* WordPress.org directory release.
* Stable tag matches plugin Version so the directory can publish /tags/0.2.17/.

= 0.2.12 =
* Listing copy: WeblyAgent Connect is live on wordpress.org. WeblyMCP Connect is not in the Plugin Directory yet.

= 0.2.8 =
* Consecutive identical ReAct pills collapse; the xN count sits beside the pill, not inside it.

= 0.2.7 =
* Visitor stream sends the site locale to AgentHub. Typing bubble notifies the widget so it can scroll.

= 0.2.6 =
* Directory listing copy for WordPress users: use cases, 5-minute setup, companion plugins required.
* Updated plugin directory banners.

= 0.2.5 =
* WordPress.org listing: slug `weblyconnect`, display name WeblyConnect.
* OAuth connect requires a valid CSRF `state` before token exchange.
* Release zip no longer ships bundled `.po` translation files.

= 0.2.4 =
* Plan cards and quota snapshot show monthly ecosystem request ceilings (then PAYG).
* Plugin Check (plugin_repo): translators comments, wp_remote HTTP clients, no CDN updater file.

= 0.2.0 =
* WordPress.org submission: GPL headers, readme, uninstall.
* Guideline 5/6: no local quota lock on included code; Hub/RAG enforce plan limits.
* Guideline 8: CDN plugin updater is not loaded.

= 0.1.35 =
* Internal / CDN releases (pre-directory).

== Upgrade Notice ==

= 0.2.6 =
Listing copy and banners. Install WeblyAgent Connect and WeblyMCP Connect as well; WeblyConnect is the connection layer.

= 0.2.5 =
First WordPress.org directory release (slug weblyconnect). Connect still requires a WeblySuite account.
