=== TAPNET AI Chatbot ===
Contributors: tapnet2
Tags: chatbot, ai chatbot, live chat, lead generation, customer support, analytics
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress site to TAPNET AI Chatbot, TAPNET Lead Intel, or both.

== Description ==

TAPNET AI Chatbot connects a WordPress site to TAPNET widgets using tokens from your TAPNET account.

Use the plugin to install:

* AI Chatbot + Lead Capture: load the TAPNET-powered website chatbot, answer visitor questions, collect lead details, and route conversations through TAPNET Lead Engine.
* Lead Intel Tracker: add the free TAPNET Lead Intel tracker so TAPNET can report page, referrer, and website opportunity signals.
* Both: run the Lead Intel tracker and the AI chatbot together.

The plugin does not include TAPNET's AI service locally. It loads TAPNET service scripts after a site administrator enables the plugin and saves the required token for the selected widget type.

= External Service Disclosure =

This plugin connects to TAPNET services at `https://tapnet.com`.

For the chatbot, the plugin loads:

`https://tapnet.com/modules/addons/tapnet_assistant/assets/site-loader.js`

The chatbot loader resolves the saved install token through TAPNET and may send the following data to TAPNET so the service can respond to visitors and create lead records:

* Install token
* Page URL and page title
* Referrer and UTM/source information
* Visitor chat messages
* Optional visitor name, email, and phone when entered by the visitor
* Basic browser/session context needed to operate the widget

For Lead Intel, the plugin loads the TAPNET Lead Intel widget endpoint:

`https://tapnet.com/index.php?m=tapnet_lead_intel`

The Lead Intel tracker may send lightweight website intelligence signals such as page URL, page title, and referrer so TAPNET can build the site's free Lead Intel report.

A TAPNET account and the required widget token are needed. Review TAPNET's terms and privacy policy before enabling the plugin.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/tapnet-ai-chatbot`, or install the plugin zip from the WordPress admin plugin screen.
2. Activate the plugin.
3. Go to Settings > TAPNET AI Chatbot.
4. Choose a Widget Type: AI Chatbot + Lead Capture, Lead Intel Tracker, or Both.
5. Paste the required TAPNET token for the selected widget type.
6. Check Enable TAPNET Widget.
7. Save the settings and refresh the public website.

== Frequently Asked Questions ==

= Do I need a TAPNET account? =

Yes. This plugin connects WordPress to TAPNET services and requires the appropriate TAPNET token for the widget you enable.

= Can I use only the free Lead Intel tracker? =

Yes. Choose Lead Intel Tracker as the Widget Type and paste the Lead Intel token from your TAPNET Lead Intel report.

= Can I run the chatbot and Lead Intel tracker together? =

Yes. Choose Both and provide both the chatbot install token and the Lead Intel token.

= Does this plugin send data to TAPNET? =

Yes. After the site administrator enables the plugin and saves a token, the plugin loads TAPNET service scripts from `tapnet.com`. The chatbot can send page context and visitor conversation data so it can respond. The Lead Intel tracker sends lightweight page and referrer signals for reporting.

= Can I hide the widgets on specific pages? =

Yes. Add one URL path per line in the Hide On Paths setting.

= Is the TAPNET footer credit required? =

For the chatbot, the TAPNET footer credit/link is controlled by the optional TAPNET Footer Credit setting and TAPNET service configuration. Lead Intel free tracker attribution is controlled by TAPNET Lead Intel.

== Screenshots ==

1. TAPNET AI Chatbot settings page in WordPress.
2. TAPNET chatbot displayed on a public website.
3. TAPNET Lead Intel tracker option in the plugin settings.

== Changelog ==

= 1.0.5 =
* Added Widget Type setting for AI Chatbot, Lead Intel Tracker, or Both.
* Added Lead Intel token support and loader.
* Updated TAPNET service links from the old account subdomain to tapnet.com.
* Updated external service disclosure for chatbot and Lead Intel data flows.

= 1.0.4 =
* Added TAPNET subscription and Web Chat setup links to the plugin settings page.
* Added external service disclosure to support WordPress.org review requirements.
* Added optional TAPNET footer credit control.

= 1.0.3 =
* Made chatbot loading disabled by default until configured.
* Added install token setting.
* Added path exclusions.

= 1.0.0 =
* Initial TAPNET AI Chatbot installer plugin.
