=== Ohsembot AI Chatbot ===
Contributors: ohsembot, micetech
Author: Micetech Solution
Author URI: https://micetechsolution.com/
Plugin URI: https://ohsembot.com/
Tags: chatbot, ai chatbot, customer support, live chat, assistant
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to OhSemBot to launch an AI chatbot, start with a guided demo, and configure your own chatbot connection.

== Description ==

Ohsembot AI Chatbot helps WordPress site owners add an AI-powered chat experience without a complicated setup process.

The plugin can bootstrap a demo chatbot for quick testing, then lets you connect your own OhSemBot chatbot settings when you are ready to move to a fully customized deployment.

It is designed for site owners who want a simple path from initial evaluation to a production-ready chatbot experience on WordPress.

= Key Features =

* Quick-start demo chatbot setup for faster onboarding.
* Secure WordPress widget token flow for frontend requests.
* Admin settings for API base URL, chatbot ID, API key, and theme.
* Settings-based path to connect the demo flow to your custom OhSemBot chatbot.
* WordPress-friendly script loading and admin integration.

== External services ==

This plugin connects to OhSemBot, a chatbot and AI chat service, to provide the live chat widget on your site.

1. Demo/bootstrap connection

This request is sent automatically when the plugin is activated, when required widget settings are missing, and during token-refresh fallback. It sends the site's URL, a randomly generated installation ID, and the plugin version to:
https://www.ohsembot.com/api/wpchatbot/demo/bootstrap

2. Chat widget token

This request is sent automatically on frontend page load when the widget token is missing or expired. It sends the site's URL and your configured chatbot ID, authenticated with your API key, to:
{api_base_url}/api/chat/wp/token

3. Widget script and chat delivery

When the chatbot widget is displayed, the visitor's browser loads the chat script directly from OhSemBot's servers and sends chat messages to OhSemBot. As with any external resource, this exposes the visitor's IP address, browser user-agent, and referring page URL to OhSemBot in the normal course of the browser request.

This service is provided by OhSemBot:
https://www.ohsembot.com/

Terms of Service: https://www.ohsembot.com/ohsembot-terms-of-service.html
Privacy Policy: https://www.ohsembot.com/ohsembot-privacy-policy.html

= Benefits =

* Add an AI chatbot experience to your site with minimal setup.
* Keep sensitive token refresh logic on the server side instead of exposing credentials to browser JavaScript.
* Start with a guided setup and move to a branded chatbot when your account and configuration are ready.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/ohsembot-ai-chatbot/` directory, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the `Plugins` screen in WordPress.
3. Open the `Ohsembot AI Chatbot` menu in the WordPress admin area.
4. Review the setup guidance shown on the plugin page.
5. Configure the widget settings if needed, including API Base URL, Chatbot ID, API Key, and Theme.
6. Save your settings and confirm the chatbot loads correctly on the frontend.
7. Optional: Enter your OhSemBot API Base URL, Chatbot ID, API Key, and Theme to connect your custom chatbot.

== Frequently Asked Questions ==

= Do I need an OhSemBot account to use this plugin? =

You can start with the plugin's guided demo flow, but a full custom deployment requires an OhSemBot account and chatbot connection settings.

= Does this plugin connect to an external service? =

Yes. The plugin connects to OhSemBot for demo bootstrap requests, widget token refresh, and custom chatbot-related functionality.

= How do I replace the demo chatbot with my own chatbot? =

Create and configure your chatbot in OhSemBot, then enter the API Base URL, Chatbot ID, API Key, and Theme in the plugin settings.

== Changelog ==

= Unreleased =

* Renamed plugin to Ohsembot AI Chatbot for clarity and compliance with WordPress.org naming guidelines.

= 1.1.1 =

* Improved WordPress compatibility for enqueued scripts and readme standards.
* Refined secure token-based widget loading for the WordPress flow.
* Polished admin-side onboarding and custom chatbot connection flow.

= 1.0.0 =

* Initial release.
* Added guided demo chatbot bootstrap flow.
* Added admin settings for chatbot connection details.
* Added support for connecting a custom OhSemBot chatbot through plugin settings.

== Upgrade Notice ==

= 1.1.1 =

Recommended update for improved WordPress compatibility and cleaner secure widget loading behavior.
