=== Zalu – KI-Website-Assistent ===
Contributors: jonasilas
Tags: chatbot, ai, assistant, support, chat
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.6.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI chat assistant for your website that answers visitor questions strictly from your own content. Connects to the Zalu service (zalu.ai).

== Description ==

Zalu embeds an AI chat widget on your website. The assistant answers visitor questions **exclusively based on your own website content** (no hallucinated answers), in the visitor's language, and links directly to the matching page or product.

**This plugin relies on the third-party service zalu.ai.** A Zalu account is required (a free plan is available). All configuration — appearance, content ingestion, analytics, lead forms — happens in the Zalu dashboard; the plugin itself only connects your site and loads the widget.

How it works:

1. Install and activate the plugin.
2. Go to Settings → Zalu and click "Mit Zalu verbinden" (Connect with Zalu).
3. Sign in (or register) at Zalu and confirm — done. The site key is stored automatically.

Without a connected site key, no widget is loaded and no data is sent anywhere.

**Für deutschsprachige Nutzer:** Zalu ist ein KI-Chat-Assistent aus Deutschland. Er beantwortet Besucherfragen ausschließlich aus deinen eigenen Website-Inhalten, mehrsprachig und ohne Tracking-Cookies. Plugin installieren, „Mit Zalu verbinden" klicken, fertig.

== Installation ==

1. Upload the `zalu-ai` folder to `/wp-content/plugins/` (or install the ZIP via Plugins → Add New → Upload Plugin).
2. Activate the plugin.
3. Go to Settings → Zalu and click "Mit Zalu verbinden" — sign in, done.

If you previously used the plugin under its old name (ki-website-assistent), your stored site key is migrated automatically; please deactivate and remove the old plugin.

== Frequently Asked Questions ==

= Does the widget set cookies? =

No. The widget does not set cookies. It stores a pseudonymous identifier in the browser's local storage to operate the chat (recognizing the visitor within a session, abuse protection). There is no cross-site tracking.

= Where is the data processed? =

By Zalu (hosted in Germany); answers are generated using Google's Gemini API. Details: https://zalu.ai/datenschutz (privacy policy) and https://zalu.ai/avv (data processing agreement).

= Do I need technical knowledge? =

No. Install the plugin, click "Mit Zalu verbinden" — setup takes a few minutes.

= Is a paid subscription required? =

A Zalu account is required; a free plan is available. Paid plans add higher limits and additional features.

== External services ==

This plugin relies on the third-party service **zalu.ai** and, without it, provides no functionality.

**1. Zalu (the service this plugin connects to)**

* What it is: Zalu (https://zalu.ai) provides the AI chat assistant embedded by this plugin.
* What data is sent and when: When a page with the active widget loads, the widget JavaScript is fetched from your Zalu app domain (default app.zalu.ai) together with your public site key. When a visitor sends a chat message, the message content, a pseudonymous visitor identifier, and page/domain information are transmitted to Zalu to generate the answer. During the one-click connect flow, your site URL and a one-time code are exchanged with Zalu to obtain the site key.
* Provider and terms: Zalu — Terms: https://zalu.ai/agb · Privacy policy: https://zalu.ai/datenschutz · Data processing agreement: https://zalu.ai/avv

**2. Google Gemini (subprocessor used by Zalu)**

* Zalu generates answers with Google's Gemini API; chat content is transmitted to Google for this purpose.
* Terms: https://ai.google.dev/terms · Privacy: https://policies.google.com/privacy

No external service is contacted before a Zalu account is connected (no site key → no widget, no requests).

== Screenshots ==

1. The settings page with "Mit Zalu verbinden" (Connect with Zalu).
2. The chat widget on a website.

== Changelog ==

= 0.6.1 =
* Settings page moved under Settings → Zalu (review feedback: no top-level admin menu).
* Contributors field completed.

= 0.6.0 =
* Renamed to slug `zalu-ai` (text domain, folder, main file); site keys from the previous plugin name are migrated automatically.
* Widget loader is now enqueued via `wp_enqueue_script` (async, site key as data attribute) instead of printing a script tag.
* All user-facing strings are internationalized (text domain `zalu`).
* Added `uninstall.php` (removes stored options on uninstall).
* English readme with the required external-services disclosure.

= 0.5.0 =
* More robust "Connect with Zalu" flow (server-to-server code exchange).
* Readme updated for the WordPress.org directory: disclosure of external services (Zalu, Google Gemini).

= 0.4.0 =
* New: one-click "Connect with Zalu" onboarding (login redirect), no manual key entry.
* Rebranded to "Zalu"; default app URL app.zalu.ai.

= 0.3.0 =
* Simplified setup: only the site key is required.
* Appearance (color, greeting, position) comes from the dashboard automatically.

= 0.2.0 =
* Settings view with live preview, color picker, position, greeting, CTA button.

= 0.1.0 =
* Initial version: settings page + automatic widget embedding.

== Upgrade Notice ==

= 0.6.1 =
The settings page now lives under Settings → Zalu.

= 0.6.0 =
Plugin slug changed to `zalu-ai`. Install this version, then deactivate/remove the old `ki-website-assistent` plugin — your site key is migrated automatically.
