WP Manifestindependent plugin directory
manifest / unclassified / wp-ai-assistant

WP AI Assistant

πŸš€ Free AI chatbot for WordPress using Groq API. Add an intelligent assistant to any WP site in minutes. Customizable appearance, WooCommerce integration, multilingual ready. No coding required. Self-hosted updates included. Built for agencies and site owners who want AI without monthly fees.

by Carlos Llamas Β· github.com/carlosllamax/wp-ai-assistant Β· website

β˜… 0stars
0forks

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/carlosllamax/wp-ai-assistant/archive/refs/heads/main.zip

Readme

WP AI Assistant

πŸ€– Free AI chatbot plugin for WordPress powered by Groq/OpenAI. Add an intelligent assistant to any WordPress site in minutes.

✨ Features

  • πŸ†“ Free to use - BYOK (Bring Your Own Key) model, no monthly fees
  • πŸš€ Groq Support - Use Llama 3.1 70B for free with Groq API
  • πŸ€– OpenAI Compatible - Also supports GPT-4 and other OpenAI models
  • πŸ›’ WooCommerce Integration - Order lookup with email verification
  • 🌍 Multilingual Ready - WPML and Polylang compatible
  • 🎨 Fully Customizable - Colors, icons, avatar, position, and more
  • πŸ“± Responsive Design - Works perfectly on mobile devices
  • πŸŒ™ Dark Mode - Automatic dark mode support
  • πŸ”’ Privacy First - No data sent to third parties (except AI provider)
  • πŸ”„ Auto Updates - Self-hosted update system

πŸ“Έ Screenshots

Coming soon

πŸš€ Quick Start

1. Get a Free API Key

Get a free Groq API key at console.groq.com/keys

2. Install the Plugin

Option A: Download ZIP

  1. Download the latest release from Releases
  2. Go to WordPress Admin β†’ Plugins β†’ Add New β†’ Upload Plugin
  3. Upload the ZIP file and activate

Option B: Manual Installation

  1. Clone this repository to /wp-content/plugins/wp-ai-assistant/
  2. Activate the plugin in WordPress Admin

3. Configure

  1. Go to WP AI Assistant in the WordPress admin menu
  2. Paste your Groq API key
  3. Enable the assistant
  4. Customize appearance as needed

That's it! The chat widget will appear on your site.

βš™οΈ Configuration Options

AI Provider Settings

Setting Description Default
Provider Groq or OpenAI Groq
API Key Your API key -
Model AI model to use llama-3.1-70b-versatile
System Prompt Custom instructions for the AI Auto-generated

Appearance

Setting Description Default
Widget Position Bottom-right or bottom-left Bottom-right
Primary Color Main color for the widget #0073aa
Chat Icon Icon style (chat, message, help, bot, headset, custom) Chat
Custom Icon Upload your own icon image -
Header Avatar Custom avatar for the chat header -
Welcome Message First message shown to users "Hello! How can I help you today?"

Context Sources

Setting Description Default
Include Pages AI can reference your pages βœ… Enabled
Include Products AI knows about WooCommerce products βœ… Enabled
Include FAQs AI uses FAQ content βœ… Enabled
Custom Context Add custom knowledge base -
Enable Order Lookup Allow customers to check orders βœ… Enabled

Other Settings

Setting Description Default
Rate Limit Max requests per minute per user 20
Hide Branding Remove "Powered by" footer ❌ Disabled

πŸ›’ WooCommerce Integration

When WooCommerce is active, customers can:

  1. Click the order icon in the chat
  2. Enter their order number and email
  3. Ask questions about their specific order

The AI will have access to:

  • Order status
  • Items ordered
  • Shipping information
  • Order total

Security: Orders are verified by matching the email address before revealing any information.

🌍 Multilingual Support

The plugin automatically detects the current language when using:

  • WPML - WordPress Multilingual Plugin
  • Polylang - Multilingual plugin

The AI will respond in the detected language and only reference content in that language.

🎨 Customization

CSS Customization

The widget uses CSS custom properties that you can override:

#wpaia-chat-widget {
    --wpaia-primary: #your-color;
    --wpaia-radius: 16px;
    --wpaia-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

Hooks & Filters

// Modify the system prompt
add_filter('wpaia_system_prompt', function($prompt, $context) {
    return $prompt . "\n\nAdditional instructions here.";
}, 10, 2);

// Add custom context
add_filter('wpaia_context', function($context) {
    $context['custom'] = 'Your custom data here';
    return $context;
});

// Modify AI response before displaying
add_filter('wpaia_response', function($response) {
    return $response;
});

πŸ“‹ Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher
  • SSL certificate (HTTPS) recommended
  • Groq or OpenAI API key

πŸ”§ Development

File Structure

wp-ai-assistant/
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   β”œβ”€β”€ admin.css
β”‚   β”‚   └── chat-widget.css
β”‚   └── js/
β”‚       β”œβ”€β”€ admin.js
β”‚       └── chat-widget.js
β”œβ”€β”€ includes/
β”‚   β”œβ”€β”€ class-admin.php
β”‚   β”œβ”€β”€ class-chat-widget.php
β”‚   β”œβ”€β”€ class-context-builder.php
β”‚   β”œβ”€β”€ class-conversation.php
β”‚   β”œβ”€β”€ class-rest-api.php
β”‚   └── providers/
β”‚       β”œβ”€β”€ class-provider-interface.php
β”‚       β”œβ”€β”€ class-groq.php
β”‚       └── class-openai.php
β”œβ”€β”€ integrations/
β”‚   └── class-woocommerce.php
β”œβ”€β”€ languages/
β”œβ”€β”€ README.md
β”œβ”€β”€ readme.txt
└── wp-ai-assistant.php

Building for Production

# Create distributable ZIP
zip -r wp-ai-assistant.zip wp-ai-assistant -x "*.git*" -x "*.DS_Store"

πŸ“ Changelog

1.0.0 (2025-01-XX)

  • Initial release
  • Groq and OpenAI provider support
  • WooCommerce order lookup integration
  • WPML/Polylang multilingual support
  • Customizable chat widget
  • Self-hosted update system

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the GPL-2.0-or-later License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Carlos Llamas

πŸ’– Support

If you find this plugin useful, consider:

  • ⭐ Starring the repository
  • πŸ› Reporting bugs
  • πŸ’‘ Suggesting new features
  • πŸ“– Improving documentation

Made with ❀️ for the WordPress community

Read the full README on GitHub →