[06]
AI ARTICLE GENERATOR
█ TIER A · YEAR 2026 · STATUS: LIVE · LANGUAGES: TYPESCRIPT
Long-form SEO articles from a brief — chat editing & DOCX export
[FIG. 1] MISSION
A long-form Polish SEO article generator on Google Gemini (`@google/genai`). From a brief (topic, keywords, audience, length-in-pages → enforced word and section counts) it produces substantive text that mimics a pasted reference style and is grounded in facts from given URLs. The draft is refined by chat — edits go through Gemini function calling (`update_article_content`), not manual rewriting. DOCX export with custom formatting metatags, tuned for SGE/AI Search. React + Vite, deployed on Vercel.
[FIG. 2] ARCHITECTURE
hover a block to see its description
[FIG. 2A] PROMPT ANATOMY
services/geminiService.ts → PROMPT (1×, parametrized)
Write an article of MINIMUM 2,750 words (5 pages × 550 words/page). Do not summarize, do not shorten sections.
Analyze the reference text below and copy its tone, sentence rhythm and formatting — the article must read like the same newsroom.
IMMUTABLE RULES (hold on every edit iteration): keep the title, keep the keywords, keep the H2/H3 structure.
Format: # H1 · ## H2 · ### H3 · [CENTER] centered heading — tags mapped 1:1 onto the DOCX structure (Roboto).
- LLMs summarize by default — a hard word floor enforces length
- brand-tone mimicry instead of generic „AI text”
- rules held on EVERY call, including the edit loop
- heading-faithful export — metatags instead of HTML parsing
[FIG. 3] CHALLENGES
[+][CH-01]
Enforcing length and structure against the model's urge to summarize — hard word floor, minimum H2/H3 sections, no-brevity rule.
[+][CH-02]
Iterative editing without context loss — function calling returning full new content + a change summary, instead of regenerating from scratch.
[+][CH-03]
Consistent tone over long text — style-reference analysis + 'immutable' rules held on every call.
[FIG. 4] AI LAYER
Long-form SEO articles from a brief — chat editing & DOCX export
[FIG. 5] GALLERY
SCREENSHOTS INCOMING — see SHOTS-WANTED