=== Aius Chat ===
Tags: chatbot, chat, aius
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Install the Aius website chat widget with your public bot key. Danish and English admin; the chat uses the bot's language from Aius or one you choose.

== Description ==

An Aius account and a configured bot are required. This plugin adds the same async widget script as the manual installation in Aius, enqueued in the footer of public pages. Configure the bot, sources, appearance and allowed domains in Aius, not in WordPress.

Disabled by default. No extra branding, analytics or tracking is added by the plugin. The widget's own attribution and service behavior are unchanged. PHP makes no external requests. This pilot is not submitted to WordPress.org.

== External services ==

When the administrator enables chat, every public page with the theme's wp_footer hook loads https://aius.dk/widget.js and its widget parts in the visitor's browser. The browser contacts Aius for bot configuration and chat; visitor messages and any information visitors submit in the widget are sent to Aius. Normal network requests disclose IP address and browser headers. The plugin stores only the public key, language and enabled flag in WordPress. No account secret belongs here.

Service: https://aius.dk
Terms: https://aius.dk/terms
Privacy: https://aius.dk/privacy

The site owner must review these terms and their site's privacy/consent requirements before enabling the external service.

== Installation ==

1. Download aius-chat.zip from https://aius.dk/integrationer/wordpress and upload it using Plugins > Add New Plugin > Upload Plugin, then activate.
2. In Aius, make sure this website's address is a source for the bot or is listed under approved domains. Aius does not answer on unknown websites; the chat only shows a notice there.
3. Open Settings > Aius Chat. The link Find your key in Aius opens Aius > Install, where the public key is shown. If you have more than one bot, choose this website's bot first. Paste the key (it starts with pk_), enable chat and save. The chat uses the bot's language from Aius unless you choose Danish, English, Swedish, Norwegian or German. You can also paste the whole embed snippet; the key is stored, and so is any data-lang in it unless you choose a language.
   If the key is not valid, nothing is saved and the previous settings stay in place.
4. Remove any manually installed Aius snippet and clear page caches. Verify the public homepage.
5. To remove settings, deactivate and delete the plugin in WordPress.

== Frequently Asked Questions ==

= Does this import WordPress or WooCommerce content? =
No. This slice only installs the existing widget.

= Why is chat missing? =
First check that this website's address is a source for the bot or an approved domain in Aius. Then check the key and enabled flag, clear caches, confirm the theme calls wp_footer, and check email verification, sources and quota in Aius. CSP or script optimization plugins can block the widget. Do not install both the manual snippet and this plugin.

= Does WordPress update the plugin? =
No. The plugin is not in the WordPress.org directory. Its Update URI header tells WordPress not to look for updates there. Download new versions from https://aius.dk/integrationer/wordpress.

= Does it support multisite network activation? =
Not in this pilot. Use on a single WordPress site; network administration and cleanup across sites require separate validation.

== Changelog ==

= 0.1.0 =
Initial installation pilot, not a public directory release.
