=== Glosia Widget ===
Contributors: mdaffailhami
Tags: chatbot, AI, customer service, widget, live chat
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrate the Glosia AI chatbot into WordPress effortlessly. Paste your Glosia Dashboard snippet and the widget is instantly active after compatibility validation.

== Description ==

**Glosia Widget** is the official WordPress plugin that allows you to install the Glosia AI chatbot on your website in just seconds — without editing any HTML code.

**How it works:**

1. Configure the widget in the [Glosia Dashboard](https://glosia.biz.id/app)
2. Copy the generated snippet
3. Paste it into the WordPress plugin
4. Done — the widget is instantly active!

**Main features:**

* **Widget Manager** — save and manage multiple widgets
* **Floating Bubble** — display a floating chatbot across your entire website
* **On-Page Widget** — embed widgets inline on specific pages via shortcode
* **Multiple Widgets** — use different snippets on different pages
* **Zero Config** — all configuration is done in the Glosia Dashboard

### Third-Party Service (SaaS) Integration

This plugin acts as a connector to the Glosia platform (a third-party service). By using this plugin, the widget will load resources from the Glosia API hosted at `glosia.biz.id`.

- **Service used:** [Glosia](https://glosia.biz.id)
- **Data transmitted:** This plugin does not automatically track or send visitors' personal data. However, visitors who interact with the chatbot will send their chat messages to the Glosia server for AI processing.
- **Terms of Service:** [Glosia Terms of Service](https://glosia.biz.id/terms)
- **Privacy Policy:** [Glosia Privacy Policy](https://glosia.biz.id/privacy)

== Installation ==

1. Upload the `glosia-widget` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the **Plugins** menu in WordPress
3. Open **Glosia Widget** in the admin sidebar
4. Click **Add New**, paste the snippet from the Glosia Dashboard, give it a name, and save
5. For the global floating bubble: go to the **Settings** tab, enable the bubble, and select the snippet
6. To override the global floating bubble: select a page and set it in the metabox
7. For the on-page widget: use the shortcode `[glosia id="Snippet Name"]`

== Frequently Asked Questions ==

= Where do I get the snippet? =

Log in to the [Glosia Dashboard](https://glosia.biz.id/app), go to the Installation page, configure the widget, and copy the snippet.

= Can I install multiple widgets? =

Yes! Create multiple snippets with different names.

= Does this plugin render my snippet directly? =

No. The plugin validates the KVP snippet, stores the supported configuration, and builds the embed script safely. Unsupported fields or values are rejected so you know when the plugin needs an update or the snippet is incompatible.

= How do I change the widget's appearance? =

All visual configurations are done in the Glosia Dashboard. After changing the config, copy the new snippet and update it in the plugin.

== Screenshots ==

1. Widget management page
2. Add widget form
3. Global floating bubble settings
4. Chatbot widget on the frontend

== Changelog ==

= 1.0.0 =
* Initial release — validated snippet-based architecture
* Widget CRUD manager
* Floating bubble support
* Shortcode `[glosia id="..."]` for on-page widgets
* Clean uninstall

== Upgrade Notice ==

= 1.0.0 =
First release of the Glosia Widget plugin.
