=== A1AI Chatbot ===
Contributors: A1Ai Digital
Tags: ai chatbot, ai, chatbot, openai
Requires at least: 5.6
Tested up to: 6.9
Stable tag: 1.5.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

AI-powered chatbot solution for WordPress powered by OpenAI's language models.

== Description ==

A1AI Chatbot provides a powerful and customizable AI chatbot for your WordPress site using OpenAI's language models. Engage visitors with intelligent conversations, provide customer support, and enhance user experience.

Key features:
- Multiple chatbot configurations
- Customizable appearance
- Shortcode support for inline chatbots
- Global floating chatbot option
- Conversation history and analytics
- Manual adjustments to improve responses

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/a1ai` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to A1AI Chatbot → Settings to configure your OpenAI API key.
4. Create your first chatbot under A1AI Chatbot → Chatbots → Add New.

== External Services ==

This plugin connects to OpenAI's API to generate chatbot responses.

Data sent to OpenAI:
- User chat messages
- Custom instructions configured in chatbot settings
- Previous conversation history for context
- Configuration parameters (model, temperature, etc.)

OpenAI processes this data in accordance with their privacy policy and terms of service:
- Terms of Service: https://openai.com/policies/terms-of-service
- Privacy Policy: https://openai.com/policies/privacy-policy
- API Data Usage Policies: https://openai.com/policies/api-data-usage-policy

No data is stored by OpenAI for API requests made with a customer API key, according to their policy.

== Frequently Asked Questions ==

= Do I need an OpenAI API key? =
Yes, you need to create an account at OpenAI and obtain an API key to use this plugin.

= Is conversation data stored? =
Yes, conversation data is stored in your WordPress database to provide conversation history and analytics.

== Screenshots ==

1. Admin dashboard
2. Chatbot configuration
3. Global floating chatbot
4. Inline chatbot via shortcode

== Changelog ==

= 1.5.6 =
* Added full conversation email notifications on inactivity (premium feature)
* Fixed review submissions appearing in Contact Requests table
* Improved review chatbot input field handling
* Enhanced conversation completion tracking

= 1.4.0 =
* Fixed settings page functionality and tab navigation
* Added opt-in checkbox for "Powered By" attribution (defaults to unchecked)
* Fixed text color issues in chatbot interface
* Improved error handling and debugging for admin interface
* Fixed nonce verification warnings
* Enhanced dashboard stability and error reporting
* Fixed duplicate ID conflicts in admin forms

= 1.3.0 =
* Added Adjustments feature for fine-tuning AI responses
* Added new database table structure for adjustments
* Added edit functionality for adjustments
* Improved security with proper input validation and sanitization
* Added migration system for database updates

= 1.0.0 =
* Initial release 