=== onlyAI Chat Widget ===
Contributors: onlyai
Tags: chatbot, ai, customer support, multilingual
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 5.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Thin WordPress embed for the onlyAI assistant. The chat widget itself is
served from your onlyAI backend; this plugin only injects the loader
script with the right configuration.

== What's new in 5.0 ==

* Renamed to **onlyAI Chat Widget**. The widget works for any kind of
  business — shops, services, coaches, tutors, rentals, support desks —
  not just vacation rentals.
* **Breaking change — update your shortcode.** The shortcode is now
  [onlyai_chat_widget]. If you used the previous plugin's shortcode on any
  page, replace it with this one after upgrading.
* **Re-enter your settings.** 5.0 is a clean rename, so the old saved
  settings are not carried over. After activating, open
  Settings -> onlyAI Chat Widget and set your bot slug, display mode, and
  language again.

== Earlier versions ==

4.2.x added multi-language support (reply language configurable: the bot's
source language, auto from the WordPress locale, or a fixed EN/EL/DE/IT/FR)
and a security pass that removed unused bundled PHP.

== Setup ==

1. Plugins -> Add New -> Upload Plugin -> upload this ZIP.
2. Activate the plugin.
3. Settings -> onlyAI Chat Widget.
4. Enter your bot slug (e.g. my-bot-abc123) and pick a language mode.
5. Save. The widget appears on every page (Global mode) or only where
   you place [onlyai_chat_widget] (Shortcode mode).

== Language ==

Settings -> onlyAI Chat Widget -> Language:

* Use the bot's source language (default) — matches the widget to whatever
  language the bot was set up in.
* Auto (use WordPress site language) — reads get_locale(); a Greek site
  gets Greek replies, an English site English.
* Or force a specific language: EN / EL / DE / IT / FR.

Per-page override via shortcode:

    [onlyai_chat_widget language="el"]          — force Greek on this page
    [onlyai_chat_widget language="auto"]        — auto-detect on this page
    [onlyai_chat_widget bot_slug="other-bot"]   — load a different bot here

The bot only answers in languages your backend has been configured to
support (currently English, Greek, German, Italian, French). If you choose
"Auto" and the WordPress site is in an unsupported locale, the widget falls
back to the bot's source language.

== Privacy & data ==

This plugin does NOT collect or store any visitor data on your WordPress
site. Chat traffic goes directly from the visitor's browser to your onlyAI
backend (https://app.onlyai.ch). The plugin is just a thin script-tag
emitter.
