=== Web Sale Agent ===
Contributors: misterskinfotech
Tags: ai chat, chatbot, web sale agent, live chat, widget
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add the Web Sale Agent AI chat widget to any WordPress website.

== Description ==

Web Sale Agent connects your WordPress website with the Web Sale Agent AI chat widget hosted at https://websaleagent.com.

Web Sale Agent is a product by Mistersk Infotech. This official plugin is developed by Mistersk Infotech and provides a lightweight settings page where site owners can add their own Agent ID, choose the widget host URL, optionally set a script version, and control page targeting.

No private AI API keys are stored in WordPress, and no secret keys are exposed in frontend JavaScript.

Web Sale Agent is built for businesses and agencies that want a website AI sales agent to answer visitor questions, qualify leads, collect contact details, summarize conversations, and support follow-up from the Web Sale Agent dashboard.

The WordPress dashboard includes a complete user guide with setup steps, visual reference pages, troubleshooting help, and a downloadable PDF guide.

== Third-Party Service ==

This plugin connects to the Web Sale Agent service at https://websaleagent.com.

When the widget is enabled and an Agent ID is saved, the plugin loads the Web Sale Agent widget script from the configured HTTPS host URL. The widget may process visitor chat messages and contact details through the Web Sale Agent platform so the website owner can provide AI chat responses, capture leads, review conversation summaries, and follow up with prospects.

An account and Agent ID from Web Sale Agent are required to use the widget. Website owners should review the Web Sale Agent service terms and privacy information before enabling the widget on a live website.

== Installation ==

1. Upload the `web-sale-agent` folder to the `/wp-content/plugins/` directory, or upload a ZIP file from WordPress Admin > Plugins > Add New > Upload Plugin.
2. Activate `Web Sale Agent` from the Plugins screen.
3. Go to Settings > Web Sale Agent.
4. Enable the widget.
5. Enter your Agent ID from the Web Sale Agent dashboard.
6. Save settings and visit the frontend of your website.

== Frequently Asked Questions ==

= Where do I find my Agent ID? =

Find your Agent ID inside your Web Sale Agent dashboard.

= Does this plugin store API keys? =

No. This plugin stores only widget settings such as enabled status, Agent ID, widget host URL, script version, and page targeting rules.

= Can I show the widget only on selected pages? =

Yes. Use the Page Targeting setting to show the widget on all pages, hide it on selected page IDs, or show it only on selected page IDs.

= Can I change the widget host? =

Yes, but the host URL must be a valid HTTPS URL. The default host is https://websaleagent.com.

== Security Note ==

Web Sale Agent uses the WordPress Settings API, capability checks, sanitization, escaping, and HTTPS-only host validation. The plugin does not store private AI API keys and does not expose secret keys in frontend JavaScript.

The plugin loads the Web Sale Agent widget only after a site administrator enables it and saves an Agent ID. No widget script is output when the plugin is disabled or the Agent ID is empty.

== Changelog ==

= 1.1.2 =
* Replaced direct frontend script output with WordPress script enqueue APIs.
* Expanded internal PHP prefixes to reduce collision risk.

= 1.1.1 =
* Kept the User Guide inside the plugin without adding a separate WordPress Settings sidebar item.
* Added step-specific screenshots with captions and full-size viewing.

= 1.1.0 =
* Added a complete WordPress admin user guide.
* Added a downloadable Web Sale Agent PDF guide and visual reference pages.
* Added Settings and User Guide links on the Plugins screen.

= 1.0.1 =
* Added the option to load the widget code in the page head or footer.

= 1.0.0 =
* Initial release.

== Author ==

Mistersk Infotech
https://misterskinfotech.com
