=== ChatInCart – AI Chatbot & Live Chat ===
Contributors: chatincart
Tags: chatbot, ai chatbot, live chat, woocommerce, customer support
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An AI chatbot that answers visitors from your own website, and live chat for when they need a person. Human chats are free and unlimited.

== Description ==

ChatInCart adds an AI chatbot and live chat to your WordPress or WooCommerce site. The AI learns from your own pages, products and policies, and answers visitors around the clock. When it can't help, or a visitor asks for a person, the chat goes to your team's inbox.

**You only pay for AI replies. Human chats and tickets are always free and unlimited, and if your AI credits run out, the AI pauses and your team keeps chatting.** No per-seat surprises, no per-conversation fees for talking to your own customers.

= What it does =

* **Answers from your content.** Add your website, documents or FAQs in the ChatInCart dashboard. The AI replies using what's there, not made-up answers.
* **Hands off to a person.** Visitors can reach your team at any time. You get notified and reply from a shared inbox.
* **Built for stores.** Answers questions about products, shipping, returns and sizing. WooCommerce and Shopify product catalog lookup is available on paid plans.
* **Knows who's chatting.** Optionally pass the name and email of logged-in users and WooCommerce customers to your inbox, so you don't have to ask.
* **Visitor context.** See which page a visitor is on, where they came from and their location.
* **Looks like your brand.** Set colors, greeting, icon and position in the dashboard. Changes show up on your site without touching WordPress.
* **Lightweight.** One small script, loaded asynchronously, so it doesn't slow down your pages.

= Who it's for =

Online stores, service businesses, agencies, clinics and SaaS companies that get the same questions every day and don't have someone watching chat all the time.

= Pricing =

ChatInCart has a free plan with 50 AI replies a month, unlimited human chats, 1 AI agent and a shared inbox. Paid plans start at $29/month for 1,500 AI replies. See [pricing](https://www.chatincart.com/pricing).

= How to set it up =

1. Install and activate the plugin.
2. Create a free account at [chatincart.com](https://www.chatincart.com/login) and add your website so the AI can learn from it.
3. In WordPress, go to **Settings → ChatInCart** and paste the embed code from your ChatInCart dashboard (or just your agent's name).
4. Click **Connect**. The chat button appears on your site.

== External services ==

This plugin connects your site to ChatInCart, a hosted chat service, to show the chat widget. It doesn't work without a ChatInCart account.

**What is loaded and when:** on every public page where the widget is enabled, the visitor's browser loads the chat script from your agent's address (for example `https://yourstore.chatincart.com/embed/chatincart.js`). The chat window itself is served from the same address.

**What data is sent:**

* When a visitor chats: their messages, and an approximate location derived from their IP address.
* On each page view, unless you turn off "Page views" in the settings: the page address and title, the referring page and campaign (UTM) tags on the first page, the browser language and time zone, plus a periodic "still on this page" signal so your team can see who is online. Query parameters that look sensitive (such as tokens or emails) are removed before sending.
* A random visitor ID is stored in the browser's local storage (no cookies) so returning visitors keep their conversation.
* Only if you turn on "Logged-in users" in the settings: the name and email of logged-in users. This is off by default.

**From your server:** when you save a new agent address, WordPress makes one request to that address to check that the agent exists. No site or visitor data is sent.

ChatInCart: [Terms of service](https://www.chatincart.com/terms), [Privacy policy](https://www.chatincart.com/privacy).

== Installation ==

= From your WordPress dashboard =

1. Go to **Plugins → Add New** and search for "ChatInCart".
2. Click **Install Now**, then **Activate**.
3. You'll be taken to **Settings → ChatInCart**. Paste your embed code and click **Connect**.

= Manual install =

1. Download the plugin zip and upload it in **Plugins → Add New → Upload Plugin**.
2. Activate it and follow step 3 above.

== Frequently Asked Questions ==

= Do I need a ChatInCart account? =

Yes. The plugin connects WordPress to your ChatInCart AI agent. [Sign up free](https://www.chatincart.com/login), no card needed.

= Where do I find my embed code? =

In the ChatInCart dashboard, open your agent. The install card shows a line like `<script src="https://yourstore.chatincart.com/embed/chatincart.js" async></script>`. Paste the whole thing, the address, or just `yourstore`.

= Does it work with WooCommerce? =

Yes. The chat shows on shop, product, cart and checkout pages like any other page, and you can hide it on specific pages. Paid plans can also connect your WooCommerce product catalog so the AI can answer product questions.

= Can the AI look up orders? =

Not yet. Today the AI answers from your website content, documents and product catalog. For order questions it can hand the chat to your team.

= Does it slow down my site? =

The script loads asynchronously, so it doesn't block your page from rendering. The chat window is prepared in the background after the page loads, so it opens instantly when a visitor clicks.

= Can I hide the chat on some pages? =

Yes. In **Settings → ChatInCart**, enter the IDs of pages, posts or products to hide it on. You can also show it only to logged-out visitors or only to logged-in users. Developers can use the `chatincart_should_load` filter for any other rule.

= What happens when my AI credits run out? =

The AI pauses and visitors can still message your team, who reply for free. Your chat never goes dark.

= Is it GDPR friendly? =

The plugin doesn't send names or emails unless you turn that on. See the External services section above for exactly what the widget collects, and mention ChatInCart in your privacy policy. If you use a cookie consent tool, you can delay the widget with the `chatincart_should_load` filter.

= Can I use a custom domain? =

Yes. If your agent runs on your own domain (available on the Scale plan), paste that address instead.

= Is there a filter to change the widget settings? =

Yes. `chatincart_widget_config` lets you change the values passed to the widget, such as `position`, `primaryColor` or `zIndex`.

== Screenshots ==

1. The chat widget on a WordPress store, ready for a visitor's first question.
2. Settings → ChatInCart: paste your embed code, then choose where the chat shows.

== Changelog ==

= 1.0.0 =
* First release: connect a ChatInCart AI agent, show or hide the widget by page and login state, optional logged-in user identification.

== Upgrade Notice ==

= 1.0.0 =
First release.
