=== CrazyBot – AI Chatbot & Lead Capture ===
Contributors: crezvatic
Tags: chatbot, ai chatbot, live chat, lead generation, whatsapp
Requires at least: 5.8
Tested up to: 6.6
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 CrazyBot AI chatbot to WordPress in one step — capture leads, answer questions with AI and book appointments, without editing your theme.

== Description ==

CrazyBot turns website visitors into leads. Build the conversation in the CrazyBot dashboard (visual flow builder + AI answers), then use this plugin to show it on your WordPress site:

* Paste your embed code once — no theme or footer editing, survives theme updates.
* Shows on every page, with exclusions (e.g. `/checkout`, `/my-account/*`, page IDs).
* Option to hide the chat while you're logged in as an administrator.
* One-click test link that runs the bot without creating real leads.
* Lightweight: the chat script loads in the footer with `defer`.

You need a CrazyBot account and a bot. Create one at https://crazybot.crezvatic.com.

== Installation ==

1. Install and activate the plugin (Plugins → Add New → upload the zip, or search "CrazyBot").
2. In CrazyBot, open your bot → **Share** → copy the embed code.
3. In WordPress go to **Settings → CrazyBot**, paste the code and click **Save Changes**.
4. Visit your site — the chat bubble appears in the corner.

If your bot only allows certain websites (Allowed domains in the bot's settings), add this site's domain there. Clear your caching plugin's cache after saving.

Full guide with troubleshooting: https://crazybot.crezvatic.com/docs/wordpress

== Frequently Asked Questions ==

= Does it work with my theme / page builder? =
Yes. It adds the chat through WordPress's standard script loading, so it works with any theme and with Elementor, Divi, Gutenberg and others.

= Where do I change what the bot says? =
In your CrazyBot dashboard. Changes go live immediately — no need to touch WordPress.

= Can I hide the chat on some pages? =
Yes — list paths (`/checkout`), sections (`/shop/*`) or page IDs under "Don't show on".

== External services ==

This plugin loads the CrazyBot chat widget from the CrazyBot server (by default https://crazybot.crezvatic.com, or the server in your embed code). The widget script is requested on every front-end page where the chat is shown, and messages your visitors type in the chat — plus what they enter in it, such as name, email or phone — are sent to that server to reply and to save leads for the site owner. The page URL and basic browser details are sent with each chat.

Service terms: https://crazybot.crezvatic.com/terms
Privacy policy: https://crazybot.crezvatic.com/privacy

== Changelog ==

= 1.0.1 =
* Link to the full setup guide and troubleshooting from the settings page.

= 1.0.0 =
* First release: paste embed code or Bot ID, page exclusions, hide for admins, test link.
