AIWP Copilot
AI-powered WordPress content assistant with specialist modes for frontend design, SEO, copywriting, and more. Works seamlessly with Elementor and block editor.
by Antigravity · github.com/digitalhustlerx/aiwordpress · 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/digitalhustlerx/aiwordpress/archive/refs/heads/main.zip🚀 AIWP Copilot v2.0 - Complete Installation Guide
🎯 What's New in v2.0
✨ AI Specialist Personas (NEW!)
Choose from specialized AI experts optimized for specific tasks:
Core Specialists (Tier 1):
- 🎨 Frontend Specialist - Modern UI/UX, Tailwind CSS, glassmorphism
- 📝 SEO Expert - Meta tags, schema markup, keyword optimization
- ✍️ Copywriter (SaaS) - Tech/startup voice, high-converting copy
- 🛍️ Copywriter (E-commerce) - Product descriptions, conversion copy
Pro Specialists (Tier 2 - Coming Soon):
- 🎯 Marketing Strategist
- 🏗️ WordPress Architect
- 💰 E-commerce Optimizer
- 🎬 Content Creator
- 🔧 DevOps Specialist
- ♿ Accessibility Expert
🔧 Enhanced Features
- ✅ jQuery deprecation fixes
- ✅ Error handling with rate limiting (100 req/hour)
- ✅ Deep Elementor integration
- ✅ User-friendly error messages with emojis
- ✅ Debug mode for troubleshooting
- ✅ Specialist badge in widget UI
📦 Installation
Step 1: Upload Plugin
- Download
aiwp-copilot-v2-complete.zip - Extract to:
C:\Users\Digi\Documents\Antigravity\aiwordpress\wp-content\plugins\ - Folder structure should be:
wp-content/ └── plugins/ └── aiwp-copilot/ ├── aiwp-copilot.php ├── assets/ └── includes/
Step 2: Activate Plugin
- Go to
http://localhost:8888/wp-admin/plugins.php - Find "AIWP Copilot"
- Click "Activate"
Step 3: Configure Settings
- Go to Settings → AIWP Copilot
- Enter your API credentials
Recommended: Groq (Free + Fast)
API Provider: OpenAI (Groq uses OpenAI-compatible API)
API Key: Get from https://console.groq.com/keys
API Endpoint: https://api.groq.com/openai/v1
Model: llama-3.3-70b-versatile
Alternative: OpenAI
API Provider: OpenAI
API Key: Get from https://platform.openai.com/api-keys
API Endpoint: https://api.openai.com/v1
Model: gpt-4o or gpt-4o-mini
Step 4: Choose Your Specialist
- Scroll to AI Specialist Mode section
- Select from dropdown (e.g., "🎨 Frontend Specialist")
- Read the description to understand what each specialist does
- Click "Save Settings"
🎨 Using Specialists
Frontend Specialist 🎨
Best for:
- Creating modern UI components
- Designing landing pages
- Building Elementor sections
- Responsive layouts
Example Prompt:
Create a hero section with:
- Dark gradient background
- Glassmorphism card
- Call-to-action buttons
- Mobile responsive
SEO Expert 📝
Best for:
- Meta title/description optimization
- Schema markup generation
- Keyword-optimized content
- Heading structure
Example Prompt:
Optimize this page for the keyword "WordPress AI plugin":
- Write meta title (50-60 chars)
- Write meta description (150-160 chars)
- Add schema markup
- Suggest H2/H3 headings
Copywriter (SaaS) ✍️
Best for:
- SaaS landing pages
- Feature descriptions
- Pricing pages
- Email sequences
Example Prompt:
Write a SaaS landing page for an AI writing tool:
- Headline with value proposition
- 3 key benefits
- Social proof section
- CTA button copy
Copywriter (E-commerce) 🛍️
Best for:
- Product descriptions
- Category pages
- Sales copy
- Urgency/scarcity messaging
Example Prompt:
Write a product description for wireless earbuds:
- Emotional opening hook
- 5 key benefits (not features)
- Address objections
- Add urgency
🛠️ File Structure
aiwp-copilot/
├── aiwp-copilot.php (Main plugin file)
├── assets/
│ ├── css/
│ │ └── copilot.css
│ └── js/
│ ├── copilot.js (Main widget)
│ └── elementor-scanner.js (Elementor integration)
├── includes/
│ ├── core/
│ │ ├── class-copilot-indexer.php
│ │ └── class-copilot-filesystem.php
│ ├── providers/
│ │ ├── interface-provider.php
│ │ ├── class-provider-registry.php
│ │ └── class-openai-provider.php
│ ├── specialists/ ← NEW!
│ │ ├── class-specialist-registry.php
│ │ └── class-specialist-engine.php
│ ├── class-error-handler.php
│ ├── rest-endpoints.php
│ └── settings-page.php
└── README.md
🧪 Testing
Test the Plugin
- Open any post/page in WordPress editor
- Look for the AI Copilot widget in bottom-right corner
- Type a test prompt, e.g., "Write a paragraph about AI"
- Check specialist badge shows your selected specialist
Test Each Specialist
Create a new page and test each specialist:
- Go to Settings → AIWP Copilot
- Change specialist to "Frontend Specialist"
- Save settings
- Open a new page
- Ask: "Create a hero section with a gradient background"
- Repeat for each specialist
🐛 Troubleshooting
Plugin Won't Activate
Check error logs:
# In PowerShell at: C:\Users\Digi\Documents\Antigravity\aiwordpress\
npx wp-env run cli cat wp-content/debug.log
API Errors
-
🔑 API Key Error
- Verify key in Settings → AIWP Copilot
- Test with: https://console.groq.com/playground
-
⏱️ Rate Limit
- You hit 100 requests/hour
- Wait 1 hour or clear transient:
delete_transient('aiwp_rate_limit_' . get_current_user_id());
-
❌ Connection Error
- Check API endpoint URL
- Verify internet connection
Enable Debug Mode
- Go to Settings → AIWP Copilot
- Check "Enable debug logging"
- Save settings
- Check logs:
wp-content/debug.log
📊 Feature Comparison
| Feature | v1.1 | v2.0 |
|---|---|---|
| Basic AI completion | ✅ | ✅ |
| Error handling | ✅ | ✅ |
| Elementor integration | ✅ | ✅ |
| jQuery fixes | ✅ | ✅ |
| AI Specialist Personas | ❌ | ✅ |
| Specialist Badge UI | ❌ | ✅ |
| Custom System Prompts | ❌ | ✅ |
| Specialist Dropdown | ❌ | ✅ |
🔮 Roadmap
v2.1 (Next)
- [ ] Specialist tier system (Free/Pro/Agency)
- [ ] Custom specialist creation
- [ ] Brand voice training
- [ ] Template library per specialist
v2.2 (Future)
- [ ] Multi-turn conversations
- [ ] Context memory
- [ ] Image generation (DALL-E integration)
- [ ] Voice input
💡 Tips & Best Practices
Getting Better Results
- Be specific - "Create a dark hero section with glassmorphism" vs. "make a hero"
- Use specialist strengths - Frontend for design, SEO for optimization
- Iterate - Ask follow-up questions to refine
- Combine specialists - Use SEO Expert first, then Copywriter
Optimal Prompts
Frontend Specialist:
Create a [component] with:
- [Specific style/design system]
- [Key features]
- [Responsive requirements]
SEO Expert:
Optimize for keyword "[keyword]":
- Meta title (target length)
- Meta description (target length)
- H2/H3 structure
- Schema type
Copywriter:
Write [content type] for [audience]:
- [Tone/voice]
- [Key message]
- [Call to action]
📞 Support
Need Help?
- Check this README first
- Enable debug mode and check logs
- Test API key at https://console.groq.com/playground
- Share error message with developer
Common Issues
"Plugin could not be activated"
- Missing files - reupload complete plugin
- PHP version - requires PHP 7.4+
"No specialist selected"
- Go to Settings → AIWP Copilot
- Select a specialist from dropdown
- Save settings
Widget doesn't appear
- Clear browser cache
- Check if you're in post editor
- Inspect console for errors (F12)
🎯 Quick Reference
API Endpoints
GET /wp-json/aiwp/v1/specialists - List available specialists
POST /wp-json/aiwp/v1/complete - Send completion request
GET /wp-json/aiwp/v1/context/{id} - Get page context
POST /wp-json/aiwp/v1/validate - Validate API credentials
Specialist IDs
'default' // General AI
'frontend' // 🎨 Frontend Specialist
'seo' // 📝 SEO Expert
'copywriter_saas' // ✍️ Copywriter (SaaS)
'copywriter_ecommerce' // 🛍️ Copywriter (E-commerce)
📄 License
GPL v2 or later
🚀 Ready to Go!
Your AIWP Copilot v2.0 is ready! Start by:
- ✅ Activating the plugin
- ✅ Configuring API credentials (recommend Groq)
- ✅ Selecting your first specialist
- ✅ Testing in a new post
Enjoy your AI-powered WordPress assistant! 🎉