=== SMASHRE AI Agent Studio Connector ===
Contributors: smashre
Tags: ai chatbot, ai agent, chat widget, contact form, knowledge base
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your site to SMASHRE AI Agent Studio: a chat widget answered by your own AI agent, a contact form, and approved content sync.

== Description ==

This plugin connects a WordPress site to **SMASHRE AI Agent Studio**, where you build and manage AI agents. It needs a SMASHRE AI account with Agent Studio; without one the plugin installs but the chat widget stays hidden.

* **Chat widget** answered by the Agent Studio agent you assign to this site (support, sales, bookings or your own).
* **Contact form** inside the chat, with a consent record for every message.
* **Content sync**: share published pages, posts or other public content types as knowledge. In Agent Studio an admin must approve the content before agents use it, and again after it changes, unless they choose otherwise. Single items can be excluded on their edit screen.
* **One-click connection** to your SMASHRE AI account, reconnect to rotate the site token, disconnect at any time.

This plugin is separate from "AI Agent by Smashre" and "AI Real Estate by Smashre" and can run next to them.

== External services ==

This plugin connects to **SMASHRE AI Agent Studio** (https://smashre.com), operated by Smashre AI. Nothing is sent until an administrator connects the site.

* **Connecting** (when an administrator presses "Connect"): site address and name, WordPress, PHP and plugin versions, site language.
* **Status checks** (twice a day while connected): the site token, to read the plan and the assigned agent.
* **Chat** (after the visitor ticks the chat notice): the message, a random session ID, the page address and title, the site language.
* **Contact form** (after the visitor ticks the contact notice): the details entered and the consent text.
* **Content sync** (after an administrator allows it): published items of the chosen types as plain text, with title, link and date.

Visitor IP addresses are not sent.

* Terms of service: https://smashre.com/terms
* Privacy policy: https://smashre.com/privacy

== Installation ==

1. Upload and activate the plugin.
2. Settings → Agent Studio → **Connect to SMASHRE AI**; approve the site for your organization.
3. In Agent Studio, assign an agent to the site (Connected Websites).
4. Content tab: choose content types, allow sync, save. Approve the content in Agent Studio → Knowledge Sources and add it to your agent.
5. Chat widget tab: switch on the widget.

== Frequently Asked Questions ==

= Does the assistant use my pages before I approve them? =

No. Synced content stays unused until an admin approves it in Agent Studio.

= What happens on uninstall? =

The site token is always removed. Settings stay unless you tick the option on the Privacy tab. Your content is never changed.

== Changelog ==

= 0.1.0 =
* First release: connection, chat widget, contact form, approved content sync, diagnostics.
