AI Content Assistant
WordPress plugin that integrates Google Gemini AI into the post editor
by Vaibhav Kumar · github.com/vaibhavkumar-wpdev/ai-content-assistant · 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/vaibhavkumar-wpdev/ai-content-assistant/archive/refs/heads/main.zipAI Content Assistant for WordPress
A custom WordPress plugin that integrates Google Gemini AI directly into the WordPress post editor. Generate content drafts, blog posts, product descriptions, and more — without leaving WordPress.
Features
- Generate AI content directly inside the WordPress post editor
- Four writing tones: Professional, Casual, Technical, SEO Optimized
- Powered by Google Gemini 2.0 Flash (free API — no credit card required)
- Insert, append, or copy generated content with one click
- Works with both Gutenberg (Block Editor) and Classic Editor
- Secure API key storage in WordPress options table
- Nonce-based AJAX security (CSRF protected)
- Rate limit and error handling built in
- Clean, minimal admin UI — no bloat
Screenshots
Settings Page
Settings → AI Content Assistant → Paste your API key and choose your model.
Post Editor Meta Box
The AI Content Assistant box appears on the right side of every post and page editor.
Installation
- Download the plugin ZIP file
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Upload the ZIP file and click Install Now
- Click Activate Plugin
- Go to Settings → AI Content Assistant
- Paste your Google Gemini API key
- Click Save Settings
Getting a Free Gemini API Key
- Go to aistudio.google.com
- Sign in with your Google account
- Click "Create API key"
- Copy and paste the key into plugin settings
Free tier limits: 15 requests/minute, 1,500 requests/day. No credit card required.
How to Use
- Open any post or page in the WordPress editor
- Find the 🤖 AI Content Assistant box on the right side panel
- Type your prompt (what you want to write about)
- Select a writing tone (Professional, Casual, Technical, or SEO Optimized)
- Click ✨ Generate with Gemini
- Wait 3–5 seconds for the AI response
- Click ↩ Insert into Post to replace editor content
- Or click ↓ Append to Post to add after existing content
- Or click 📋 Copy to copy to clipboard
Supported Models
| Model | Speed | Quality | Cost |
|---|---|---|---|
| Gemini 2.0 Flash | Fastest | Very Good | Free |
| Gemini 1.5 Flash | Fast | Good | Free |
| Gemini 1.5 Pro | Moderate | Best | Free (limited) |
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Google Gemini API key (free)
Error Reference
| Error | Cause | Fix |
|---|---|---|
| API key not set | No key in settings | Add key in Settings → AI Content Assistant |
| Invalid API key | Wrong or deleted key | Regenerate key at aistudio.google.com |
| Rate limit reached | Too many requests | Wait 1 minute and try again |
| Empty response | Gemini returned nothing | Try a different or more specific prompt |
| Connection error | No internet | Check your server internet connection |
This Plugin as a Service
This plugin demonstrates the kind of AI integration I build for WordPress clients:
- OpenAI API integration into WordPress and WooCommerce
- Claude AI integration for custom WordPress workflows
- AI chatbots for customer support and lead qualification
- AI-powered WooCommerce product recommendations
- N8n + AI automation connected to WordPress
Need a custom AI integration for your WordPress site? Contact me on Upwork
Author
Vaibhav Kumar WordPress & AI Integration Developer Top Rated on Upwork | 97% Job Success | 3,100+ Hours
License
GPL v2 or later — https://www.gnu.org/licenses/gpl-2.0.html
Changelog
1.0.0
- Initial release
- Gemini 2.0 Flash, 1.5 Flash, 1.5 Pro support
- Four writing tones
- Gutenberg and Classic Editor support
- Insert, Append, Copy actions
- Secure nonce-based AJAX