=== AI Shoutbox === Contributors: kaipkada Tags: chat, shoutbox, ai, openai, widget Requires at least: 5.0 Tested up to: 6.8 Stable tag: 2.0.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A simple, real-time shoutbox widget and shortcode with OpenAI (GPT) integration, reCAPTCHA v3 protection, and customizable texts. == Description == AI Shoutbox provides a lightweight and fast chat box for your WordPress site. It uses a standard polling technique for real-time updates that works on any hosting environment. Key features: * **Real-Time Chat:** Uses AJAX polling for message updates. * **AI Integration:** Allow users to ask questions directly to OpenAI's GPT models. * **reCAPTCHA v3 Protection:** Secure login form to prevent spam. * **Session Persistence:** Remembers users for 1 hour. * **Admin Settings Page:** Easily configure API keys and translate all public-facing texts from the WordPress admin. * **Auto-Pruning:** Automatically clears chat history every 24 hours to keep the database clean. * **Widget & Shortcode:** Display the shoutbox in any widget area or anywhere on your site using the `[aish_shoutbox]` shortcode. * **Admin Tools:** Clear chat history manually from the settings page. == Installation == 1. Upload the `ai-shoutbox` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Go to **Settings -> AI Shoutbox** and enter your Google reCAPTCHA v3 and OpenAI API keys. You can also translate the texts here. 4. Go to `Appearance -> Widgets` and add the "AI Shoutbox" widget to a sidebar, or place the `[aish_shoutbox]` shortcode in any page or post. == External Services == This plugin utilizes two external services to provide its full functionality. Users must be aware that using this plugin will result in data being sent to these third-party services. * **Google reCAPTCHA** * **Purpose:** This service is used to protect the shoutbox login form from spam and automated abuse by bots. * **Data Sent:** To verify that a user is not a robot, hardware and software information, such as device data, application data, and the user's IP address, is sent to Google. This occurs when a user clicks the "Join" button. * **Service Documents:** [Google Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms). * **OpenAI API** * **Purpose:** This service is used to generate intelligent, human-like responses when a user interacts with the AI feature of the shoutbox. * **Data Sent:** When a user enables the AI mode and submits a message, the text content of that message is sent to OpenAI's API for processing. No personal user data is sent, only the query text itself. * **Service Documents:** [OpenAI Privacy Policy](https://openai.com/policies/privacy-policy) and [Terms of Use](https://openai.com/policies/terms-of-use). == Changelog == = 2.0.2 = * Added "External Services" section to readme.txt to comply with WordPress.org guidelines. * Updated plugin version. = 2.0.1 = * Updated "Tested up to" version to 6.5. = 2.0.0 = * Major refactor. Prefixed all functions, classes, hooks, and assets with `aish_` to meet WordPress.org standards. * Synchronized all CSS classes and JS element IDs to match the new prefixes.