Skip to content

digitalhustlerx/aiwordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ 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

  1. Download aiwp-copilot-v2-complete.zip
  2. Extract to: C:\Users\Digi\Documents\Antigravity\aiwordpress\wp-content\plugins\
  3. Folder structure should be:
    wp-content/
    โ””โ”€โ”€ plugins/
        โ””โ”€โ”€ aiwp-copilot/
            โ”œโ”€โ”€ aiwp-copilot.php
            โ”œโ”€โ”€ assets/
            โ””โ”€โ”€ includes/
    

Step 2: Activate Plugin

  1. Go to http://localhost:8888/wp-admin/plugins.php
  2. Find "AIWP Copilot"
  3. Click "Activate"

Step 3: Configure Settings

  1. Go to Settings โ†’ AIWP Copilot
  2. 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

  1. Scroll to AI Specialist Mode section
  2. Select from dropdown (e.g., "๐ŸŽจ Frontend Specialist")
  3. Read the description to understand what each specialist does
  4. 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

  1. Open any post/page in WordPress editor
  2. Look for the AI Copilot widget in bottom-right corner
  3. Type a test prompt, e.g., "Write a paragraph about AI"
  4. Check specialist badge shows your selected specialist

Test Each Specialist

Create a new page and test each specialist:

  1. Go to Settings โ†’ AIWP Copilot
  2. Change specialist to "Frontend Specialist"
  3. Save settings
  4. Open a new page
  5. Ask: "Create a hero section with a gradient background"
  6. 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

  1. ๐Ÿ”‘ API Key Error

  2. โฑ๏ธ Rate Limit

    • You hit 100 requests/hour
    • Wait 1 hour or clear transient:
    delete_transient('aiwp_rate_limit_' . get_current_user_id());
  3. โŒ Connection Error

    • Check API endpoint URL
    • Verify internet connection

Enable Debug Mode

  1. Go to Settings โ†’ AIWP Copilot
  2. Check "Enable debug logging"
  3. Save settings
  4. 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

  1. Be specific - "Create a dark hero section with glassmorphism" vs. "make a hero"
  2. Use specialist strengths - Frontend for design, SEO for optimization
  3. Iterate - Ask follow-up questions to refine
  4. 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?

  1. Check this README first
  2. Enable debug mode and check logs
  3. Test API key at https://console.groq.com/playground
  4. 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:

  1. โœ… Activating the plugin
  2. โœ… Configuring API credentials (recommend Groq)
  3. โœ… Selecting your first specialist
  4. โœ… Testing in a new post

Enjoy your AI-powered WordPress assistant! ๐ŸŽ‰

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors