How AI Writes Articles — the Pipeline

📅 July 21, 20262 min read
Table of Contents

Overview

Every standard article goes through a sequential 19-step pipeline. Each step is logged with its duration and token count. The full process takes 3–5 minutes.

Article generation logs tab showing

The 19 Steps

  1. Load config — site settings, API keys, voice profile, and article type

  2. High-level plan — AI generates a topic outline

  3. Web research — AI researches the topic with live web access to gather current facts

  4. Detailed plan — AI creates a full H2/H3 + FAQ structure

  5. Write article — AI writes the complete Markdown article using the voice profile

  6. Internal links — links to previously published articles are inserted from the link index

  7. Generate meta — slug, title, and meta description are created

  8. Convert to HTML — Markdown is converted to clean HTML

  9. Process images — SerpAPI finds relevant images; for WordPress they are downloaded and uploaded to the media library

  10. Process videos — YouTube Data API finds relevant videos; iframes are embedded

  11. Generate cover — cover image is generated by AI

  12. Upload cover — cover is uploaded to your CMS media library

  13. Generate SEO variants — 3 title variants, 3 meta description variants, and an H1

  14. Resolve category — auto-assign or create a category in the CMS (WordPress only; skipped for other platforms)

  15. Check agency approval — if approval mode is enabled on the site, the article is paused for manager review

  16. Publish to CMS — article is sent to WordPress, Bitrix, InSales, or Joomla as draft or published

  17. Update SEO meta — Yoast SEO or RankMath meta fields are updated on the published post

  18. Update link index — the published article is added to the internal linking index for future articles

  19. Announce social — announcement is posted to connected social channels (Telegram, VK, OK, Pinterest)

Publish-Only Mode

When republishing an existing article, only 4 steps run: Load config → Publish to CMS → Update SEO meta → Update link index. Full regeneration is not triggered.

Retry Logic

If the AI service returns a 5xx error or timeout, the system automatically retries up to 2 times with a 30-second delay between attempts before marking the article as failed.

All Requests via ProxyAPI

All AI calls go through api.proxyapi.ru — a Russian proxy that ensures availability from Russian servers without VPN.

Was this article helpful?