=== Hailbell Live Chat ===
Contributors: hailbell
Tags: live chat, chat, customer support, woocommerce, ai chatbot
Requires at least: 6.5
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

Live chat for your WooCommerce store. See who is writing and their recent orders, answer from your phone, Slack or Discord, and let AI reply first.

== Description ==

Hailbell puts a chat button on every page of your store. When a shopper writes, your team sees who they are and what they have ordered, right next to the chat, and can answer from wherever they work.

**Know who you are talking to**

* Logged-in customers are recognized. Their chat follows them from phone to laptop, and your team sees their name and email.
* Their recent orders sit next to the chat: order number, date, total, status, the items and the tracking number (with WooCommerce Shipment Tracking). One click opens the order in WooCommerce.
* See what is in the shopper's cart while they are still deciding.

**Answer from anywhere**

* The Hailbell inbox on the web and the Hailbell iPhone app, with notifications.
* Slack, Discord and Telegram: each shopper gets their own thread, and your reply goes back to the chat.
* Shoppers who left before you answered can get your reply by email.

**AI replies when nobody is around**

* AI answers first from your notes and help articles, in the shopper's language, and hands over to a person when it should.
* A public help center your shoppers and the AI both read.

**Made for a store**

* The chat matches your colors and speaks 14 languages, following your site's language or each shopper's browser.
* Hide the chat on checkout, the cart, My Account or any page.
* A "Hailbell chat" box on each order shows whether that customer has written, with a link to the chat.
* Works with WordPress's privacy tools: Export Personal Data includes a customer's chats, and Erase Personal Data deletes them in Hailbell.
* Compatible with High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.

**Pricing**

You need a Hailbell account. Connecting the plugin creates one with a 14-day free trial, no card needed. Plans start at $29 a month (Pro, up to 10,000 monthly active users) with unlimited seats and AI replies. See [hailbell.com/#pricing](https://hailbell.com/#pricing). There is a 14-day money-back guarantee on your first payment.

== Installation ==

1. Install and activate the plugin. WooCommerce must be active.
2. Go to **WooCommerce › Hailbell** and press **Connect to Hailbell**.
3. Sign in at hailbell.com with Google or an emailed link (new accounts start a 14-day free trial) and approve the connection.
4. You're back in WordPress and the chat is on your store. Pick its colors, texts, business hours and AI replies in Hailbell.

== Frequently Asked Questions ==

= Do I need a Hailbell account? =

Yes. The chat runs on Hailbell's service. Pressing Connect to Hailbell signs you in or creates your account, with a 14-day free trial and no card.

= What does my store need? =

WordPress 6.5 or later, WooCommerce 9.0 or later, PHP 7.4 or later, and a public https address. Hailbell doesn't connect to stores on plain http, an IP address or localhost.

= Where do I answer chats? =

In the Hailbell inbox at app.hailbell.com, in the Hailbell iPhone app, or in Slack, Discord or Telegram once you connect them in Hailbell.

= Which orders does my team see? =

For a shopper who was logged in when they wrote: their five latest orders, their order count and total spent. Guests' orders show only when Hailbell has confirmed their email. A shopper can't see anyone else's orders by typing an email into the chat. Orders are read from your store when a teammate opens the chat and are not stored by Hailbell.

= Does it slow down my store? =

The chat script loads after your page with the defer attribute, from Hailbell's servers. If you use a plugin that delays JavaScript, the chat shows once that plugin lets scripts run.

= Can I show the chat only on some pages? =

Yes. Hide it on checkout, the cart or My Account with one click, or list any other paths. Developers can use the `hailbell_show_chat` filter.

= Will it work with my caching plugin? =

Yes. Pages for logged-in shoppers are not normally cached, so their identity is always their own. For guests the chat works the same from a cached page.

= What happens when I disconnect or delete the plugin? =

The chat stops showing on your store and Hailbell forgets the store's connection. Your chats stay in your Hailbell account.

== External services ==

This plugin connects your store to Hailbell (https://hailbell.com), a live chat service run by Hailbell. It is needed for the chat to work.

* **The chat widget.** On the pages where the chat shows, the browser loads `https://api.hailbell.com/widget.js`. When a shopper opens or uses the chat, the widget sends Hailbell their messages and files, the name and email they give, the page they are on, their browser language and time zone, and an anonymous ID for their browser. Hailbell works out their approximate location from their connection. If the shopper is logged in, the page also passes their name, email and a signed token with their WordPress user ID. If cart context is on, it passes the number of items and the total in their cart.
* **Connecting.** When you press Connect to Hailbell, your browser goes to `https://app.hailbell.com` with your site's address, its title and the address of this settings page. Your server then sends Hailbell a one-time code together with the site address, the addresses of the plugin's order endpoint and wp-admin, and the WordPress, WooCommerce and plugin versions.
* **Orders.** When a teammate opens a chat with a recognized shopper, Hailbell calls this plugin's REST endpoint (`/wp-json/hailbell/v1/customer`), signed with your site's secret, and gets back that shopper's name, email, order count, total spent and five latest orders (number, date, status, total, up to three items, tracking numbers). Hailbell shows them and keeps them for two minutes.
* **Settings and order screens.** The WooCommerce › Hailbell page asks Hailbell for your account name, plan and the number of chats waiting. The order screen asks whether the order's customer has a chat, sending their user ID and billing email.
* **Privacy tools.** When you run Export Personal Data or Erase Personal Data for an email, the plugin sends that email (and the matching user ID) to Hailbell to export or delete their chats.
* **Disconnecting and deleting.** The plugin tells Hailbell to forget the store's connection.

Hailbell's [terms of service](https://hailbell.com/terms) and [privacy policy](https://hailbell.com/privacy).

== Screenshots ==

1. The chat on a store, with the shopper's question and the team's answer.
2. The Hailbell inbox: the chat with the shopper's recent orders next to it.
3. WooCommerce › Hailbell: connect the store and choose where the chat shows.
4. The "Hailbell chat" box on an order.

== Changelog ==

= 1.0.0 =
* First release: the chat on your store, recognized logged-in customers, recent orders and cart next to each chat, the order screen box, page rules and WordPress privacy tools.

== Upgrade Notice ==

= 1.0.0 =
First release.
