=== AIBlitz Chat ===
Contributors: zhaodongchao
Tags: chatbot, ai, customer support, live chat, widget
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your AIBlitz AI chatbot on any WordPress site in seconds — no coding required.

== Description ==

**AIBlitz Chat** is the official WordPress plugin for [AIBlitz](https://aiblitz.io), the AI-powered customer support platform.

Train an AI chatbot on your website or documents and embed it in 2 steps:

1. Create your chatbot at [aiblitz.io](https://aiblitz.io/register) (free plan available)
2. Install this plugin and paste your Chatbot ID — done.

**Features:**

* One-click embed — no touching theme code
* Works on all page types, front page only, or singular posts & pages
* Exclude specific pages or posts by ID
* Shortcode `[aiblitz_chat]` for manual placement
* Lightweight — loads the widget asynchronously, no impact on page speed
* Compatible with all major page builders (Elementor, Divi, Gutenberg)

**Why AIBlitz?**

* Train on your website content or uploaded PDFs/DOCX
* 24/7 AI-powered answers in the visitor's language
* See every conversation in your dashboard
* Starter plan from $29/month — cheaper than Intercom, smarter than a FAQ page

== Installation ==

1. Upload the `aiblitz-chat` folder to `/wp-content/plugins/`
   — or install directly via **Plugins → Add New → Upload Plugin**
2. Activate the plugin in **Plugins → Installed Plugins**
3. Go to **Settings → AIBlitz Chat**
4. Paste your Chatbot ID (find it in your AIBlitz dashboard under **Chatbot → Embed**)
5. Save — your chat widget is live

== Frequently Asked Questions ==

= Where do I find my Chatbot ID? =
Log in to [aiblitz.io/dashboard/chat](https://aiblitz.io/dashboard/chat), open your chatbot, and go to the **Embed** tab. Copy the `data-chatbot-id` value.

= Is there a free plan? =
Yes — the Free plan gives you 1 chatbot and 50 messages/month with an AIBlitz watermark. Paid plans start at $29/month.

= Can I show the widget on specific pages only? =
Yes. In Settings → AIBlitz Chat, choose "Posts & pages only" or use the shortcode `[aiblitz_chat]` on the exact pages you want.

= Can I use different chatbots on different pages? =
Use the shortcode with a custom ID: `[aiblitz_chat id="your-other-chatbot-id"]`

= Does the plugin slow down my site? =
No. The widget script is loaded with `async` and injected at the bottom of the page (`wp_footer`). It has zero impact on page rendering.

= Will the widget work with caching plugins? =
Yes. The widget is client-side JavaScript loaded from our CDN — caching doesn't affect it.

== Screenshots ==

1. Settings page — paste your Chatbot ID and choose where to display the widget
2. Chat widget on a live WordPress site

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== External services ==

This plugin connects to the AIBlitz API to load and run the AI chatbot widget on your website.

= What data is sent =

When a visitor loads a page where the widget is active, the browser fetches the chatbot widget script from `https://api.aiblitz.io/widget/chat.js`. When a visitor sends a message, the message text is sent to the AIBlitz API for processing and a response is returned. No personal data is collected unless the visitor voluntarily provides it in the chat conversation.

= When data is sent =

* The widget script is loaded on every page view where the plugin is active.
* Chat messages are sent only when a visitor interacts with the chatbot.

= Service provider =

This service is provided by AIBlitz (aiblitz.io).

* [Terms of Service](https://aiblitz.io/terms)
* [Privacy Policy](https://aiblitz.io/privacy)
