=== Voixt Widget ===
Contributors: voixt, kiritgothi
Tags: chat, ai, widget, assistant, chatbot
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your Voixt AI assistant widget on any WordPress site. Choose between a compact popup or full widget with your unique Agent ID.

== Description ==

Voixt Widget allows you to easily embed the Voixt AI assistant widget on your WordPress site by inserting its JavaScript into the `<head>` tag. You can configure:

- **Agent ID** (required)
- **Widget type**: compact popup or full assistant
- **Widget position**: left or right (new in 1.0.2)

No coding required. Just install the plugin, go to Settings → Voixt Widget, and enter your details.

== Installation ==

1. Upload the `voixt-widget` folder to the `/wp-content/plugins/` directory or install via WordPress dashboard.
2. Activate the plugin through the "Plugins" menu.
3. Go to "Settings → Voixt Widget" in WordPress admin.
4. Enter your Voixt **Agent ID**, select **Widget Style**, and choose **Widget Position**.
5. Save changes. The widget will appear on your site.

== Screenshots ==

1. Plugin settings page with Agent ID, style, and position options.
2. Example of compact popup widget on frontend.
3. Example of full chat widget on frontend.
4. Example showing widget aligned to the left.

== Changelog ==

= 1.0.2 =
* New: Added **Widget Position** option (left or right).
* Updated settings page with dropdown for position.
* Passed position into widget initialization script.

= 1.0.1 =
* Fix: Script now loads just before `</head>` using `wp_head` at priority 1000.
* Minor: Improved sanitization.

= 1.0.0 =
* Initial release — adds Voixt agent script to head via admin config.

== Upgrade Notice ==

= 1.0.2 =
Added **Widget Position** option to let you place the chat widget on either the left or right side.

= 1.0.1 =
Improved script positioning for better performance and accuracy.

== Frequently Asked Questions ==

= Will this slow down my site? =
No. Scripts are loaded using `async` and only if you've entered a valid Agent ID.

= Can I show the widget only on certain pages? =
This feature is coming soon. For now, the widget loads site-wide.

