=== Bilohash AI Chat Consultant ===
Contributors: rbilohash
Donate link: https://bilohash.com/donate.php
Tags: ai, grok, xai, gpt, telegram
Requires at least: 6.4
Tested up to: 7.0
Stable tag: 2.8.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Modern Grok (xAI) + OpenAI GPT powered chatbot for WordPress with real-time Telegram notifications, full customization and model switching.

== Description ==
**Bilohash AI Chat Consultant** is a powerful, beautiful and intelligent chatbot for WordPress built with Grok xAI and OpenAI GPT.
It now supports **two leading AI providers** — **Grok by xAI** and **OpenAI GPT** — giving you complete flexibility to choose the best model for your business.

### Key Features

- **Dual AI Engine**: Seamlessly switch between Grok xAI and OpenAI GPT directly from the admin panel
- **Multiple Models Support**:
  - Grok: grok-4.20-0309-non-reasoning, grok-4.20-0309-reasoning, grok-4.3 and more
  - GPT: gpt-4o, gpt-4o-mini, gpt-4-turbo
- **Real-time Telegram Notifications** — receive every customer message and bot reply instantly
- **Beautiful Floating Chat Widget** with full design customization and live preview
- **Secure Conversation History** — stored safely in WordPress uploads folder with .htaccess protection
- **Professional System Prompt** — easily customize the bot’s personality and expertise
- **Auto-open, RTL support, Mobile Responsive, Accessibility ready**
- **Optional Branding** — complies with WordPress.org requirements

Perfect for:
- Cleaning services, agencies, online stores, consulting businesses, SaaS products, and any website that wants smart 24/7 customer support.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/bilohash-ai-chat-consultant/`
2. Activate the plugin
3. Go to **Bilohash AI Chat Consultant → Settings**
4. Select your preferred **AI Provider** (Grok or OpenAI)
5. Enter your API key
6. Customize appearance, welcome message, system prompt, and Telegram settings
7. Save and enjoy your intelligent AI consultant on the frontend

== What's New in 2.8.0 ==

- Full support for **OpenAI GPT** models alongside Grok xAI
- New **AI Provider** selector in the General tab
- Dedicated new tab **🤖 GPT / OpenAI** for separate API key and model settings
- Updated core logic in `bot.php` to handle both providers cleanly
- Improved plugin header, constants, and default settings
- Better documentation and readme

This version significantly expands your options while keeping everything stable and WordPress.org compliant.

== Frequently Asked Questions ==

= Which AI should I choose? =
- **Grok xAI** — Excellent context understanding, fast, great for technical and business topics.
- **OpenAI GPT-4o** — Best overall quality, very natural conversations, slightly more expensive.

= Do I need API keys? =
Yes. 
- Grok API: https://console.x.ai/
- OpenAI API: https://platform.openai.com/api-keys

= Is Telegram integration optional? =
Yes, fully optional. You can disable it anytime.

= Where are conversations stored? =
In a secure dedicated folder: `wp-content/uploads/bilohash-ai-chat-consultant/conversations/`

== Changelog ==

= 2.8.0 =
* Added complete **OpenAI GPT support** (gpt-4o, gpt-4o-mini, gpt-4-turbo)
* New AI Provider selection (Grok / OpenAI) in General tab
* New dedicated "GPT / OpenAI" settings tab
* Major update to bot handler for dual AI support
* Updated version to 2.8.0, readme.txt, and plugin description
* Code improvements and stability enhancements

= 2.7.1 =
* Added selection of Grok xAI models directly in the plugin settings:
  - grok-4.20-0309-non-reasoning (recommended)
  - grok-4.20-0309-reasoning
  - grok-4.3
  - grok-4.20-multi-agent-0309
  - grok-build-0.1
* Added separate color picker for the Floating Widget Button
* Fixed default Header Gradient (now modern green-cyan gradient)
* Improved API error handling (401, 429)
* Updated "Tested up to" to WordPress 7.0
* General security and stability improvements

= 2.7.0 =
* Added support for choosing Grok model
* Added separate color option for Floating Button
* Fixed default Header Gradient
* Improved compatibility with WordPress 7.0

= 2.6.0 =
* Fixed all WordPress.org review issues (branding consent, external services documentation, storage location)
* Conversations and logs now saved in secure `/wp-content/uploads/bilohash-ai-chat-consultant/` folder (with .htaccess protection)
* Added checkbox "Show bilohash + Grok xAI Branding" (default OFF) – required by WordPress.org
* Improved security, code standards and Plugin Check compatibility
* Enhanced frontend JavaScript (better mobile responsiveness, accessibility, conditional branding)
* Updated uninstall.php and get-messages.php for new storage system
* Better documentation and readme

= 2.5.0 =
* Renamed to "Bilohash AI Chat Consultant" to comply with WordPress.org naming policy
* Updated all prefixes, text domain, class names and file references
* Improved security, code standards and Plugin Check compatibility
* Enhanced admin CSS and frontend JavaScript
* Updated documentation and translation files

= 2.4.0 =
* Initial public release

== Upgrade Notice ==

= 2.6.0 =
Important update! This version fixes all issues reported by the WordPress.org review team and moves conversation storage to the secure uploads directory. All previous settings will be automatically migrated. Please update immediately.

== External Services ==

This plugin uses two external API services for the AI chatbot and optional Telegram integration.

**xAI Grok API**[](https://api.x.ai)
- Purpose: generates intelligent AI consultant responses.
- Data sent: system prompt, conversation history, and user message.
- Data is sent only when a user submits a message.
- Terms of Service: https://x.ai/legal/terms-of-service-enterprise
- Privacy Policy: https://x.ai/legal/privacy-policy

**Telegram Bot API**[](https://api.telegram.org)
- Purpose: (optional) sends notifications and messages via your Telegram bot.
- Data sent: message text.
- Data is sent only when Telegram integration is active.
- Terms of Service: https://telegram.org/tos/bots
- Privacy Policy: https://telegram.org/privacy