AI Content Generation
Pro Feature — AI content generation is available in the Pro and Agency tiers.
Unfold CMS integrates with multiple AI providers to help you generate, improve, and translate content directly from the admin panel.
Overview
The AI content system provides:
- Multiple providers — OpenAI, Anthropic (Claude), and Google Gemini
- Content generation — Generate blog posts, descriptions, and more
- Content improvement — Rewrite, summarize, or expand existing text
- In-editor integration — Use AI directly while editing posts
Configuration
Configure AI providers in Settings > AI Content in the admin panel. Each provider has a link to get your API key.
Supported providers:
- OpenAI — Get your API key from platform.openai.com
- Anthropic (Claude) — Get your API key from console.anthropic.com
- Google Gemini — Get your API key from ai.google.dev
Using AI Content
In the Post Editor
When editing a blog post or page, AI content tools are available in the editor toolbar:
- Generate — Create new content from a prompt
- Improve — Rewrite selected text for clarity or style
- Summarize — Create a shorter version of selected text
- Expand — Add more detail to selected text
How It Works
- Select text or position your cursor in the editor
- Click the AI action you want
- Provide a prompt or instruction (for generation)
- The AI generates content and inserts it into the editor
- Review and edit the generated text as needed
Validation
The AI system validates:
- An action type is provided (generate, improve, etc.)
- A prompt or selected text is provided
- The configured provider has a valid API key
- AI features are enabled in settings
Error Handling
| Error | Cause | Solution |
|---|---|---|
| AI disabled (403) | AI features not enabled | Enable in Settings > AI Content |
| Missing API key | No API key for the selected provider | Add your API key in Settings |
| API call failed | Network error or API issue | Check your API key and try again |
| Rate limited | Too many requests | Wait a moment and try again |
Security
- API keys are stored encrypted in the database
- AI requests are made server-side (keys never exposed to the browser)
- Only authenticated admin users can use AI features
- Rate limiting prevents abuse
Best Practices
- Always review AI output — AI-generated content should be reviewed and edited
- Use as a starting point — AI is best for drafts, not final content
- Adjust temperature — Lower (0.3) for factual content, higher (0.8) for creative
- Set appropriate max tokens — Higher for long-form content, lower for summaries
- Choose the right model — Larger models produce better output but cost more
Related
- Content Management — Creating and editing posts
- Configuration — AI settings reference