=== AnswerMage — AI Chat Widget ===
Contributors:      answermage
Tags:              chatbot, ai, chat, customer support, live chat
Requires at least: 5.8
Tested up to:      6.9
Stable tag:        1.0.0
Requires PHP:      7.4
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Add an AI-powered chat widget to your WordPress site. Train it on your content and let it answer visitor questions 24/7.

== Description ==

AnswerMage adds an AI-powered chat widget to your WordPress site that actually knows your content. Install the plugin, click Connect, and your chatbot is trained on your pages and posts automatically — no copying API keys, no manual setup.

**How it works:**

1. Install and activate the plugin
2. Go to **Settings → AnswerMage** and click **Connect to AnswerMage**
3. Log in or create a free account — your site is scraped automatically
4. The widget goes live immediately — free 14-day trial included, no credit card required

**Features:**

* One-click connect — no API keys to copy or paste
* Trained on your actual WordPress pages and posts via the REST API
* Answers visitor questions instantly, 24/7
* Fully customizable — widget color, bot name, greeting message
* Private preview mode — test every answer before going live
* Analytics dashboard — see every question asked and how it was answered
* Works with any WordPress theme
* Async loading — zero impact on page speed or Core Web Vitals
* GDPR-friendly — no customer PII stored on your server

**Requires a free AnswerMage account.** Create one during the connect flow — no credit card required. Includes a 14-day free trial so your widget goes live immediately.

== Installation ==

1. Upload the `answermage` folder to `/wp-content/plugins/`, or install directly from the WordPress Plugin Directory
2. Activate the plugin through the **Plugins** menu in WordPress
3. Go to **Settings → AnswerMage**
4. Click **Connect to AnswerMage** and log in or create a free account
5. Your site is scraped automatically and the widget goes live — free 14-day trial, no credit card required

== Frequently Asked Questions ==

= Do I need an AnswerMage account? =

Yes. The plugin connects your WordPress site to your AnswerMage chatbot. Click **Connect to AnswerMage** in the plugin settings to create a free account — no credit card required.

= Is it free? =

The plugin is free. New accounts get a 14-day free trial — your widget goes live immediately with no credit card required. After the trial, a paid plan is required to keep the widget active for site visitors.

= Will it slow down my site? =

No. The widget script loads asynchronously with `defer` and has no impact on page load time or Core Web Vitals.

= Does it work with my theme? =

Yes. AnswerMage works with any WordPress theme — block themes, classic themes, page builders.

= How does the chatbot learn my content? =

After connecting, AnswerMage fetches your published pages and posts via the WordPress REST API and builds a knowledge base automatically. Re-syncing after publishing new content keeps the bot current.

= What data does the plugin store? =

The plugin stores only your API key and app ID in `wp_options`. No visitor data, no conversation history, no PII is stored on your WordPress server. Conversation data is stored in your AnswerMage account.

= Can I disconnect the plugin? =

Yes. Deactivating or deleting the plugin removes the widget script from your site. Your AnswerMage account and data are not affected.

== External services ==

This plugin connects to the AnswerMage API, a third-party service operated by AnswerMage. The API is required for the plugin to function.

**What it does:** The AnswerMage API serves the chat widget script and handles all chatbot conversations on your site.

**What data is sent and when:**

* When the plugin is connected, your site URL is sent to AnswerMage to associate your WordPress site with your AnswerMage account.
* When a visitor uses the chat widget, their questions are sent to the AnswerMage API to generate answers. No visitor PII (names, email addresses, etc.) is collected by the plugin itself.
* The widget script (`answermage.min.js`) is loaded from `https://api.answermage.com` on every page of your site where the plugin is active.

**Service provider:** AnswerMage (https://answermage.com)

* Terms of Service: https://answermage.com/terms
* Privacy Policy: https://answermage.com/privacy

== Screenshots ==

1. The AnswerMage settings page — click Connect to get started.
2. The one-click connect flow — log in or create a free account.
3. The welcome page — showing scrape progress and chatbot preview.
4. The chat widget live on a WordPress site, answering a visitor question.
5. The AnswerMage dashboard — review questions, customize the widget, and re-sync content.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
