=== CustomerGPT ===
Contributors: xursandxaitbaev
Tags: ai chatbot, chatbot, live chat, customer support, woocommerce
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an AI support agent to your site that answers visitors from your own content, captures leads and hands chats to your team. Free plan available.

== Description ==

CustomerGPT puts an AI support agent on every page of your WordPress or WooCommerce site. It learns from your website, help docs and files, and answers visitors around the clock in more than 95 languages, with answers grounded in your content. When it cannot answer, it says so instead of guessing, collects the visitor's contact details or hands the conversation to your team.

This plugin connects your WordPress site to your CustomerGPT account. Click Connect, sign in or create a free account, and the chat bubble appears in the bottom-right corner of your pages while CustomerGPT starts learning from your site. No theme editing, no code and nothing to copy.

= What you get =

* **A free plan.** Start at no cost: one chatbot and up to 1,000 AI messages a month, with no time limit and no credit card.
* **One-click setup.** Connect creates your widget, starts it learning from your site and fills in the settings for you.
* **Answers from your own content.** Train the assistant on your pages, posts, PDFs, DOCX files and help center in the CustomerGPT dashboard.
* **Works with WooCommerce.** Visitors get answers about products, shipping and returns without leaving the shop.
* **Lead capture and handoff.** The assistant collects contact details and passes conversations to your team when a person is needed.
* **Fast pages.** Choose to load the chat after the page has finished loading or after a delay, so it does not slow down your page speed scores.
* **Show it only where you want.** Hide the chat on pages like checkout or your account area.
* **Change the look without WordPress.** Colors, welcome message and behavior are set in the CustomerGPT dashboard and show on your site right away.

= Free plan =

The plugin is free. The AI assistant runs on your CustomerGPT account, a hosted service, and CustomerGPT has a Free plan that works with this plugin:

* $0 a month, with no time limit and no credit card required
* 1 chatbot
* Up to 1,000 AI messages a month
* Up to 500 pages of training content
* 1 team member

New accounts get their first 14 days on the Starter plan. If you do not choose a paid plan by then, the account moves to the Free plan and the chat stays on your site. Paid plans add more messages, chatbots, team members and integrations, and you can upgrade at any time without losing anything. See [pricing](https://customergpt.ai/pricing).

== External services ==

This plugin connects your site to CustomerGPT (https://customergpt.ai), the service that runs the AI chat assistant. Without it the plugin has nothing to show.

* **What is loaded and when:** on the public pages of your site where the chat is shown, the visitor's browser loads the chat script from https://widget.customergpt.ai/embed.js, and the chat window from https://widget.customergpt.ai. Nothing is sent from your WordPress server, and nothing is loaded in wp-admin.
* **What data is sent:** your Widget ID, the address of the page the visitor is on, and the usual information a browser sends with any request (such as the IP address and browser type). When a visitor uses the chat, the messages they type and any contact details they choose to share are sent to CustomerGPT so the assistant can answer and your team can follow up.
* **When you click Connect:** your browser opens https://dashboard.customergpt.ai with your site's address, your site's name, the address of the plugin's settings page and a one-time code in the link. CustomerGPT uses them to create your widget, to read the public pages of your site so the assistant can answer from them, and to send you back with your Widget ID. Nothing is sent before you click, and no passwords or keys are stored in WordPress.

CustomerGPT [terms of service](https://customergpt.ai/terms) and [privacy policy](https://customergpt.ai/privacy).

The plugin also adds suggested wording about the chat to Settings → Privacy, for your own privacy policy.

== Installation ==

1. In wp-admin, go to Plugins → Add New, search for "CustomerGPT", then click Install Now and Activate.
2. Go to Settings → CustomerGPT and click **Create a free account and connect**, or **I already have an account**.
3. In the CustomerGPT dashboard, sign in or sign up, check that it shows your site, and click Connect. It creates your widget and starts learning from your site's pages.
4. You are taken back to WordPress, where the Widget ID is already filled in.

Open your site: the chat bubble is in the bottom-right corner. Add PDF, DOCX and other files, or more websites, in Knowledge Base in the CustomerGPT dashboard.

= Setting it up by hand =

1. [Create a CustomerGPT account](https://dashboard.customergpt.ai/?mode=register) or log in and create a widget. In Knowledge Base, paste your website address and click Crawl Link.
2. Open My Chatbot Widgets and copy the Widget ID. It starts with `widget_`.
3. In WordPress, go to Settings → CustomerGPT, paste the Widget ID and click Save Changes.

== Frequently Asked Questions ==

= Where do I find my Widget ID? =

You do not need it when you use Connect: the plugin fills it in. To set it by hand, log in to the [CustomerGPT dashboard](https://dashboard.customergpt.ai/) and open My Chatbot Widgets. Each widget shows its Widget ID with a Copy button. You can also paste the whole embed code from the dashboard into the Widget ID field; the plugin takes the ID from it.

= The assistant does not know my site. Why? =

CustomerGPT reads your site from the internet, so it can only learn from public pages. A site on your own computer (localhost), behind a password or in maintenance mode cannot be read. Check Knowledge Base in the CustomerGPT dashboard: a crawl that failed shows there, and you can start it again or upload files instead.

= Is the plugin free? =

Yes. The AI assistant runs on your CustomerGPT account, and you can use it on CustomerGPT's Free plan at no cost: one chatbot, up to 1,000 AI messages a month and up to 500 pages of training content, with no time limit and no credit card. New accounts get their first 14 days on the Starter plan.

= Does the Free plan work with this plugin? =

Yes. The chat bubble works on every CustomerGPT plan, Free included. Integrations with other platforms and API access come with paid plans; this plugin needs neither.

= What happens when I reach my monthly message limit? =

The assistant stops answering until the next month starts or you move to a plan with more messages. On the Free plan the limit is 1,000 AI messages a month. The plugin keeps working and needs no changes.

= How do I change my plan? =

In the CustomerGPT dashboard, under Billing. Once your site is connected, the "Plans and billing" button in Settings → CustomerGPT opens that page. Nothing changes in WordPress: your Widget ID stays the same, and the chat on your site follows the new plan within about a minute.

= How do I change the colors, the welcome message or the answers? =

In the CustomerGPT dashboard. Changes there show on your site right away; you do not need to change anything in WordPress.

= Can I hide the chat on some pages? =

Yes. In Settings → CustomerGPT, list the pages under "Hide on these pages", one per line, for example `/checkout`. End a line with `*` to include every page below it, for example `/my-account/*`.

Developers can also use the `customergpt_show_widget` filter:

`add_filter( 'customergpt_show_widget', function ( $show ) { return $show && ! is_user_logged_in(); } );`

= Will it slow down my site? =

The chat script is small and loads with `defer`, so it does not block your page from showing. For the best page speed scores, choose "After the page has finished loading" under "When it loads".

= The chat bubble does not appear. What should I check? =

Make sure the Widget ID is saved and "Show the chat bubble on my site" is ticked in Settings → CustomerGPT, then clear the cache of any caching plugin. If you use a plugin that combines or delays JavaScript, exclude `widget.customergpt.ai/embed.js` from it.

= Does it work with WooCommerce? =

Yes. The chat shows on shop, product and cart pages like any other page. To keep checkout free of distractions, add `/checkout` under "Hide on these pages".

== Screenshots ==

1. The chat on your site. Its look, welcome message and answers are set in the CustomerGPT dashboard.
2. Settings → CustomerGPT before connecting: create a free account or connect the one you have.
3. Settings → CustomerGPT once connected: the Widget ID, when the chat loads and the pages to hide it on.

== Changelog ==

= 2.0.0 =
* Deleting the plugin from a network now removes its settings from every site, also on networks with more than 100 sites.
* Updated the contributors list.

= 1.0.0 =
* First release: one-click Connect to your CustomerGPT account, the chat bubble, loading options, hiding the chat on chosen pages and suggested privacy policy text.

== Upgrade Notice ==

= 2.0.0 =
Deleting the plugin from a large network now removes its settings from every site.

= 1.0.0 =
First release.
