=== AgentoWine - AI Wine Assistant ===
Contributors: agentowine
Tags: chatbot, wine, ai, sommelier, winery
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add the AgentoWine chatbot to your WordPress site — your virtual AI sommelier for wineries, wine shops and wine e-commerce.

== Description ==

AgentoWine Chatbot is the official plugin to integrate the AgentoWine AI chatbot into your WordPress site.

**Main features:**

* 🍷 **Virtual AI Sommelier** — an intelligent assistant specialized in the world of wine
* 🎯 **Simple setup** — just enter your Client ID to activate the chatbot
* 🌐 **Multilingual** — supports Italian and English (automatically detects your site language)
* 🎨 **Elegant design** — blends in with any WordPress theme
* 📍 **Flexible positioning** — choose one of the four corners or set custom coordinates for desktop and mobile
* 📱 **Mobile responsive** — works on desktop, tablet and smartphone
* ⚡ **Lightweight** — the chatbot script is loaded in the footer and does not slow down your site

**Ideal for:**

* Wineries and wine producers
* Online wine shops
* Wine bars and restaurants
* Wine e-commerce stores
* Wine blogs

An active AgentoWine subscription and a Client ID are required to use the chatbot. Visit [agentowine.com](https://agentowine.com) for more information.

== External Services ==

This plugin relies on AgentoWine, a third-party service, to provide its functionality. The plugin does not load anything and does not send any data until you enter your Client ID in the settings page.

Once a Client ID is configured, the plugin loads the chatbot widget script from `https://chatbot.agentowine.com/chatbot.js` on the public pages of your site. When the chatbot is active, the following data is sent to AgentoWine servers:

* the configured Client ID, to identify your AgentoWine account, on every page where the widget is loaded;
* the messages that your visitors type into the chat, in order to generate the assistant's replies;
* standard technical data included in any web request (such as IP address, browser user agent and site language).

The AgentoWine service is provided by AgentoWine (https://agentowine.com):

* Terms and Conditions: https://agentowine.com/termini-e-condizioni
* Privacy Policy: https://agentowine.com/privacy-policy

== Installation ==

1. Install the plugin from the WordPress Plugins screen, or upload the `agentowine-chatbot` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to Settings → AgentoWine Chatbot
4. Enter your Client ID (provided by AgentoWine)
5. Save the settings

The chatbot will automatically appear on all pages of your site, in the position you selected.

== Frequently Asked Questions ==

= Where do I find my Client ID? =

Your Client ID is provided when you activate the AgentoWine service. Contact info@agentowine.com or visit agentowine.com for more information.

= Can I customize the position of the chatbot? =

Yes. You can choose one of the four corners of the screen, or enable custom positioning and set exact pixel coordinates, separately for desktop and mobile.

= Can I customize the appearance of the chatbot? =

Advanced customizations (colors, theme) are managed from the AgentoWine control panel. The WordPress plugin uses the optimal default settings.

= Does the chatbot slow down my site? =

No. The chatbot script is loaded in the footer and does not impact the initial rendering of your pages. Nothing is loaded at all until you configure a Client ID.

= Does it work with any WordPress theme? =

Yes, the chatbot is designed to work with any WordPress theme.

= Can I use the chatbot in a different language? =

The chatbot automatically detects the language of your WordPress site. It currently supports Italian and English.

== Changelog ==

= 1.1.3 =
* Plugin renamed to "AgentoWine - AI Wine Assistant"
* New plugin icon with the official AgentoWine logo

= 1.1.0 =
* Chatbot script is now loaded through the WordPress enqueue API
* Custom positioning with separate desktop and mobile coordinates
* Output escaping hardening across the settings page
* Documented the external AgentoWine service (terms and privacy policy)
* Tested up to WordPress 7.0

= 1.0.0 =
* Initial release
* AgentoWine chatbot integration
* Settings page with Client ID configuration
* Automatic language detection

== Upgrade Notice ==

= 1.1.0 =
Improved script loading and WordPress 7.0 compatibility. No configuration changes required.
