minsar / module-admin-assistant
AI-powered explanations for Magento admin configuration - Minsar Admin Assistant
Package info
github.com/minsarai/magento2-ai-admin-assistant
Type:magento2-module
pkg:composer/minsar/module-admin-assistant
Requires
- php: >=8.1
- magento/framework: >=103.0
- magento/module-backend: >=102.0
- magento/module-config: >=101.2
This package is auto-updated.
Last update: 2026-04-10 05:46:34 UTC
README
Transform your Magento admin experience with AI-powered configuration help. Get instant, intelligent explanations for any configuration field with a simple click.
✨ Features
- 🎯 Smart Help Icons - [?] icons appear next to every configuration field
- 🤖 AI-Powered Explanations - Real-time explanations using Google Gemini or OpenAI
- 📱 Beautiful UI - Professional modal popups with smooth loading animations
- 🔒 Secure - Encrypted API key storage with proper validation
- 📊 Comprehensive Logging - Full request/response logging for debugging
- 🆓 Free Options - Google Gemini integration with generous free tier
- ⚡ Performance Optimized - Minimal overhead, efficient code structure
- 🎨 Admin-Friendly - Seamlessly integrates with Magento's admin interface
🚀 Installation
Via Composer (Recommended)
composer require minsarai/magento2-ai-admin-assistant php bin/magento module:enable Minsar_AdminAssistant php bin/magento setup:upgrade php bin/magento cache:flush
Manual Installation
- Download and extract to
app/code/Minsar/AdminAssistant/ - Run installation commands above
🔧 Configuration
- Navigate to Stores → Configuration → Minsar → Admin Assistant
- Enable the module
- Choose your AI provider:
- Google Gemini (Free - No credit card required)
- OpenAI GPT-3.5 (Free $5 credit for new accounts)
- Add your API key
- Save configuration
🔑 Getting API Keys
Google Gemini (Recommended - Free):
- Visit Google AI Studio
- Sign in with Google account
- Click "Get API key"
- Copy the key (starts with
AIza...)
OpenAI:
- Visit OpenAI Platform
- Create account and verify phone number
- Generate API key
- Copy the key (starts with
sk-...)
🎯 How It Works
- Click any [?] icon next to configuration fields
- Loading modal appears with smooth animation
- AI processes your request in real-time
- Explanation appears in a beautiful modal popup
- Learn about Magento configurations instantly!
🛠️ Technical Details
Requirements
- Magento 2.4.0 or higher
- PHP 8.1 or higher
- Valid AI provider API key
Architecture
- Clean MVC Structure - Follows Magento best practices
- Dependency Injection - Proper service layer implementation
- Interface-Based Design - Easy to extend with new AI providers
- Secure Configuration - Encrypted API key storage
- Comprehensive Logging - Full audit trail
File Structure
app/code/Minsar/AdminAssistant/
├── Api/ # Service contracts
├── Controller/ # Admin controllers
├── Model/ # Business logic
│ ├── Ai/ # AI client implementations
│ ├── Config/ # Configuration sources
│ └── Log/ # Logging services
├── etc/ # Module configuration
└── view/adminhtml/ # Admin templates
🔍 Troubleshooting
Common Issues
No help icons appearing:
- Clear cache:
php bin/magento cache:flush - Check if module is enabled
- Refresh browser (Ctrl+F5)
API errors:
- Verify API key is correct
- Check logs:
var/log/minsar_adminassistant.log - Ensure API provider has credits/quota
Network errors:
- Check server internet connectivity
- Verify firewall allows outbound HTTPS
Debug Mode
Enable detailed logging in module configuration for troubleshooting.
🔒 Privacy & Security
What We Send
- Configuration field names and labels
- Field descriptions and comments
- No customer data or PII
What We Don't Send
- Customer information
- Order data
- Payment details
- Store credentials
- Admin user data
Security Features
- API keys stored encrypted
- Request rate limiting
- Comprehensive audit logging
- No automatic store changes
🤝 Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Development Setup
git clone https://github.com/minsarai/magento2-ai-admin-assistant.git cd magento2-ai-admin-assistant # Follow installation steps above
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- 📧 Email: saifali.openai@gmail.com
- 🐛 Issues: GitHub Issues
- 📖 Documentation: Wiki
🌟 Changelog
v1.0.0 (2026-01-22)
- ✨ Initial release
- 🤖 Google Gemini integration
- 🔧 OpenAI GPT-3.5 support
- 📱 Modal UI with loading states
- 🔒 Secure API key management
- 📊 Comprehensive logging
Made with ❤️ by minsarai
Transform your Magento admin experience with the power of AI!