=== Virtual MIA Avatar ===
Contributors: enigmatechwp
Tags: avatar, virtual assistant, embed, mia
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds the Virtual Mia embed script and the necessary functions for user management.

== Description ==

Adds the Virtual Mia embed script and the necessary functions for user management on your WordPress site.

Virtual Mia is an AI-powered virtual assistant that can interact with your website visitors.

== External Services ==

This plugin connects to Virtual Mia's embedding service to display the virtual avatar functionality.

**Service Used:** Virtual Mia Embed API

**Endpoint:** https://front.virtualmia.it/api/embed

**What data is sent:**
* Current WordPress user ID (if logged in) or 'wp_guest' (if not logged in)
* Current page URL of your website
* Customer ID (CID) stored in browser localStorage

**When data is sent:**
* When any page of your website loads (the embed script is automatically loaded)
* When users interact with the virtual avatar
* When users navigate between pages on your site

**Service Provider:** Virtual Mia by Enigma Tech SRL
* Website: https://virtualmia.it/
* Terms of Service: https://virtualmia.it/policy/
* Privacy Policy: https://virtualmia.it/policy/

This external service is essential for the plugin to function as it provides the virtual avatar interface and AI capabilities.

== Installation ==

1. Upload the `virtual-mia-avatar` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. The Virtual Mia avatar will automatically appear on your website

== Frequently Asked Questions ==

= How do I configure the plugin? =

After activation, the Virtual Mia avatar will automatically appear on your site. No additional configuration is required.

= What is the CID (Customer ID)? =

The CID is a unique identifier stored in the browser's localStorage to track user sessions with the virtual avatar. For logged-in WordPress users, it corresponds to their WordPress user ID. For guests, it's set to 'wp_guest'.

= Does this plugin work with any WordPress theme? =

Yes, the plugin is designed to work with any WordPress theme as it injects the embed script directly into the page.

== Changelog ==

= 1.0.1 =
* Fixed script enqueuing to follow WordPress best practices
* Added proper documentation for external service usage
* Improved code structure and inline documentation

= 1.0.0 =
* First release

== Upgrade Notice ==

= 1.0.1 =
Important update: Improved script loading and added required external service documentation.