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:

Using AI Content

In the Post Editor

When editing a blog post or page, AI content tools are available in the editor toolbar:

  1. Generate — Create new content from a prompt
  2. Improve — Rewrite selected text for clarity or style
  3. Summarize — Create a shorter version of selected text
  4. Expand — Add more detail to selected text

How It Works

  1. Select text or position your cursor in the editor
  2. Click the AI action you want
  3. Provide a prompt or instruction (for generation)
  4. The AI generates content and inserts it into the editor
  5. 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

  1. Always review AI output — AI-generated content should be reviewed and edited
  2. Use as a starting point — AI is best for drafts, not final content
  3. Adjust temperature — Lower (0.3) for factual content, higher (0.8) for creative
  4. Set appropriate max tokens — Higher for long-form content, lower for summaries
  5. Choose the right model — Larger models produce better output but cost more