=== CommFlow ===
Contributors: commflow
Tags: live chat, support forum, crm, woocommerce, lead capture
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live chat, a support forum and LeadFlow CRM for your WordPress site, connected to your CommFlow workspace.

== Description ==

CommFlow brings your team's conversations together. This plugin connects your WordPress site to your CommFlow workspace:

* **Live chat.** Add your CommFlow chat widget to every page with one-click connection, and answer visitors from CommFlow on the web or the mobile app. Pick which of your widgets the site shows.
* **Support forum.** Put a support forum on any page with the `[commflow_forum]` shortcode. New topics arrive in your CommFlow inbox, where your team answers them.
* **LeadFlow CRM.** Send what people do on your site to LeadFlow, CommFlow's CRM: Email Lock sign-ups and purchases from WordPress Download Manager, WooCommerce orders, and new registrations. New people are added as leads, buyers can become customers, and each source can enrol people in a LeadFlow email sequence.

Everything is set up under Settings → CommFlow, in one tab per feature.

= LeadFlow =

* Paste a LeadFlow API key (CommFlow → LeadFlow → API → New key). Needs a CommFlow Professional plan or higher.
* Choose what to send:
  * WPDM Email Lock sign-ups;
  * WPDM Premium Packages purchases and renewals;
  * WooCommerce orders (once paid, or when marked completed);
  * new user registrations.
* For each source, choose whether buyers are marked as customers and which sequence to enrol people in.
* Events go out in the background, so visitors never wait, and are retried for about an hour if CommFlow can't be reached. The settings screen lists the latest deliveries.

== Installation ==

1. Upload the plugin and activate it.
2. Go to Settings → CommFlow and click "Connect with CommFlow" on the Live chat tab.
3. For the forum, copy the forum API key from CommFlow → Settings → Inbox → your inbox → Forum and paste it on the Forum tab.
4. For LeadFlow, make an API key in CommFlow → LeadFlow → API and paste it on the LeadFlow tab.

== Frequently Asked Questions ==

= Do I need a CommFlow account? =

Yes. The plugin connects your site to a CommFlow workspace (https://commflow.io).

= Does it work with WooCommerce HPOS? =

Yes. Orders are read through WooCommerce's order API, and the plugin declares compatibility with High-Performance Order Storage.

= Is anything sent while a visitor waits? =

No. LeadFlow events are queued and sent moments later in the background.

== Screenshots ==

1. Live chat: the connected workspace and the chat widget this site shows.
2. Forum: the inbox's forum key, the forum's colour and its shortcode.
3. LeadFlow: what to send, with an "Enrol in sequence" choice per source.
4. LeadFlow: the latest deliveries to CommFlow.

== Changelog ==

= 1.2.0 =
* New: LeadFlow tab. Sends WPDM Email Lock sign-ups, WPDM purchases and renewals, WooCommerce orders and new registrations to LeadFlow, CommFlow's CRM, and can enrol people in a sequence.
* New: WooCommerce orders as a LeadFlow source, with High-Performance Order Storage compatibility.
* New: redesigned settings screen, with tabs for Live chat, Forum and LeadFlow.
* Security: the forum now takes the forum API key you paste from CommFlow (Settings → Inbox → Forum) instead of fetching it. Forums already set up keep working; when you regenerate the key in CommFlow, paste the new one on the Forum tab.

= 1.1.0 =
* Choose which of your workspace's chat widgets the site shows.
* Support forum with the `[commflow_forum]` shortcode.
