=== C2C AI Sales Agent ===
Contributors: timelygp
Tags: ai sales agent, chatbot, woocommerce, live chat, conversion
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.6.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An AI sales agent that turns visitors into customers, from the first chat to checkout: answers, recommends, adds to cart and collects leads.

== Description ==

C2C AI Sales Agent turns your website visitors into customers. It takes each visitor from the first question in the chat all the way to checkout: it answers, recommends the right product, handles doubts, adds it to the cart and points the way to pay, like your best salesperson, on every page, around the clock. A real sales booster for your shop.

It learns your products, shipping, payment options and pages by itself, then chats with each visitor in their own language and guides them to buy or get in touch. The plugin connects your site to Chat2Checkout (chat2checkout.com), the service that runs the agent.

**For WooCommerce stores**

* Product cards with photo, price, sale price and stock, right in the chat.
* Visitors pick size or colour and add to their real cart without leaving the page.
* "What's new?", "Do you deliver to my city?", "Where is my order?" answered from your own store data.
* Orders placed after chatting show up in your reports, with the revenue the chat brought in.

**For any website**

* Answers questions from your own pages and the notes you give it.
* Collects quote and booking requests for service businesses.
* "Talk to a person" buttons for your WhatsApp, phone or email.

**Built to be safe and light**

* Your API keys and store keys never sit in WordPress: the assistant runs on Chat2Checkout.
* The chat script is small and loads after your page, so it doesn't slow your site down.
* Test mode (on by default) shows the chat only to logged-in administrators until you're ready.

**Free to start**

Chat2Checkout has a free plan: the chat answers with your own AI key (a free Google Gemini key works, no card needed). Paid plans add more features, such as smarter search, photo search, voice and full reports, and plans with AI included need no AI key of your own. See [pricing](https://chat2checkout.com/#pricing).

== Installation ==

1. In WordPress, go to Plugins → Add New, search for "C2C AI Sales Agent", then Install and Activate.
2. Create a free account at [chat2checkout.com](https://chat2checkout.com/signup) and connect your website. Your dashboard shows your widget key on the Widget page.
3. Go to Settings → C2C AI Sales Agent, paste the widget key and Save.
4. Test mode is on: visit your site while logged in and try the chat. When you're happy, untick Test mode and Save.

== Frequently Asked Questions ==

= Do I need an account? =

Yes. The assistant runs on the Chat2Checkout service, so you create a free account at chat2checkout.com and paste your widget key into the plugin.

= Is there a free plan? =

Yes. On the free plan the chat answers with your own AI key (for example a free Google Gemini key). Plans with AI included don't need an AI key of your own.

= Does it work without WooCommerce? =

Yes. On any WordPress site the assistant answers from your pages and notes and can collect leads and bookings. With WooCommerce it also shows products and adds them to the cart.

= Which languages does it speak? =

It replies in the visitor's own language, including languages typed in Latin letters such as Banglish or Hinglish. The chat's buttons and labels come in 11 languages.

= My caching plugin hides the chat. =

Saving the plugin settings clears the page cache of common caching plugins and hosts. The chat script is also marked so speed plugins (LiteSpeed, WP Rocket, Autoptimize, SiteGround, Cloudflare) don't combine or delay it.

== External services ==

This plugin connects your site to the Chat2Checkout service (https://chat2checkout.com), which runs the AI sales assistant. It does nothing until you paste a widget key from your Chat2Checkout account.

* **The chat widget.** On the public pages of your site (only for administrators while Test mode is on), the plugin loads the chat script from https://chat2checkout.com/widget/v1.js. When a visitor opens or uses the chat, the chat sends their messages, any photo they attach or voice message they record, the page they are on, an anonymous visitor id (also kept in a cookie named "salesagent_vid") and, for WooCommerce, cart actions to Chat2Checkout so the assistant can answer. Contact details a visitor types into a chat form go to you, the site owner, through Chat2Checkout.
* **Your own chat images.** If you upload your own chat button or avatar image in your Chat2Checkout dashboard, visitors' browsers load that image from Chat2Checkout's file storage, which is hosted by Supabase (https://supabase.com). As with any image on a web page, the browser sends its IP address and browser details with that request; nothing else is sent. Supabase terms: https://supabase.com/terms, privacy policy: https://supabase.com/privacy
* **Order reports (WooCommerce).** When a visitor who used the chat places an order, or such an order changes status, the plugin sends the order number and your widget key to https://chat2checkout.com/api/widget/orders. Chat2Checkout then reads that order through the WooCommerce connection you set up, to show orders and revenue from the chat in your reports.

Chat2Checkout terms of service: https://chat2checkout.com/legal/terms
Chat2Checkout privacy policy: https://chat2checkout.com/legal/privacy

== Screenshots ==

1. The greeting: a short, friendly message with two suggestions appears next to the chat button.
2. The chat opens with a welcome line and quick-start cards written for your business.
3. Fashion store: size advice from the product details, a sale product card and tap-to-reply buttons.
4. Plumber: safe first steps for a leak, then a lead form that goes straight to the business.
5. Dental clinic: price and duration from the clinic's own pages, then a booking request form.
6. Spanish: the assistant answers in the shopper's own language, from your English store.
7. Bangla: typed in English letters, answered in Bangla script, with prices in the shop's currency.
8. Urdu: Roman Urdu in, Urdu script out, with a product recommendation for the shopper's skin type.
9. Hindi: an AC repair business gives a first check, a price from its own pages and a service request form.
10. Indonesian: size and fabric questions for a batik shop, answered with the right product.
11. Arabic: a perfume shop recommends a long-lasting scent for evening occasions.

== Changelog ==

= 1.6.1 =
* New settings page: a 5-step setup guide that ticks off what's done, a status badge (not connected, test mode, live), what the paid plans add, and quick help links.

= 1.6.0 =
* New name: C2C AI Sales Agent (the service it connects to is still Chat2Checkout). Your settings stay as they are.

= 1.5.1 =
* A mistyped widget key is no longer saved silently: the previous key is kept and you see a message.
* Safer one-click updates for the copy downloaded from chat2checkout.com: every detail of an update is checked first.

= 1.5.0 =
* First release on WordPress.org.
* Works on any WordPress site; WooCommerce stores get product cards, cart and order reports.
* Suggested text for your Privacy Policy page (Settings → Privacy).
* Deleting the plugin removes its settings.
* All texts can be translated.
