=== AI Agent Chat - Jotform ===
Contributors: wpfixit
Tags: AI, chatbot, Jotform, live chat
Requires at least: 5.5
Tested up to: 6.8
Stable tag: 1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Displays a chat image on your website to initiate a JotForm AI chat.

== Description ==

This plugin allows you to display a Jotform AI chat agent on your WordPress site.

You can configure your Agent ID in **Settings > AI Agent Chat**.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings > AI Agent Chat** and configure your Agent ID.
4. Adjust settings to your desire.

== Frequently Asked Questions ==

= Can I use multiple agent IDs? =

No, this version supports a single global Agent ID. Multi-agent support may be added in future releases.

= Where does the chat open? =

The chat opens in a modal powered by Jotform s embedded agent interface.

== Screenshots ==

1. Settings page for configuring your AI Agent ID.
2. Frontend view of the chat button.

== Changelog ==

= 1.5 =
* Added settings page with many options

= 1.0.1 =
* Updated script loading to use wp_enqueue_script and wp_add_inline_script.
* Documented external service usage (Jotform).
* Fixed filename convention.

= 1.0.0 =
* Initial release.

== External Services ==

This plugin connects to Jotform's embedded agent service to display the AI chat interface.

It sends the configured agent ID to Jotform when a visitor clicks the chat button to initiate a session. This is required for the embedded agent interface to work.

Service Provider: [Jotform](https://www.jotform.com)  
Terms of Service: https://www.jotform.com/terms/  
Privacy Policy: https://www.jotform.com/privacy/
CDN Provider: https://cdn.jotfor.ms/

== Upgrade Notice ==

= 1.0.1 =
Improved script handling, fixed naming issues, and added external service disclosure.

= 1.5 =
Added settings page with many options.