=== Chattiv ===
Contributors: socialpoints
Tags: live chat, chat, ai chatbot, customer support, chat widget
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live chat for your website, with an optional AI assistant that answers from your own content and hands off to you when a person is needed.

== Description ==

Chattiv puts a fast, friendly chat on your WordPress site and sends every conversation to one inbox you can answer from your computer or phone.

**Connect in one click.** Install the plugin, click Connect to Chattiv, sign in or create a free account, and the chat is live. No code to copy.

**Human chat first.** New chats ring your team, with push alerts and a doorbell sound on your phone and computer, so nobody waits.

**Ava, the optional AI assistant.** Turn on Ava to answer common questions around the clock, using only your own website, FAQ answers and documents. She never invents prices or policies, always says she's an AI, and hands the chat to you, with a summary, the moment a person is needed. Choose when she helps: as backup when you're busy, after hours only, or first in line.

**Never miss a chat.** When nobody is around, visitors leave their email and your reply reaches them by email.

**Light on your site.** The chat is about 13 KB, loads after your page has finished loading, and never slows your site down.

Also included:

* Shared team inbox with private notes and saved replies
* See who's on your site and which page they're on (paid plans)
* Choose your color, greeting and position
* Hide the chat on specific pages or content types
* Optionally pass signed-in users' name and email, for membership sites and stores
* Connect your own AI through the Chattiv Agent API

Chattiv has a free plan. Paid plans add more websites, teammates, visitor details and Ava. See [chattiv.com/pricing](https://chattiv.com/pricing).

== External services ==

This plugin connects your site to Chattiv (https://chattiv.com), a live chat service operated by Social Points Media LLC. A Chattiv account is required; the free plan is enough. Nothing is sent to Chattiv until you connect the plugin.

* **The chat widget (visitors' browsers, on pages where the chat is shown).** The browser loads the widget script from https://app.chattiv.com/widget.js, sends and receives chat messages through the widget API at https://app.chattiv.com/widget/v1/, and receives new messages in real time over a secure WebSocket connection to wss://ws.chattiv.com. It sends the messages a visitor types, any files they choose to send, the page they are on, their browser time zone and a random visitor id. Only if you turn on "send signed-in users' name and email" are the name and email of a signed-in WordPress user sent too.
* **Connecting (your browser, when you click Connect to Chattiv).** You are taken to https://app.chattiv.com/connect/wordpress with your site's address, site name and the address of this settings page, so you can choose the website and be sent back here.
* **Status check (your server, when you open the settings page).** The plugin asks https://app.chattiv.com/widget/v1/sites/{site key}/config whether the chat is allowed on your site's address. It sends only the site key and your site's address.

Terms of Service: https://chattiv.com/terms
Privacy Policy: https://chattiv.com/privacy
Data Processing Addendum: https://chattiv.com/dpa

== Installation ==

1. Install and activate the plugin from Plugins, Add New (search for "Chattiv"), or upload the zip.
2. You're taken to Settings, Chattiv. Click **Connect to Chattiv**.
3. Sign in to Chattiv or create a free account, choose (or create) the website, and you're sent back. The chat is now live.

Prefer to paste a key? On the same page, paste the site key from your website's Install tab in Chattiv.

== Frequently Asked Questions ==

= Is Chattiv free? =

Yes, there's a free plan with one website and one team seat. It includes a free trial of Ava, the AI assistant. Paid plans start at $19 a month.

= Do I have to use the AI assistant? =

No. Chattiv is live chat first. Ava is off until you turn her on, and you choose when she answers.

= Will visitors know they're talking to an AI? =

Always. AI messages carry an AI badge, Ava says she's an AI assistant, and a "Talk to a person" button is always visible.

= Will it slow down my site? =

No. The chat loads after your page has finished loading and is about 13 KB.

= Can I hide the chat on some pages? =

Yes. In Settings, Chattiv, hide it on whole content types or on specific pages by ID. Developers can also use the `chattiv_show_widget` filter.

= Where do I answer chats? =

In the Chattiv inbox at app.chattiv.com, which you can also install on your phone for push alerts.

== Screenshots ==

1. Connect to Chattiv in one click.
2. Connected: the chat is live, with links to your inbox and settings.
3. The chat on your website, with Ava, the optional AI assistant.
4. The Chattiv inbox, on desktop and phone.

== Changelog ==

= 1.0.2 =
* The settings page's CSS and JavaScript now load from files with wp_enqueue_style and wp_enqueue_script, only on that page. No inline style or script blocks remain.

= 1.0.1 =
* Readme: every external endpoint named, with the Data Processing Addendum linked. Plugin URI now points to the WordPress setup guide.

= 1.0.0 =
* First release: one-click connect, chat on every page, hide by content type or page, optional signed-in user details.
