=== SmartBot — AI Chatbot ===
Contributors: studiomeyerio
Tags: chatbot, ai chatbot, customer support, live chat, ai assistant
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an AI-powered chatbot to your WordPress site in 30 seconds. No coding required.

== Description ==

SmartBot is an AI-powered chatbot that learns from your website content and answers visitor questions 24/7.

**Features:**

* AI-powered responses trained on your site content
* Visitor memory across sessions
* Support ticket escalation
* Custom branding (colors, position, name)
* Multi-language support (German, English, Spanish)
* GDPR-compliant — no cookies required
* Mobile-responsive floating widget
* Shortcode support for selective embedding

**How it works:**

1. Create your free account at [smartbot.studiomeyer.io/register](https://smartbot.studiomeyer.io/register)
2. Get your Tenant ID after setup
3. Install this plugin and enter your Tenant ID
4. Done — your AI chatbot is live

**Display Options:**

* Show on all pages (global)
* Exclude specific pages by ID
* Show only via `[smartbot]` shortcode

**Want more?**

[SmartBot Pro](https://studiomeyer.io/store/smartbot-wp-pro) adds powerful features:

* 📊 Analytics Dashboard — conversations, messages, visitor stats
* 🎨 Custom Branding — colors, position, bot name
* 📥 CSV Export — download conversation data
* ⚡ Priority Support

= More free plugins by StudioMeyer =

* [AI-Ready WP](https://wordpress.org/plugins/ai-ready-wp/) — make your whole site discoverable by AI agents with agents.json, llms.txt, JSON-LD, and an SEO module.
* [Agent Discovery for WooCommerce](https://wordpress.org/plugins/studiomeyer-agent-discovery-for-woocommerce/) — AI shopping-agent discovery endpoints for WooCommerce stores.

== Installation ==

= Quick start (about 30 seconds) =

1. In WordPress, go to **Plugins → Add New**, search for "SmartBot", then click **Install Now** and **Activate**.
2. Open **Settings → SmartBot**. No account yet? Enter your email and click **Create Free Account** — your Tenant ID is filled in for you. Already have one? Paste the Tenant ID from your SmartBot dashboard.
3. Click **Save**. Your AI chatbot is now live on every page — there is no code to copy.

To show the chatbot on only some pages, use the display options or the `[smartbot]` shortcode.

= Manual installation =

1. Download the plugin ZIP.
2. Go to **Plugins → Add New → Upload Plugin**, upload the ZIP, then click **Install Now** and **Activate**.

== Frequently Asked Questions ==

= Do I need an API key? =

No API keys needed. You just need a SmartBot account and your Tenant ID.

= How much does SmartBot cost? =

SmartBot has a free plan with 50 messages per month — no credit card needed. Paid plans with higher message limits are available; see [studiomeyer.io](https://studiomeyer.io) for current pricing.

= Is it GDPR compliant? =

Yes. SmartBot uses no cookies, no tracking pixels, and no third-party analytics. Visitor sessions use a randomly generated ID stored in localStorage.

= Can I customize the appearance? =

Yes. Colors, position (left/right), bot name, and greeting message can all be customized in your SmartBot dashboard.

= Is there a Pro version? =

Yes! SmartBot Pro adds analytics, custom branding, CSV export, and priority support. Visit studiomeyer.io/store/smartbot-wp-pro for details.

= Does it work with page builders? =

Yes. The widget loads as a floating overlay that works with any theme or page builder (Elementor, Divi, Beaver Builder, etc.).

== Third-Party Services ==

This plugin relies on the StudioMeyer SmartBot SaaS service to function. The chatbot widget is loaded from and powered by StudioMeyer servers.

= SmartBot SaaS =

* **Service URL:** `https://smartbot.studiomeyer.io`
* **What is loaded:** The chatbot widget script and chat interface
* **Data sent:** Visitor messages, session ID (random, not personally identifiable), your Tenant ID
* **When:** On every page load where the chatbot is displayed
* **Purpose:** AI-powered chatbot responses trained on your site content
* **Privacy Policy:** [https://studiomeyer.io/privacy](https://studiomeyer.io/privacy)
* **Terms of Service:** [https://studiomeyer.io/terms](https://studiomeyer.io/terms)

= Account registration and connection check (admin only) =

* **One-click registration:** When you (the site admin) click "Create Free Account" on the settings page, the email address you entered plus your site domain, site name, and site language are sent to `smartbot.studiomeyer.io` to create your SmartBot account. Nothing is sent without that click.
* **Tenant ID verification:** When a Tenant ID is saved, the plugin checks it against `smartbot.studiomeyer.io` when the settings page is loaded (result cached for one hour) to show the connection status. Only the Tenant ID itself is sent.
* No visitor data is involved in either request.

Create your free account at [smartbot.studiomeyer.io/register](https://smartbot.studiomeyer.io/register). No credit card required.

== Screenshots ==

1. SmartBot settings — connect with your Tenant ID, choose where the chatbot appears, and it embeds automatically (no code to paste).
2. Connected and linked — a green status confirms SmartBot is live on your site.
3. What SmartBot does — AI answers trained on your content, visitor memory, ticket escalation, GDPR-friendly, and DE/EN/ES support.

== Changelog ==

= 1.0.8 =
* New: A guided setup wizard now opens right after activation and gets your chatbot live in about a minute — create a free account, choose where the bot appears, done. No more hunting through settings.
* New: A friendly, one-time review request appears a week after setup. Dismiss it once and it never comes back.

= 1.0.7 =
* Fix: The one-click account panel now says "Free plan, no credit card needed" instead of "14-day free trial", so it matches the free plan (50 messages per month) described everywhere else. No functional changes.

= 1.0.6 =
* Compatibility: Tested up to WordPress 7.0 (released May 2026).
* Maintenance: Verified the connector, widget injection, and one-click registration against the new iframe-only block editor and the updated script loading in WordPress 7.0. No changes were required for your sites.
* Fix: The settings page no longer shows "Your SmartBot account is linked" next to a Tenant ID that failed verification. An unverified ID now gets a clear hint to double-check it in the SmartBot dashboard.
* Housekeeping: Bundled the GPL v2 license text (LICENSE.txt) with the plugin.

= 1.0.5 =
* New: One-click registration directly from WP Admin — no external signup needed
* New: Email + domain auto-detected, Tenant ID filled in automatically
* Improved: 14-day free trial starts instantly from Settings page

= 1.0.4 =
* New: Free trial registration — get started in 30 seconds at smartbot.studiomeyer.io/register
* New: Direct signup link in plugin settings (no manual Tenant ID needed)
* Improved: Browser autofill support for email fields
* Improved: Updated translation template (.pot file)

= 1.0.3 =
* Enhanced privacy policy text (OpenAI Zero Data Retention, EU servers, localStorage)
* GDPR compliance improvements

= 1.0.2 =
* Added Pro upgrade path and feature highlights
* Added Go Pro link to plugin action links
* Added one-time activation notice with setup guidance

= 1.0.1 =
* Added WordPress Privacy Policy integration
* Improved transient cache cleanup on settings change
* Fixed output escaping for PCP compliance
* Tested up to WordPress 6.9

= 1.0.0 =
* Initial release
* Tenant ID connection with validation
* Global, selective, and shortcode display modes
* Page exclusion support
* Admin settings page with connection status

== Upgrade Notice ==

= 1.0.8 =
Adds a guided setup wizard that gets your chatbot live in about a minute. No action needed on existing sites.

= 1.0.7 =
Clarifies the free-plan wording on the settings page. No functional changes.

= 1.0.6 =
Tested up to WordPress 7.0. Maintenance and compatibility update — no action needed.

= 1.0.5 =
One-click registration from WP Admin! No external signup needed — enter your email, get your Tenant ID instantly.

= 1.0.4 =
Free trial registration is now available! Sign up at smartbot.studiomeyer.io/register to get your Tenant ID in seconds.

= 1.0.3 =
* Enhanced privacy policy text (OpenAI Zero Data Retention, EU servers, localStorage)
* GDPR compliance improvements

= 1.0.2 =
Added Pro upgrade path and feature highlights.

= 1.0.1 =
Improved compliance and privacy policy integration.

= 1.0.0 =
Initial release.
