=== Eloquent Chatbot ===
Contributors: jeromkok
Tags: chatbot, ai, eloquent, embed, integration
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 1.2.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Inject an Eloquent AI chatbot into your WordPress site by configuring a Domain Identifier.

== Description ==
Eloquent Chatbot allows site owners to add an Eloquent AI chatbot to their WordPress website by entering a Domain Identifier provided by Eloquent.

The plugin automatically generates and loads the required embed script in the HTML head using WordPress enqueue methods and applies the `defer` attribute for optimal performance.

No custom JavaScript needs to be added manually.

Learn more about Eloquent at https://eloquent.chat.  
Full WordPress setup guide: https://eloquent.chat/ai-chatbot-for/wordpress

== External services ==
This plugin integrates with the Eloquent AI platform by loading a JavaScript snippet from eloquent.chat.

What the service is and what it is used for:
- Eloquent (eloquent.chat) provides the AI chatbot widget that is displayed on the website.

What data is sent and when:
- When the plugin is configured, the visitor’s browser requests a JavaScript file from eloquent.chat on each page load where the plugin is active.
- If a visitor interacts with the chatbot, chat messages and related metadata are sent directly from the visitor’s browser to eloquent.chat in order to provide the chatbot functionality.

Terms of Service:
https://eloquent.chat/terms-of-service

Privacy Policy:
https://eloquent.chat/privacy-policy

== Installation ==
1. Install and activate the plugin.
2. Go to **Settings → Eloquent Chatbot**.
3. Enter your **Agent Domain Identifier**.
4. Save changes.

== Frequently Asked Questions ==

= Where do I find the Domain Identifier? =
Log in to your Eloquent account, open your AI agent, and go to **Deploy** in the agent menu.

In the Agent snippet, you will see a URL similar to:

`https://eloquent.chat/api/snippet?domain-identifier=YOUR_DOMAIN_IDENTIFIER`

Copy **only** the value after `domain-identifier=`  
Paste that value into the plugin settings.

= Does this plugin allow custom JavaScript? =
No. For security reasons, the plugin only accepts a Domain Identifier and generates the embed script automatically.

= Does this load on admin pages? =
No. The chatbot script is only loaded on the public front-end of the site.

== Changelog ==
= 1.2.0 =
* Changed configuration to use a Domain Identifier instead of arbitrary script input.
* Automatically generate and enqueue the embed script.
* Improved security and WordPress.org compliance.
* Updated documentation and external service disclosure.
