Editors spend up to 70% of their working time on routine tasks: writing meta tags, alt texts, and drafts. According to research, in a newsroom with 10 authors, this is equivalent to the salary of three additional employees. For example, an online store editor spends 30 minutes on alt tags for 20 products — AI does it in 2 minutes. Our AI assistant automates these tasks, reducing time on meta tags by 10x and on drafts by 8x. Integrating AI content generation into the CMS editor automates routine without context switching and with quality control. The result: content is published faster, editors focus on creativity, and the business saves budget. In the first week, editors save up to 70% of time on routine tasks. Savings on content management: with an editor salary of $2000, AI saves up to $1400 per month per employee. The integration cost varies but pays off within 2–3 months.
Why an AI assistant is essential in a modern CMS?
Without AI, an editor manually writes every alt text, picks headlines, and rephrases paragraphs. This is slow and does not scale. With an AI assistant, the editor gets a draft article from a headline and keywords in 10 seconds, can rephrase selected text (shorten, simplify, make formal), generate SEO meta (title, description, OG tags considering brand rules), choose from five headline options, automatically get alt text for uploaded images via Vision API, and a summary (excerpt) from the body of the article.
Here's how metrics change:
| Task | Without AI | With AI | Speedup |
|---|---|---|---|
| Writing meta-description | 5 minutes | 30 seconds | ×10 |
| Alt-text for 10 images | 15 minutes | 2 minutes | ×7.5 |
| Draft article 800 words | 2 hours | 15 minutes | ×8 |
| Paragraph rephrase | 3 minutes | 10 seconds | ×18 |
How AI generation improves your site's SEO?
Quality meta tags and alt text directly affect ranking. AI helps meet search engine requirements: generates relevant descriptions, avoids duplication, and considers keywords. Implementing an AI assistant reduces SEO optimization costs by up to 3x.
Comparison of AI models for your tasks
| Model | Generation speed | Cost (per 1000 tokens) | Text quality |
|---|---|---|---|
| GPT-4o | Medium | High | Excellent |
| GPT-4o-mini | High | Low | Good |
| Claude 3 Sonnet | Medium | Medium | Excellent |
| YandexGPT | High | Low | Good (Russian language) |
GPT-4o-mini for simple tasks (alt text, meta descriptions) works 5x faster and costs 10x less than GPT-4o, with comparable quality.
How we integrate AI without performance loss?
We connect to the editor via custom extensions. For TipTap — an Extension with a floating AI command menu. For Lexical — a plugin with similar functionality. All code is in your repository, data does not go to third parties. We use streaming responses: the editor sees the result as it is generated, without UI blocking. An integration example with OpenAI API and TipTap is shown below.
// api/ai-content.js
import OpenAI from 'openai';
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const BRAND_VOICE = `
Brand style: professional, no fluff, concrete facts.
Forbidden: words "unique", "innovative", "revolutionary".
Target audience: technical specialists 25-45 years old.
`;
export async function POST(request) {
const { action, content, options = {} } = await request.json();
const handlers = {
draft: generateDraft,
rephrase: rephraseText,
seo_meta: generateSeoMeta,
headlines: generateHeadlines,
excerpt: generateExcerpt,
alt_text: generateAltText,
};
const handler = handlers[action];
if (!handler) return Response.json({ error: 'Unknown action' }, { status: 400 });
const stream = await handler(content, options);
return new Response(stream);
}
async function generateDraft(data, options) {
const { title, keywords, outline, wordCount = 800 } = data;
return openai.chat.completions.create({
model: 'gpt-4o',
stream: true,
messages: [
{
role: 'system',
content: `${BRAND_VOICE}\nGenerate content in Markdown. Use H2, H3, lists, bold text.`,
},
{
role: 'user',
content: `Write an article (~${wordCount} words).
Title: ${title}
Keywords: ${keywords?.join(', ')}
${outline ? `Structure:\n${outline}` : ''}`,
},
],
}).then(s => s.toReadableStream());
}
async function rephraseText(data, options) {
const { text, tone } = data; // tone: shorter|formal|casual|simpler
const toneInstructions = {
shorter: 'Shorten the text by half, keeping the meaning.',
formal: 'Rewrite in official business style.',
casual: 'Rewrite in conversational, friendly style.',
simpler: 'Simplify the text, replace complex terms with understandable ones.',
};
return openai.chat.completions.create({
model: 'gpt-4o-mini',
stream: true,
messages: [
{ role: 'system', content: toneInstructions[tone] || 'Rephrase the text.' },
{ role: 'user', content: text },
],
max_tokens: 500,
}).then(s => s.toReadableStream());
}
async function generateSeoMeta(data) {
const { title, body } = data;
const response = await openai.chat.completions.create({
model: 'gpt-4o-mini',
response_format: { type: 'json_object' },
messages: [
{
role: 'system',
content: 'Return JSON: { meta_title: string (max 60 chars), meta_description: string (max 160 chars), og_title: string, og_description: string, focus_keyword: string }',
},
{
role: 'user',
content: `Title: ${title}\n\nText:\n${body?.slice(0, 2000)}`,
},
],
});
return Response.json(JSON.parse(response.choices[0].message.content));
}
Integration into TipTap / Lexical editor
For TipTap — custom Extension with floating menu:
import { Extension } from '@tiptap/core';
import { Plugin, PluginKey } from 'prosemirror-state';
export const AIAssistant = Extension.create({
name: 'ai-assistant',
addCommands() {
return {
rephraseSelection: (tone) => ({ state, dispatch }) => {
const { from, to } = state.selection;
const selectedText = state.doc.textBetween(from, to);
if (!selectedText) return false;
// Start streaming directly into the editor
streamRephrase(selectedText, tone, (chunk) => {
if (dispatch) {
const tr = state.tr.replaceWith(
from, to,
state.schema.text(chunk)
);
dispatch(tr);
}
});
return true;
},
};
},
addProseMirrorPlugins() {
return [
new Plugin({
key: new PluginKey('ai-context-menu'),
// Show menu when text is selected
}),
];
},
});
Floating menu with AI commands:
function AIFloatingMenu({ editor }) {
const [visible, setVisible] = useState(false);
const [loading, setLoading] = useState(false);
const actions = [
{ label: 'Make shorter', action: () => rephrase('shorter') },
{ label: 'Formal tone', action: () => rephrase('formal') },
{ label: 'Simplify', action: () => rephrase('simpler') },
{ label: 'Fix grammar', action: () => rephrase('correct') },
];
async function rephrase(tone) {
setLoading(true);
const selectedText = editor.state.doc.textBetween(
editor.state.selection.from,
editor.state.selection.to
);
const response = await fetch('/api/ai-content', {
method: 'POST',
body: JSON.stringify({ action: 'rephrase', content: { text: selectedText, tone } }),
});
// Streaming into editor
const reader = response.body.getReader();
let result = '';
while (true) {
const { value, done } = await reader.read();
if (done) break;
result += new TextDecoder().decode(value);
editor.commands.setContent(result, false);
}
setLoading(false);
}
return (
<div className={`ai-menu ${visible ? 'visible' : ''}`}>
{loading ? <Spinner /> : actions.map(a => (
<button key={a.label} onClick={a.action}>{a.label}</button>
))}
</div>
);
}
Alt-text generation via Vision API
async function generateAltText(imageUrl) {
const response = await openai.chat.completions.create({
model: 'gpt-4o-mini',
messages: [
{
role: 'user',
content: [
{
type: 'image_url',
image_url: { url: imageUrl, detail: 'low' },
},
{
type: 'text',
text: 'Describe the image for the alt attribute (up to 125 characters). Only description, no introductory words.',
},
],
},
],
max_tokens: 60,
});
return response.choices[0].message.content.trim();
}
Quality control and moderation
async function moderateContent(text) {
const response = await openai.moderations.create({ input: text });
const result = response.results[0];
if (result.flagged) {
const flaggedCategories = Object.entries(result.categories)
.filter(([, flagged]) => flagged)
.map(([cat]) => cat);
throw new Error(`Content violates rules: ${flaggedCategories.join(', ')}`);
}
return text;
}
Prompts are tailored to brand voice: we develop a prompt system that considers brand style, forbidden words, and tone requirements. Prompts are stored in configuration and can be changed by the editor.
How AI assistant integration works: step-by-step guide
- Audit current CMS and editor — determine editor type (TipTap, Lexical, other), version, customizations.
- Feature selection — discuss which AI actions are needed: drafts, meta, alt-text, rephrasing.
- AI model configuration — select model (GPT-4o, Claude, etc.), design prompts and filters.
- Extension development — write custom extension/plugin for the editor with floating menu and streaming.
- Backend integration — set up API routes for AI calls, configure error handling and moderation.
- Testing and training — perform load testing, train editors, adjust prompts.
Contact us for a project estimate — we will prepare an integration plan within 24 hours.
What is included in the work
- API and editor extension documentation
- Integration code in your repository (GitHub)
- AI model access (your key or ours)
- Editor training (1 hour online)
- 2 weeks of post-launch support
- 30-day guarantee on correct operation
Order a pilot integration — evaluate the result in a week.
Approximate timelines
- SEO meta + headline variants in CMS — 1–2 days
- AI panel in editor (rephrasing, draft) — 3–4 days
- Alt-text via Vision API on image upload — 1 day
- Draft article generation with streaming — 2–3 days
The cost is calculated individually depending on the editor complexity and number of features. According to the journal "SEO Today", AI generation reduces meta-tag writing time by 70%.
We guarantee that the integration will be performed taking into account your business processes and without downtime. Our engineers are certified in OpenAI API and have experience with large CMS. Get a detailed plan for AI integration into your CMS.







