How to Add ChatGPT to WordPress (Free Guide 2025)
Want to use ChatGPT, Claude, or other AI models directly inside your WordPress dashboard? You're in the right place.
In this guide, I'll show you how to add AI chat capabilities to WordPress in under 5 minutes—without monthly subscriptions, without sending your data to third parties, and with full control over which AI models you use.
What you'll learn:
- How to install an AI chat plugin for WordPress
- How to connect your own API keys (OpenAI, Anthropic, Google, etc.)
- How to chat with your documents using AI
- Pro tips for getting the most out of AI in WordPress
Why Add AI to WordPress?
If you're running a WordPress site, you're probably already using AI tools like ChatGPT or Claude. But switching between browser tabs gets old fast.
Here's why having AI directly in WordPress makes sense:
For Content Creators
- Draft posts, headlines, and meta descriptions without leaving your dashboard
- Rewrite content in different tones
- Generate ideas when you're stuck
For Developers & Agencies
- Debug code and get technical answers instantly
- Create documentation
- Build AI-powered features for clients
For Businesses
- Search through company documents with AI
- Create internal knowledge bases
- Keep sensitive data on your own server
The problem? Most AI tools are SaaS products that charge per seat, store your data on their servers, and lock you into one provider.
There's a better way.
Method 1: ChatProjects Plugin (Recommended)
ChatProjects is a WordPress plugin that brings AI chat directly into your dashboard. Here's what makes it different:
- Use your own API keys – Pay AI providers directly (often cheaper than subscriptions)
- Multiple AI providers – Switch between GPT-4, Claude, Gemini, DeepSeek, and 100+ models via OpenRouter
- Your data stays local – Conversations stored in your WordPress database, not external servers
- Document AI – Upload PDFs and files, then ask questions about them
Step 1: Download and Install
- Go to chatprojects.com/free
- Download the free plugin ZIP file
- In WordPress, go to Plugins → Add New → Upload Plugin
- Upload the ZIP and click Install Now
- Click Activate
Step 2: Get Your API Keys
ChatProjects works with multiple AI providers. You only need one to get started.
OpenAI (GPT-4, GPT-4o)
- Go to platform.openai.com
- Create an account or sign in
- Navigate to API Keys
- Click "Create new secret key"
- Copy the key (you won't see it again)
Anthropic (Claude)
- Go to console.anthropic.com
- Create an account
- Go to API Keys
- Generate a new key
Google (Gemini)
- Go to aistudio.google.com
- Click "Get API Key"
- Create a key for your project
Step 3: Configure ChatProjects
- In WordPress, go to ChatProjects → Settings
- Click on the provider you want to use (OpenAI, Anthropic, etc.)
- Paste your API key
- Click Save
Your API key is encrypted using AES-256-CBC before being stored in your database. It never leaves your server.
Step 4: Start Chatting
- Go to ChatProjects in your WordPress menu
- Click New Chat
- Type your message and hit Enter
That's it. You're now chatting with AI inside WordPress.
Method 2: Other Options
There are other WordPress AI plugins available. Here's a quick comparison:
| Feature | ChatProjects | AI Engine | Others |
|---|---|---|---|
| Multiple AI providers | ✓ (5+ providers) | Partial | Varies |
| Own API keys | ✓ | ✓ | Some |
| Document AI (RAG) | ✓ | ✗ | Rare |
| Local data storage | ✓ | ✓ | Varies |
| Price | Free / $120/yr Pro | $$$ | Varies |
AI Engine is a solid alternative if you only need OpenAI. However, it lacks document AI capabilities and multi-provider support.
For most users, ChatProjects offers the best combination of features, flexibility, and value—especially if you want to chat with documents or compare different AI models.
Setting Up Your First AI Project
ChatProjects organizes conversations into "Projects." Think of a project as a workspace with its own context and instructions.
Create a Project
- Go to ChatProjects → Projects
- Click New Project
- Give it a name (e.g., "Content Writing" or "Code Assistant")
- Add custom instructions (optional but powerful)
Custom Instructions Examples
For content writing:
You are a content writer for a WordPress blog about [your topic].
Write in a conversational, helpful tone.
Use short paragraphs and bullet points.
Always include actionable takeaways.
For code assistance:
You are a senior WordPress developer.
When providing code, use modern PHP practices.
Explain your reasoning.
Always consider security implications.
For business documents:
You are an assistant for [Company Name].
Be concise and professional.
When referencing policies, cite the specific document.
If unsure, say so rather than guessing.
Custom instructions are sent with every message in that project, so the AI always has the right context.
Advanced: Chat with Your Documents
This is where ChatProjects really shines.
Document AI (also called RAG—Retrieval-Augmented Generation) lets you upload files and ask questions about them. The AI actually reads and understands your documents, not just keyword matching.
How to Use Document AI
- Create or open a project
- Click the Upload button
- Select your file (PDF, Word, Excel, code files—up to 512MB)
- Wait for processing (usually seconds)
- Ask questions about your document
Example Use Cases
HR Policy Search
Upload your employee handbook. Ask: "What's our policy on remote work?"
Technical Documentation
Upload API docs. Ask: "How do I authenticate requests?"
Research
Upload multiple PDFs. Ask: "Summarize the main findings across these papers."
Legal Review
Upload a contract. Ask: "What are the termination clauses?"
The AI searches through your documents semantically—it understands meaning, not just keywords. So asking "vacation policy" will find relevant content even if the document uses "PTO" or "time off."
Pro Features (Optional Upgrade)
The free version of ChatProjects covers most use cases. But if you need more, Pro ($120/year) adds:
- Unlimited projects (free limited to 5)
- AI image generation – Create and edit images with Gemini or DALL-E
- Side-by-side model comparison – Compare Claude vs GPT in real-time
- Audio transcription – Convert recordings to text with Whisper
- White-label branding – Remove ChatProjects branding for client sites
- Export chats – Download conversations as Markdown, JSON, or HTML
If you're an agency or power user, Pro pays for itself quickly. But start with free—it's genuinely useful on its own.
Troubleshooting
"Invalid API key" error
Double-check that you copied the entire key. API keys are long strings—make sure there are no extra spaces.
Slow responses
This is usually the AI provider, not the plugin. Try a faster model (GPT-4o-mini is quick) or check the provider's status page.
Document upload fails
Check your file size (max 512MB) and format. PDFs work best. Some scanned PDFs may need OCR first.
Can't find ChatProjects in menu
Make sure the plugin is activated. Go to Plugins → Installed Plugins and verify ChatProjects shows "Active."
Conclusion
Adding AI to WordPress takes 5 minutes with ChatProjects:
- Download from chatprojects.com/free
- Install and activate
- Add your API key
- Start chatting
You get GPT-4, Claude, Gemini, and 100+ other models—all in your WordPress dashboard, using your own API keys, with your data staying on your server.
No monthly per-seat fees. No data leaving your control. Just AI that works where you work.
Ready to add AI to WordPress?
Download the free plugin and start chatting with AI in minutes.
Need unlimited projects, image generation, or white-label branding? ChatProjects Pro is $120/year—less than one month of ChatGPT Team.