=== Tespondo Connect ===
Contributors: chukwuma247
Tags: voice, chat, ai, customer support, woocommerce
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Voice calls, AI chat and visitor insights for your WordPress website. Connect your account and start conversations with visitors.

== Description ==

Tespondo Connect lets you connect your WordPress site to the [Tespondo](https://tespondo.com) AI platform in seconds.

**Features:**

* One-click connection — log in to Tespondo and your site is linked automatically
* Automatically reads your pages, posts and WooCommerce products to build a knowledge base
* AI-powered chat widget injected on every page via `wp_footer` — no code needed
* Voice agent capabilities for phone-based customer support
* Works with or without WooCommerce

**How it works:**

1. Install and activate the plugin.
2. Open **Tespondo Connect** in the WordPress admin menu and click **Connect to Tespondo**.
3. Log in to your Tespondo account (or create one for free).
4. Your knowledge base is automatically generated from your site content.
5. The chat widget goes live immediately.

**Third-Party Service Notice:**

This plugin connects your WordPress site to the Tespondo platform ([https://tespondo.com](https://tespondo.com)), an external AI service. When you activate this plugin and connect your site:

* Your site URL, name, and admin email are shared with the Tespondo server to establish the connection.
* Your published pages, posts, and WooCommerce products (if applicable) are read by the Tespondo server to generate an AI knowledge base.
* A chat widget script hosted on the Tespondo server is loaded on your site's front end.
* Visitor interactions with the chat widget are processed by the Tespondo server.

The Tespondo server is located at [https://dev.tespondo.com](https://dev.tespondo.com).

By using this plugin, you agree to Tespondo's:

* [Terms of Service](https://tespondo.com/terms)
* [Privacy Policy](https://tespondo.com/privacy)

== Installation ==

1. Upload the `tespondo-connect` folder to `/wp-content/plugins/`.
2. Activate the plugin in **Plugins → Installed Plugins**.
3. Open **Tespondo Connect** in the admin menu to connect your site.

== Frequently Asked Questions ==

= Do I need a Tespondo account? =
Yes. You can create a free account at [https://tespondo.com](https://tespondo.com).

= Does this work with WooCommerce? =
Yes. When WooCommerce is active, the plugin automatically imports your products into the AI knowledge base.

= Are voice calls enabled automatically? =
New WordPress agents have voice enabled through the compatible Tespondo backend. Reconnecting an existing agent preserves its current settings. Manage voice availability in the Tespondo builder. Calls depend on account allowances and visitor microphone permission.

= Does installing the plugin send an installation tracking event? =
No standalone install event is sent on activation. The connection is recorded when an administrator connects the site. While connected, the website loads Tespondo's widget and visitor activity reporting.

= What visitor activity does Tespondo process? =
Page URLs, referrers, browser and device information, approximate location based on IP, activity and widget interactions may be processed by the Tespondo service. Voice and chat interactions are handled by Tespondo. Describe the service in your site's privacy notice and configure consent as appropriate for your site.

= Why has my connection link expired? =
Connection links last 15 minutes. Return to Tespondo Connect in WordPress to start again.

= What happens on deactivation or deletion? =
The plugin revokes its local integration credentials, stops loading its widget and attempts to notify Tespondo. This does not delete your Tespondo account or historical records.

= What data is sent to Tespondo? =
Your site URL, name, admin email, and published content (pages, posts, products) are sent to generate an AI knowledge base. See the Description tab for full details.

= How do I disconnect? =
Open **Tespondo Connect** and click **Disconnect**. This revokes this plugin's integration credentials and removes its website widget.

== Screenshots ==

1. The settings page before connecting — one-click setup.
2. The dashboard after connecting — live stats, traffic sources, conversations.
3. The chat widget on your site's front end.

== Changelog ==

= 1.1.4 =
* Add an administrator-authorised Reconnect button for refreshing the connection and adding WooCommerce store access later.
* Explain that WooCommerce is optional for calls, chat and website knowledge.
* Preserve the installed widget while reconnecting; generate read-only store keys when WooCommerce is active.

= 1.1.3 =
* Use the Tespondo T brand mark in the WordPress admin menu.

= 1.1.2 =
* Fix the missing Chats This Week calendar icon after WordPress HTML sanitization.
* Preserve explicit stat icon dimensions.

= 1.1.1 =
* Isolate plugin constants and asset handles to prevent stylesheet, script and image URL conflicts with other Tespondo plugins.

= 1.1.0 =
* Enable voice for newly created WordPress agents through the compatible backend; preserve existing agent settings on reconnect.
* Report widget activation errors instead of showing a false connected state.
* Update chat, call and online visitor metrics through the compatible backend.
* Show connection and voice availability in the plugin dashboard.
* Expire unused connection links after 15 minutes and validate the connecting administrator.
* Revoke the correct administrator's Application Password on disconnect, deactivation and deletion.
* Refresh the plugin branding and banners.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.4 =
Adds Reconnect for sites that install WooCommerce after connecting. Update the plugin without uninstalling, then use Reconnect to authorise store access.

= 1.1.1 =
Fixes plugin asset conflicts. Upload this ZIP and choose Replace current with uploaded; no uninstall is needed.

= 1.1.0 =
Improves connection handling, reporting and cleanup. Existing agents keep their voice settings. Deactivating the plugin now clears its connection; reconnect after reactivation.

= 1.0.0 =
Initial release.
