WP Manifestindependent plugin directory
manifest / ai / ai-agent-for-website

AI Agent for Website

Add an AI-powered chat agent to your website using Groq API. Train it with your website content.

by Rajan Vijayan · github.com/rajanvijayan/ai-agent-for-website · website

0stars
54release downloads
≈10active sites
1forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/rajanvijayan/ai-agent-for-website/releases/download/v1.10.0/ai-agent-for-website-1.10.0.zip

Readme

AI Agent for Website

A WordPress plugin that adds an AI-powered chat agent to your website. Train it with your website content using the Knowledge Base feature.

Features

  • 🤖 AI-powered chat widget - Beautiful floating chat bubble
  • 📚 Knowledge Base (RAG) - Train AI with your website content
  • Ultra-fast responses - Powered by Groq API
  • 🎨 Customizable - Colors, position, AI name, persona
  • 💬 Conversation memory - Remembers context during chat
  • 📱 Mobile responsive - Works on all devices
  • 🔧 Easy configuration - WordPress admin panel

Installation

Step 1: Install Dependencies

Navigate to the plugin directory and run:

cd wp-content/plugins/ai-agent-for-website
composer install

This will install the AI Engine library from GitHub.

Step 2: Activate Plugin

Go to WordPress Admin → Plugins and activate "AI Agent for Website".

Step 3: Configure

  1. Go to AI Agent → Settings
  2. Enter your Groq API key (get free at console.groq.com)
  3. Customize AI name, welcome message, and appearance
  4. Enable the chat widget

Step 4: Add Knowledge (Optional)

  1. Go to AI Agent → Knowledge Base
  2. Add your website pages or custom text
  3. The AI will use this content to answer questions

Usage

Floating Widget

Once enabled in settings, a chat bubble appears on all pages.

Shortcode

Embed the chat anywhere:

[ai_agent_chat]

With custom dimensions:

[ai_agent_chat height="600px" width="100%"]

Configuration Options

Setting Description
API Key Your Groq API key
AI Name Name shown in chat header
Welcome Message First message when chat opens
System Instruction AI personality/behavior instructions
Widget Position Bottom-right or bottom-left
Primary Color Theme color for the widget

Tech Stack

  • AI Engine: rajanvijayan/ai-engine
  • AI Provider: Groq (Llama models)
  • Frontend: Vanilla JavaScript (no jQuery in widget)
  • API: WordPress REST API

File Structure

ai-agent-for-website/
├── ai-agent-for-website.php    # Main plugin file
├── composer.json               # Dependencies
├── readme.txt                  # WordPress readme
├── assets/
│   ├── css/
│   │   ├── admin.css           # Admin styles
│   │   └── chat-widget.css     # Frontend widget styles
│   └── js/
│       ├── admin.js            # Admin JavaScript
│       └── chat-widget.js      # Frontend widget JavaScript
├── includes/
│   ├── class-admin-settings.php    # Settings page
│   ├── class-chat-widget.php       # Widget renderer
│   ├── class-knowledge-manager.php # Knowledge base admin
│   └── class-rest-api.php          # REST API endpoints
└── vendor/                     # Composer dependencies

REST API Endpoints

Endpoint Method Description
/ai-agent/v1/chat POST Send chat message
/ai-agent/v1/new-conversation POST Start new conversation
/ai-agent/v1/test POST Test API connection (admin only)
/ai-agent/v1/fetch-url POST Fetch URL for knowledge base (admin only)

Requirements

  • WordPress 5.8+
  • PHP 8.0+
  • Composer

License

GPL v2 or later

Credits

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.10.0 Jan 19, 2026 ai-agent-for-website-1.10.0.zip 2
v1.9.0 Dec 29, 2025 ai-agent-for-website-1.9.0.zip 9
v1.8.0 Dec 29, 2025 ai-agent-for-website-1.8.0.zip 1
v1.7.1 Dec 29, 2025 ai-agent-for-website-1.7.1.zip 6
v1.7.0 Dec 20, 2025 ai-agent-for-website-1.7.0.zip 18
v1.6.0 Dec 20, 2025 ai-agent-for-website-1.6.0.zip 3
v1.5.0 Dec 20, 2025 ai-agent-for-website-1.5.0.zip 3
v1.4.0 Dec 20, 2025 ai-agent-for-website-1.4.0.zip 3
v1.3.0 Dec 20, 2025 ai-agent-for-website-1.3.0.zip 1
v1.2.0 Dec 19, 2025 ai-agent-for-website-1.2.0.zip 0
v1.1.0 Dec 18, 2025 ai-agent-for-website-1.1.0.zip 3
v1.0.2 Dec 18, 2025 ai-agent-for-website-1.0.2.zip 5

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.