AI Author for Websites
AI-powered blog post generator. Train the AI with your knowledge base and create high-quality content.
by Rajan Vijayan · github.com/rajanvijayan/ai-author-for-websites · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/rajanvijayan/ai-author-for-websites/releases/download/v1.1.0/ai-author-for-websites-1.1.0.zipReadme
AI Author for Websites
An AI-powered WordPress plugin that helps create blog posts for your website using a knowledge base to train the AI.
Description
AI Author for Websites leverages artificial intelligence to help you create high-quality blog content. Train the AI with your website's knowledge base, and it will generate relevant, on-brand blog posts.
Features
- AI-Powered Content Generation: Use advanced AI models (Groq, Gemini, Meta Llama) to generate blog posts
- Knowledge Base Training: Train the AI with your existing content, URLs, and custom text
- Easy Configuration: Simple settings page to configure API keys and preferences
- WordPress Integration: Seamlessly integrates with WordPress post editor
Requirements
- WordPress 5.8 or higher
- PHP 8.0 or higher
- Composer for dependency management
Installation
- Clone or download this plugin to your
/wp-content/plugins/directory - Run
composer installto install dependencies - Activate the plugin through the 'Plugins' menu in WordPress
- Navigate to AI Author in the admin menu to configure settings
Configuration
- Go to AI Author > Settings in your WordPress admin
- Enter your AI provider API key (Groq recommended)
- Configure your preferences
- Add content to your knowledge base via AI Author > Knowledge Base
Getting API Keys
Groq (Recommended)
- Visit console.groq.com
- Sign up for a free account
- Create an API key
- Copy and paste it into the plugin settings
Google Gemini
- Visit aistudio.google.com
- Create or sign in to your Google account
- Generate an API key
Usage
-
Train the AI by adding content to the Knowledge Base:
- Add URLs from your website
- Upload documents (PDF, DOC, TXT)
- Add custom text entries
-
Generate blog posts:
- Go to AI Author > Generate Post
- Enter a topic or title
- Click "Generate" to create a draft
Development
Setup
# Install PHP dependencies
composer install
# Run code style checks
composer phpcs
# Auto-fix code style issues
composer phpcbf
Directory Structure
ai-author-for-websites/
├── ai-author-for-websites.php # Main plugin file
├── includes/ # PHP classes
│ ├── class-admin-settings.php
│ ├── class-knowledge-manager.php
│ └── class-rest-api.php
├── assets/ # CSS and JS files
│ ├── css/
│ └── js/
├── vendor/ # Composer dependencies
├── composer.json
└── README.md
Changelog
1.0.0
- Initial release
- AI content generation
- Knowledge base management
- Settings page with API configuration
License
GPL v2 or later - https://www.gnu.org/licenses/gpl-2.0.html
Author
Rajan Vijayan - rajanvijayan.com
Credits
This plugin uses the AI Engine library for AI provider integrations.
Read the full README on GitHub →