=== AI Assistant: GPT ChatBot ===
Contributors: federicopepedev
Tags: AI, chat, AI chatbot, assistant, OpenAI
Requires at least: 6.4
Tested up to: 6.9.4
Stable tag: 1.2.0
Requires PHP: 8.2
License: GPL-3.0+
License URI: https://www.gnu.org/licenses/gpl-3.0.html

The AI Assistant WordPress plugin integrates an AI-driven chat feature on your WordPress site.

== Description ==
The AI Assistant WordPress plugin integrates an AI-driven chat feature on your WordPress site, offering visitors an engaging and interactive experience. By artificial intelligence technology provided by OpenAI, AI Assistant can proficiently answer visitors' inquiries and offer instant support and assistance.

*BENEFITS*

- Enhanced user engagement with instant, AI-powered responses.
- 24/7 availability to provide constant assistance.
- Improved user experience by offering quick and accurate information.
- Increased conversion rates by addressing visitors' concerns in real-time.

*KEY FEATURES*

- AI Chat Integration: Engage with visitors in real-time.
- API Key Management: Easily configure your OpenAI API key.
- Model Selection: Select from a range of OpenAI models to tailor the chat experience to your preferences

== Installation ==
1. Download the AI Assistant plugin from the WordPress repository or upload the plugin files to the `/wp-content/plugins/` directory of your site.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the plugin's settings page (accessible from the admin menu) to enter your OpenAI API key.

== Configuration ==
To effectively use the AI Assistant plugin, you need to generate a new API key on OpenAI. Here are the steps to obtain your key:

1. Visit [https://openai.com/](https://openai.com/) and sign in or register for a new account.
2. Navigate to the API section of your OpenAI account and create a new API key.
3. Copy the generated API key and paste it into the settings page of the AI Assistant plugin on your WordPress site.

== Usage ==
Upon setup, the AI chat feature will be available for visitor interaction.

== Screenshots ==
1. AI Assistant ChatBot
2. AI Assistant Settings
2. AI Assistant Screenshot

== Contribute to AI Assistant ==
If you're interested in contributing to the AI Assistant plugin, please visit [AI Assistant GitHub repository](https://github.com/federicopepedev/wp-ai-assistant/)

== Frequently Asked Questions ==

= How do I obtain an OpenAI API key? =
Visit [https://openai.com/](https://openai.com/), sign up or log in, navigate to the API section, and create a new API key.

== Changelog ==

= 1.2.0 =
* Streaming responses via Server-Sent Events with automatic fallback for incompatible hosting.
* Conversation history: the AI now remembers previous messages in the session.
* Chat persisted in localStorage with 24-hour expiration.
* Markdown rendering for AI responses (code blocks, inline code, bold, italic).
* Security hardening: input sanitization, capability check on admin page, rate limit ordering fix.
* Admin: streaming toggle, configurable conversation history length, color picker inputs.

= 1.1.1 =
* Update packages.

= 1.1.0 =
* Rate limit .

= 1.0.8 =
* Update packages.

= 1.0.7 =
* Update packages.

= 1.0.6 =
* Update default OpenAI model.

= 1.0.5 =
* Update packages.

= 1.0.4 =
* System role.

= 1.0.3 =
* Update default OpenAI model.

= 1.0.2 =
* Set welcome message from admin page.
* Custom chat style.

= 1.0.1 =
* Added feature to copy messages to clipboard.
* Increased max user message length.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.1 =
* Update packages.

= 1.1.0 =
* Rate limit.

= 1.0.8 =
* Update packages.

= 1.0.7 =
* Update packages.

= 1.0.6 =
* Update default OpenAI model.

= 1.0.5 =
* Update packages.

= 1.0.4 =
* System role.

= 1.0.3 =
* New default OpenAI model.

= 1.0.2 =
Feature to change welcome message and chat style.

= 1.0.1 =
Added a new feature to copy messages to the clipboard and increased the maximum user message length.

== License ==
This plugin is licensed under the GPL v3 or later.

License URI: [GPL v3](https://www.gnu.org/licenses/gpl-3.0.html)
