=== MxChat Admin Assistant ===
Contributors: mxchat
Donate link: https://mxchat.ai/
Tags: admin chat, ai assistant, chatgpt, wordpress admin, mxchat, ai chat
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Admin-only AI chat interface for WordPress using your existing MxChat API keys.

== Description ==

MxChat Admin Assistant brings a ChatGPT-like experience directly inside your WordPress admin panel. This add-on leverages your existing MxChat setup to provide a powerful AI assistant that's always available while you work on your site.

**Note: This plugin requires the MxChat core plugin to be activated.**

### Key Features

* **Seamless Admin Integration**: Access AI chat capabilities without leaving your WordPress dashboard
* **Multiple AI Models**: Use any AI model available in your core MxChat plugin
* **Chat Management**: Easily save and search through previous chat threads
* **Image Generation**: Create images directly in chat with the image toggle feature
* **Web Search Integration**: Enable Perplexity search functionality with a simple toggle
* **Focused Workflow**: Get AI assistance for WordPress tasks without switching between applications

### How It Works

1. Install and activate alongside your existing MxChat plugin
2. Access the chat interface from your WordPress admin panel
3. Chat with your AI assistant using any model configured in MxChat
4. Save important conversations for future reference
5. Toggle special features like image generation and web search as needed

Perfect for WordPress administrators, content creators, and developers who want AI assistance while working within the WordPress ecosystem.

== Installation ==

1. Upload the `mxchat-admin-assistant` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Ensure you have the core MxChat plugin installed and properly configured
4. Access the Admin Assistant from the new menu item in your WordPress admin panel

== Frequently Asked Questions ==

= Do I need separate API keys for this add-on? =

No, MxChat Admin Assistant uses the API keys and models you've already configured in the core MxChat plugin.

= Will this work with the free version of MxChat? =

The plugin requires MxChat core to function. Some features may require MxChat Pro.

= Where can I find the chat interface? =

After activation, you'll find a new menu item in your WordPress admin panel labeled "MxChat Assistant".

= Can I use image generation without additional setup? =

If you've configured image generation in your core MxChat plugin, it will work automatically in the Admin Assistant through the image toggle.

= How do I save conversations? =

There's a save button within the chat interface that allows you to store important conversations for later reference.

= Can other WordPress users access my chat history? =

No, chat threads are user-specific and only visible to the user who created them.

= Does this plugin support the Perplexity integration? =

Yes! If you have the MxChat Perplexity Integration plugin installed, you can toggle web search functionality directly from the Admin Assistant interface.

== Screenshots ==

1. Admin Chat Interface
2. Saved Conversations
3. Image Generation Example
4. Web Search Toggle
5. Model Selection Options

== Changelog ==

= 1.0.7 = 9.8.25
* Added GPT-5 models & xAI Grok coding model.
* Added Gemini Nano Banana Image generation and editing model — easily generate and edit photos.

= 1.0.6 =
* Added Grok-4 model support.
* Introduced image analysis feature using either Grok or OpenAI APIs — selectable in the settings tab.
* Users can upload an image with a prompt or paste directly from snips for image-based queries.
* Improved chat flows for more natural conversations.
* Enhanced loading performance for a smoother experience.

= 1.0.4 =
* bug fix for new models added.

= 1.0.3 =
* Added xAI image generation. Added support for more models. Updated settings UI.

= 1.0.2 =
* Minor bug fix
* Update test

= 1.0.1 =
* Minor bug fix
* Update test

= 1.0.0 =
* Initial release
* Chat interface in WordPress admin
* Support for all MxChat models
* Image generation toggle
* Perplexity search integration
* Chat thread saving and searching

== Upgrade Notice ==

= 1.0.7 =
* Added GPT-5 models & xAI Grok coding model.
* Added Gemini Nano Banana Image generation and editing model — easily generate and edit photos.


== Structure ==

mxchat-admin-chat/
├── mxchat-admin-chat.php          # Main plugin file
├── includes/
│   ├── class-mxchat-admin-chat.php         # Core class
│   ├── class-mxchat-admin-chat-loader.php  # Hook loader
│   ├── class-mxchat-admin-chat-api.php     # API handling
│   └── class-mxchat-admin-chat-ui.php      # UI handling
├── admin/
│   ├── js/
│   │   ├── mxchat-admin-chat.js            # Frontend JS
│   │   ├── mxchat-perplexity.js            # Perplexity integration
│   │   ├── mxchat-image-gen.js             # Image generation functionality
│   │   └── mxchat-settings.js              # Settings management
│   └── css/
│       ├── mxchat-admin-chat.css           # Main styling
│       ├── mxchat-image-gen.css            # Image generation styling
│       └── mxchat-perplexity.css           # Perplexity styling
└── assets/
    └── images/
        └── icon.svg                        # Plugin icon