=== Pong Chat ===
Contributors: m3tatag
Tags: live chat, chat, support, helpdesk, 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

Live chat widget for your site. Logged-in users keep one chat history on every device.

== Description ==

Pong is a live chat for websites: a light widget for visitors and a desk for your team, with an AI assistant, calls, screen sharing, and Telegram, WhatsApp, Messenger and Instagram in the same inbox.

This plugin adds the Pong widget to every page of your WordPress site:

* one field to fill in: your workspace's public key;
* logged-in users are recognised by name and email;
* with the identity secret they are verified: their chats from every browser and device are one conversation;
* button style, position and color without touching code;
* the widget can be hidden from your own team;
* the loader is asynchronous and does not slow the page down.

You need a Pong workspace: create one at [pong.ee](https://pong.ee/).

== External services ==

This plugin loads the Pong chat widget from Pong's servers (`js.pong.ee`, `chat.pong.ee`, `app.pong.ee`, `files.pong.ee`). Without it there is no chat.

On every page where the widget is shown, the visitor's browser connects to Pong and sends the page address, referrer, browser data and the messages the visitor writes. When "Tell Pong who is writing" is on, the name, email and user id of a logged-in user are sent too, with a signature made from your identity secret (the secret itself never leaves your server).

Service provider: Pong. [Terms of service](https://pong.ee/terms/), [privacy policy](https://pong.ee/privacy/).

== Installation ==

1. Install and activate the plugin.
2. In Pong open Settings → Install and copy the public key.
3. In WordPress open Settings → Pong Chat, paste the key and save. The widget is on the site.
4. Optional: copy the identity secret from Settings → API keys in Pong to verify logged-in users.

== Frequently Asked Questions ==

= Where do I get the keys? =

In your Pong workspace at app.pong.ee: the public key in Settings → Install, the identity secret in Settings → API keys.

= Does it work with page caching? =

Yes. Pages for guests are the same for everyone. Pages for logged-in users carry a signature and are normally not cached by caching plugins.

= Can I change other widget options? =

Yes, with the `pong_chat_setup` filter. All options: https://pong.ee/docs/setup-options/

`add_filter( 'pong_chat_setup', function ( $setup ) {
	$setup['language'] = 'en';
	return $setup;
} );`

= The same workspace serves another site with its own user ids =

Change the id users are known by with the `pong_chat_userhash` filter (default `wp-<user id>`).

== Screenshots ==

1. The chat widget on a site. A logged-in customer is recognised, so the team sees who is writing.
2. Settings → Pong Chat: the public key, the identity secret and the look of the button.

== Changelog ==

= 1.0.0 =
* First release.
