=== PlugginAI ===
Contributors: johnafer82
Tags: chatbots, customer support, conversational ai, chatbot integration
Requires at least: 4.7
Tested up to: 6.7
Stable tag: 1.0.1
Requires PHP: 7.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed a custom chatbot on your site with PlugginAI to manage customer support, engage visitors, and enhance user experience.

== Description ==
Easily embed a custom chatbot on your WordPress website! With this plugin, you can seamlessly integrate a personalized [PlugginAI](https://www.plugginai.net/) chatbot to handle customer support, engage visitors, and more.

Using [PlugginAI](https://www.plugginai.net/) services, this plugin lets you deploy a chatbot trained with the data you’ve provided through your [PlugginAI Dashboard](https://dashboard.plugginai.net/). Enhance your website with conversational AI and streamline your customer interactions.

== Installation ==
1. Download the plugin and upload it to your WordPress site via the Plugins > Add New menu.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Configure the plugin in the "PlugginAI Options" section under the "Settings" menu.

== Frequently Asked Questions ==

= How do I initialize my PlugginAI chatbot? =

1. Install and activate this plugin on your WordPress website.
2. Copy your WordPress Widget Key from the [PlugginAI Portal](https://dashboard.plugginai.net/) under the "Chatbot Customize" tab.
3. Navigate to the "PlugginAI Options" tab under the "Settings" menu in your WordPress dashboard.
4. Paste your WordPress Widget Key into the WordPress Widget Key field.
5. Click "Save Changes" to activate your chatbot.

= Do I need a PlugginAI account? =
Yes, you need to create an account at [PlugginAI](https://dashboard.plugginai.net/) to access the dashboard and obtain your WordPress Widget Key.

= Can I customize my chatbot? =
Absolutely! Use the [PlugginAI Dashboard](https://dashboard.plugginai.net/) to train and customize your chatbot according to your needs.

== External Connections ==
This plugin connects to the PlugginAI server (https://dashboard.plugginai.net) to fetch chatbot configurations and manage chatbot interactions. No personal user data is transmitted during these API calls. An active account on PlugginAI is required to use this plugin.

== External Services ==

This plugin connects to the PlugginAI service hosted at https://dashboard.plugginai.net. The service is used to manage chatbot configurations and interactions for websites using this plugin.

**Data Sent:**
- `name`: The name of the chatbot instance.
- `title`: The title displayed for the chatbot.
- `btn_label`: The label for the chatbot button.
- `color`: The color theme for the chatbot interface.
- `welcome_msg`: The default welcome message displayed to users.

**When Data is Sent:**
- Data is sent when the chatbot settings are saved or updated in the WordPress admin panel.
- Requests for chatbot configurations are made whenever the chatbot is initialized on the frontend.

**Why This Data is Sent:**
- To customize and manage chatbot behavior and appearance.
- To fetch updated chatbot configurations and settings.

**Links:**
- [PlugginAI Terms of Service](https://dashboard.plugginai.net/terms) (Under Development)
- [PlugginAI Privacy Policy](https://dashboard.plugginai.net/privacy) (Under Development)

**User Actions/Conditions:**
- Saving chatbot settings in the WordPress admin panel triggers the API call to save data.
- Viewing the chatbot on the frontend triggers a request to fetch configuration data.

No personal user data is collected or sent by this plugin during these interactions.

Note: Terms of Service and Privacy Policy are under development. For inquiries, contact [info@plugginai.net].

== Changelog ==

= 1.0.1 =
* Release Date: [Insert release date here]
* Updated sanitization for the `register_setting()` function to ensure all input fields are properly sanitized.
* Renamed plugin functions and variables to use a unique prefix (`plugginai_`) to prevent naming conflicts with other plugins.
* Added a check to prevent direct file access by including `if ( ! defined( 'ABSPATH' ) ) exit;` at the top of the main plugin file.
* Minor code optimizations and improvements for better performance and security.
* Updated documentation and comments for clarity and maintainability.

= 1.0.0 =
* Initial release of PlugginAI plugin with chatbot integration functionality.
