=== PopABot ===
Contributors: popabot
Tags: chatbot, ai, live chat, customer support, chat widget
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add your PopABot AI chatbot to your WordPress site in seconds.

== Description ==

PopABot lets you create AI-powered chatbots trained on your own data. This plugin connects your PopABot chatbot to your WordPress site with a simple Chatbot ID - no coding required.

This plugin is a connector for the PopABot service. A PopABot account and chatbot are required for the widget to function.

**Features:**

* One-click chatbot integration
* Paste your Chatbot ID or full embed code - ID is extracted automatically
* Show chatbot on all pages or specific pages only
* Wildcard page matching (e.g. shop* matches all shop pages)
* Exclude chatbot from checkout, cart, or any page
* Lightweight - loads asynchronously, no impact on page speed
* Auto-clears popular caching plugins when settings change
* Works with any WordPress theme

**How it works:**

1. Create your AI chatbot at [popabot.com](https://popabot.com)
2. Train it with your data (documents, website content, FAQs)
3. Install this plugin and paste your Chatbot ID or embed code
4. Your chatbot is live on your WordPress site

**External service disclosure:**

* This plugin connects to PopABot, a hosted Software as a Service (SaaS) product.
* When the chatbot is enabled, your site loads the chat widget script from `https://popabot.com/deploy/{chatbot_id}`.
* When an administrator saves a Chatbot ID in the plugin settings, the plugin sends that Chatbot ID to PopABot to verify the connection.
* PopABot account, service, and billing details are available on [popabot.com](https://popabot.com).
* Terms of Service: [https://popabot.com/terms](https://popabot.com/terms)
* Privacy Policy: [https://popabot.com/privacy](https://popabot.com/privacy)

== Installation ==

1. Upload the `popabot` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings > PopABot
4. Paste your Chatbot ID or full embed code - the widget will be enabled automatically
5. That's it - your chatbot is now live

== Frequently Asked Questions ==

= Where do I find my Chatbot ID? =

Log in to your [PopABot dashboard](https://popabot.com/chatbots), click on your chatbot, and find it in the Embed Code section. You can paste either the raw Chatbot ID or the full embed code snippet - the plugin will extract the ID automatically.

= Do I need a PopABot account? =

Yes. Create a free account at [popabot.com](https://popabot.com/register) to build and manage your chatbot.

= Does this plugin connect to an external service? =

Yes. PopABot is a hosted service. The plugin loads the chat widget from PopABot on the front end and verifies the Chatbot ID with PopABot when you save plugin settings. Review service details on [popabot.com](https://popabot.com).

= Will it slow down my site? =

No. The chatbot script loads asynchronously and does not block page rendering.

= Can I show the chatbot on specific pages only? =

Yes. In Settings > PopABot, choose "Only specific pages" or "All pages except..." and list the page paths. Use * for wildcards (e.g. shop* matches shop and shop/shoes, but not shopping).

= Does it work with WooCommerce? =

Yes. The chatbot widget works on any WordPress page, including WooCommerce shop and product pages.

= What happens when I deactivate the plugin? =

The chatbot stops showing immediately. Your settings are preserved so you can reactivate later without re-configuring.

= What happens when I delete the plugin? =

All plugin settings are removed from the database. You will need to re-enter your Chatbot ID if you reinstall.

== Changelog ==

= 1.0.1 =
* Removed the non-essential deployment ping when saving a Chatbot ID
* Limited the missing Chatbot ID admin notice to plugin-related admin screens
* Added clearer external service disclosure for WordPress.org review

= 1.0.0 =
* Initial release
