AI Business Automation for WordPress
AI-powered business automation for WordPress: content generation, SEO, RAG chatbot, WooCommerce AI, workflow automation & analytics
by AIBAWP Team · github.com/abdullahsaim/ai-business-automation · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/abdullahsaim/ai-business-automation/archive/refs/heads/main.zipVersion: 1.0.0 | Requires: WordPress 6.4+, PHP 8.1+
The category-defining AI-powered business automation plugin for WordPress. Acts as an intelligent business co-pilot embedded directly in your WordPress dashboard.
🚀 Features
| Module | Free | Pro |
|---|---|---|
| AI Blog Generator | 5/month | Unlimited |
| SEO Analyzer | Basic | Full + Bulk |
| AI Chatbot (RAG) | — | ✅ |
| WooCommerce AI | — | ✅ |
| Automation Workflows | 3 | 100+ |
| Marketing Automation | — | ✅ |
| Analytics & AI Insights | Basic | Full |
| Image Generation | — | ✅ |
📦 Installation
From WordPress Admin
- Upload the plugin ZIP via Plugins → Add New → Upload Plugin
- Activate the plugin
- Go to AI Automation → Settings and enter your OpenAI API key
- (Optional) Enter your AIBAWP license key to unlock Pro features
Manual Installation
cd wp-content/plugins
unzip ai-business-automation.zip
🔨 Development Setup
Requirements
- PHP 8.1+
- Node.js 18+
- npm 9+
Install Dependencies
# PHP dependencies
composer install
# JavaScript dependencies
npm install
Build React SPA
# Development (watch mode)
npm run start
# Production build
npm run build
The build outputs:
assets/js/admin.js– Main React admin SPA bundleassets/js/editor-sidebar.js– Gutenberg sidebar panelassets/css/admin.css– Admin styles (auto-generated)
🔑 AI Provider Setup
OpenAI (Recommended)
- Get API key from platform.openai.com
- Go to Settings → AI Provider → OpenAI API Key
- Click Test to verify, then Save
Anthropic Claude
- Get API key from console.anthropic.com
- Select Anthropic as provider in Settings
- Enter and save your key
Local LLM (Privacy Mode)
- Install Ollama or LM Studio
- Pull a model:
ollama pull llama3.2 - Set provider to Local LLM, URL to
http://localhost:11434/v1
🏗️ Architecture
ai-business-automation/
├── ai-business-automation.php # Plugin entry point
├── includes/ # Core classes
├── services/ # AI adapters, cache, queue
├── modules/ # Feature modules
│ ├── content-ai/
│ ├── seo/
│ ├── chatbot/ # RAG-powered chatbot
│ ├── woocommerce-ai/
│ ├── automation/ # Workflow engine
│ ├── marketing/
│ └── analytics/
├── api/ # REST API (40+ endpoints)
├── admin/ # Admin UI registration
├── assets/src/ # React SPA source
├── database/ # Table schemas
├── integrations/ # Third-party integrations
└── templates/ # PHP & HTML templates
🔌 Integrations
| Plugin | Integration |
|---|---|
| WooCommerce | Products, orders, carts, reviews |
| Yoast SEO | Meta sync, score display |
| RankMath | Focus keyword sync, meta fill |
| Elementor | Chatbot widget |
| Contact Form 7 | Lead capture, workflow triggers |
| WPForms | Workflow triggers |
🛠️ WordPress Hooks
Actions
// Fires after AI content is generated
do_action('aibawp_content_generated', $result, $params);
// Fires when a workflow completes
do_action('aibawp_workflow_completed', $workflow_id, $status, $steps);
// Fires when credits are depleted
do_action('aibawp_credits_depleted', $site_id);
Filters
// Modify AI prompts before sending
add_filter('aibawp_ai_prompt_template', function($prompt, $template, $vars) {
return $prompt . ' Always write in UK English.';
}, 10, 3);
// Override AI provider per request
add_filter('aibawp_ai_provider', function($provider) {
return 'anthropic'; // Force Anthropic for all requests
});
// Customize SEO scoring weights
add_filter('aibawp_seo_score_weights', function($weights) {
$weights['keyword'] = 0.50; // Increase keyword weight
return $weights;
});
📡 REST API
Base URL: https://yoursite.com/wp-json/aibawp/v1/
All admin endpoints require: X-WP-Nonce header
# Generate a blog post
POST /content/generate
{
"type": "blog",
"keyword": "WordPress SEO tips",
"tone": "professional",
"word_count": 800
}
# Analyze SEO
POST /seo/analyze
{ "post_id": 123, "keyword": "target keyword" }
# Chat with AI
POST /chatbot/message
{ "message": "What are your prices?", "session_id": "abc123" }
# Create workflow
POST /workflows
{
"name": "Post Published → Social",
"trigger_type": "post_published",
"workflow_json": "{\"nodes\": [], \"edges\": []}"
}
🌐 Multisite Support
The plugin supports WordPress Multisite in two modes:
Network Activation: Shared license pool, per-site credit allocation, central dashboard.
Per-Site Activation: Each site has independent settings and license.
🔒 Security
- All API keys encrypted at rest with AES-256-GCM
- WordPress nonce validation on all admin requests
current_user_can()checks on all REST endpoints- Input sanitization via WordPress core functions
- SQL injection prevention via
$wpdb->prepare() - Rate limiting: 60 AI requests/hour on public endpoints
- HMAC-SHA256 webhook signature verification
📋 Changelog
1.0.0 (March 2026)
- Initial release
- 7 feature modules: Content AI, SEO, Chatbot (RAG), WooCommerce AI, Automation, Marketing, Analytics
- 3 AI providers: OpenAI, Anthropic, Local LLM
- 40+ REST API endpoints
- React SPA admin dashboard
- Visual automation workflow builder
- Credit-based SaaS system
- Full WordPress Multisite support
📄 License
GPL v2 or later — see LICENSE file.
🆘 Support
- Documentation: https://docs.aibawp.com
- Support: https://aibawp.com/support
- Upgrade: https://aibawp.com/pricing