AI Features

AI Features

Introduction

ElmapiCMS includes built-in AI capabilities that help you manage your content faster and smarter. The AI is integrated into multiple parts of the CMS: a chat assistant for managing your projects, inline tools for editing content, and one-click entry translation.

BYOK (Bring Your Own Key)

ElmapiCMS does not include or resell AI services. You connect your own API key from a supported provider. You have full control over which provider and model you use, and all costs are between you and your provider.

What Can AI Do?

AI Assistant (Chat Panel)

The AI assistant lives in a chat panel accessible from anywhere in the CMS. It can perform actions on your behalf through natural conversation:

  • Create projects with locales and settings
  • Create collections with fields, validations, and field groups
  • Create and update content entries across any collection
  • Navigate to any page in the CMS
  • Search projects, collections, and entries
  • Manage fields: add, update, or delete fields from collections

The assistant understands your CMS structure and uses tools to make changes directly. It is context-aware and knows which project you're in and what collections are available.

Inline Content AI Tools

When editing content, AI tools are available directly in text, long text, and rich text fields:

  • Generate: Write new content from a prompt
  • Improve: Rewrite text in a specific tone (Professional, Casual, Friendly, Formal, Concise)
  • Expand: Add more detail and depth to existing text
  • Summarize: Condense text to key points
  • Fix Grammar: Correct spelling, grammar, and punctuation
  • Translate: Translate text to any project locale
  • Custom Rewrite: Rewrite with a custom instruction (e.g., "make it more persuasive")

All tools work with streaming, so you see the AI response appear in real-time. An undo button lets you revert any AI change instantly.

MCP Server (IDE & Agent Integration)

The ElmapiCMS MCP Server lets you connect AI-powered editors and agents directly to your CMS. Install it in Cursor, Claude Code, or any MCP-compatible tool and manage your content through natural language:

  • Create and manage collections with fields, validations, and field groups
  • Create and edit content entries across any collection
  • Upload and manage assets from your editor
  • Schema-aware: Built-in resources help AI agents understand your field types and collection structure

The MCP server is available as an npm package: @elmapicms/mcp-server. See MCP Server for setup instructions.

AI Entry Translation

From the Translations dialog on any content entry, you can translate an entire entry to another locale with one click. The AI will:

  • Create a new entry in the target locale
  • Translate all text, long text, and rich text fields
  • Preserve HTML formatting in rich text
  • Generate proper slugs from translated titles
  • Copy non-text fields (media, relations, numbers, dates, etc.) as-is
  • Link the new entry as a translation of the original

Supported Providers

ElmapiCMS supports the following AI providers:

ProviderAPI Key Variable
OpenAIOPENAI_API_KEY
AnthropicANTHROPIC_API_KEY
Google GeminiGEMINI_API_KEY

When the Model Override field is left empty, the provider's default model is used automatically. You can specify a custom model name in AI Settings if you prefer a particular model (e.g., gpt-4o, claude-haiku-4-20250414, gemini-2.0-flash-lite).

Model Compatibility

The AI Assistant requires a model that supports tool calling (function calling). Most modern models support this, but some smaller or older models may not. If you encounter errors after changing the model, try reverting to the default.

The inline content tools (generate, rewrite, translate, etc.) work with any text generation model.

Quick Setup

  1. Get an API key from your preferred provider (OpenAI, Anthropic, or Google AI Studio)
  2. Add the API key to your .env file:
# Choose one (or more) provider
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=AI...
  1. Go to App Settings > AI in the CMS
  2. Enable AI features and select your provider
  3. Save, and you're ready to go

For detailed setup instructions, see Setting Up AI.

Search documentation

Find guides and reference pages