=== Engadi AI Agent ===
Contributors: luisfer007
Tags: chat, ai, chatbot, assistant
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add the Engadi AI chat assistant to your WordPress site by pasting your agent token.

== Description ==

This plugin adds the Engadi AI chat bubble to every page of your WordPress site.
Visitors click the bubble and chat with your AI agent — answers are grounded in
your own knowledge base, managed for you by Engadi (https://engadi.com).

The plugin only prints the official Engadi widget loader tag in your site's
footer. It makes no remote calls from PHP and stores only two options: your
agent token and an optional chat language.

You need an active Engadi AI agent to use this plugin. Your agent token
(it looks like `wgt_XXXX`) is in your Engadi portal or onboarding email.

== External services ==

This plugin connects your site to the Engadi AI service (https://engadi.com).
It does not work without it.

What it does: the plugin prints a script tag that loads the official Engadi
widget loader from `https://www.engadi.com/widget.js` in your visitors' browsers.
When a visitor clicks the chat bubble, the widget opens a chat window (an
iframe served from engadi.com) connected to your Engadi AI agent.

What data is sent, and when: the chat messages a visitor types are sent to
Engadi's servers to generate the agent's answers, together with the technical
data needed to serve and protect the service (the visitor's IP address for
rate limiting, and your agent token to identify which agent answers). This
only happens on pages where the widget is active; the plugin itself sends
nothing from your server via PHP.

Service provider: Engadi (https://engadi.com).
Terms of service: https://engadi.com/terms
Privacy policy: https://engadi.com/privacy

You are responsible for disclosing the use of this service to your visitors
in your own privacy policy, as required by laws such as the GDPR.

== Installation ==

1. In your WordPress admin, go to Plugins → Add New → Upload Plugin.
2. Choose the `engadi-ai-agent.zip` file and click "Install Now", then "Activate".
3. Go to Settings → Engadi AI Agent.
4. Paste your agent token (from your Engadi portal or onboarding email) and save.
5. Optionally pick a chat language (English, Español, Français, Italiano, Português).

The chat bubble now appears on your site. To remove it, clear the token or
deactivate the plugin.

== Frequently Asked Questions ==

= Where do I find my agent token? =

In your Engadi portal (https://engadi.com/dashboard/agents) or in your
onboarding email. Need help? See https://engadi.com/docs/install or
contact us.

= What visitor data does the widget process? =

Chat messages typed into the widget are processed by Engadi to generate
answers, along with the visitor's IP address (rate limiting / abuse
prevention). Nothing is sent from your WordPress server itself. See the
"External services" section and https://engadi.com/privacy for details.

= The bubble doesn't show up =

Make sure the token is saved and correct, and that your site's cache (if you
use a caching plugin) has been cleared. See the troubleshooting section at
https://engadi.com/docs/install.

== Screenshots ==

1. Settings → Engadi AI Agent: paste the agent token, optionally pick a chat language.

== Changelog ==

= 1.0.3 =
* Change: the widget loader is now registered through wp_enqueue_script()
  instead of being printed directly into the footer. No visible change; it
  is the form WordPress expects, and the directory's Plugin Check flags the
  printed tag as an error.

= 1.0.2 =
* Fix: the widget loader is now served from https://www.engadi.com (the
  canonical host) instead of the apex domain, avoiding a redirect on every
  page load.

= 1.0.1 =
* Fix: documentation/support links no longer use the /en/ URL prefix (they
  404'd for visitors whose language wasn't English; unprefixed URLs redirect
  to each visitor's own language).

= 1.0.0 =
* Initial release: settings page (token + optional language), footer loader tag.
