CasesBlogContactBook Free Audit
CASE STUDY · CONTENT AUTOMATION · WORDPRESS

Two New SEO Articles Every Week. Zero Hours of Your Time.

A 28-node n8n workflow finds trending topics, writes 1,500-word articles, generates featured images, and publishes to WordPress — on a schedule, without you touching it. Review optionally via Telegram. It ships either way.

2/week
Articles published
0 h
Time per article
28 nodes
Fully automated
Automate My Content Pipeline →
n8nClaude Sonnet 4SearXNGWordPress
All cases
March 10, 2026 · 6 min read
We Killed the Content Calendar

PUBLISHING EFFICIENCY

Results

~0 min
Time per Article
Was 3–4 hours manually
0×/wk
Publishing Frequency
Mon + Thu at 08
0–32h
Hours Saved / Month
Based on 8 articles per month
$0.20
Max Cost per Article
LLM + image generation combined

FROM CONTENT CALENDAR TO PUBLISHER

From content calendar to fully autonomous publisher

Publishing a technical blog consistently requires 3–4 hours per article. We had the same problem and automated the entire thing. A 28-node n8n workflow fires every Monday and Thursday at 08:00: it searches Reddit, GitHub, and the web via self-hosted SearXNG, scores results for freshness and relevance, deduplicates against PostgreSQL history, generates a 1,000+ word SEO article via Claude Sonnet 4, creates a featured image via fal.ai Flux Dev, and publishes to WordPress with full Yoast SEO metadata. Zero human input required. Article cost: $0.80–1.20.

THE PROBLEM

The Problem: Content Is a Job Nobody Has Time For

Running a technical blog in the automation niche requires publishing consistently — twice a week, minimum, if you want Google to take you seriously. That means monitoring what's trending, researching the topic, writing 1,000+ words with real technical depth, finding or generating a featured image, handling SEO metadata, and uploading everything to WordPress correctly.

That's 3–4 hours per article. 6–8 hours per week. Every single week. Most technical founders don't have that. So the blog dies, traffic never comes, and the content calendar becomes a guilt document.

We had the same problem. So we automated the entire thing — from topic discovery to live post.

HOW IT WORKS

5-Phase Autonomous Publishing System

PIPELINE OVERVIEW — FIRES MON + THU AT 08:00
STEP 1
Source Discovery
3 parallel SearXNG searches
STEP 2
Scoring & Dedup
JS engine + PostgreSQL hash
STEP 3
Article Generation
Claude Sonnet 4 · HTML + JSON
STEP 4
Image & Publish
fal.ai Flux Dev · WP REST API
STEP 5
Log & Notify
PostgreSQL + Telegram alert

Phase 1

Source Discovery — 3 Parallel Searches

At 08:00, the workflow fires three parallel HTTP requests to a self-hosted SearXNG instance: general web search (Google, Bing, DuckDuckGo), OpenClaw/Moltbot ecosystem search, and a dedicated Reddit engine targeting r/n8n. All three run in parallel, merge into a single result pool. No API costs — SearXNG is self-hosted on the same VPS.

Phase 2

Scoring & Deduplication

Every result gets a relevance score in a custom JS engine: up to 40 pts for freshness (<24h articles), +8 pts per keyword match, +15 pts for n8n or OpenClaw topics, +10 pts for tutorials and case studies, +12 pts for community sources (Reddit, GitHub, dev.to). Top-scoring article becomes the week's topic. PostgreSQL deduplication by topic hash prevents republishing the same subject.

Phase 3

Article Generation via Claude Sonnet 4

Workflow fetches the 10 most recent OpsPilots posts for internal linking context, assembles a rich prompt with the top 6 scored sources, and sends to Claude Sonnet 4 via OpenRouter (4,096 tokens, temperature 0.65). LLM returns clean HTML plus structured JSON metadata: meta_title, meta_description, URL slug, tags array, and a 50–70 word Flux image prompt.

Phase 4

Image Generation & Parallel Branch Upload

While the article is parsed, two branches execute simultaneously:

PARALLEL BRANCHES
Branch A
WP Category ID
Fetch the correct WordPress category for the post
Branch B
Image Generation
Flux Dev → binary download → WP Media Library upload

fal.ai Flux Dev generates the featured image at 1792×1024, 28 steps, guidance 3.5. Both branches merge before publish — no manual media step.

Phase 5

Publish, SEO Metadata & Logging

WordPress node publishes immediately. A PATCH request updates the post with featured image ID, Yoast title, and Yoast meta description. Run logged to PostgreSQL. Telegram notification sent with article title, live URL, word count, tags, and source breakdown.

FULL WORKFLOW

Complete 28-Node Map

NodeTypeFunction
Schedule Mon+Thu 08:00scheduleTriggerFires the pipeline twice a week
ConfigsetAll variables: URLs, API model, queries, system prompt
DB: Get Published This WeekpostgresLoads published topic hashes for dedup
Search: News n8n ENhttpRequest → SearXNGGeneral web search, n8n topic
Search: News OpenClaw ENhttpRequest → SearXNGOpenClaw / Moltbot ecosystem
Search: Reddit r/n8nhttpRequest → SearXNGReddit engine, community signal
Merge: n8n + OpenClaw ResultsmergeCombines all 3 result pools
Process: Filter & Rank Newscode (JS)Scores, deduplicates, picks top topic
DB: Check Topic DuplicatepostgresChecks topic hash against history
IF: Topic Is New?ifRoutes to write or stop cleanly
WP: Fetch Recent PostshttpRequestGets last 10 posts for internal links
Build: Article Promptcode (JS)Assembles userPrompt + source context
LLM: Generate ArticlehttpRequest → OpenRouterClaude Sonnet 4, 4,096 tokens, temp 0.65
Parse: Article & SEOcode (JS)Splits HTML body + metadata JSON
WP: Get Category IDhttpRequestFinds correct WP category
Generate: Featured ImagehttpRequest → fal.aiFlux Dev, 1792×1024, 28 steps
Download: Image BinaryhttpRequestDownloads image as binary
Upload: Image to WPhttpRequestUploads to WP Media Library
Merge: Category + ImagemergeJoins parallel branches before publish
WP: Publish PostwordpressPublishes live immediately
Set: Featured Image & SEO MetahttpRequest PATCHYoast fields + featured image ID
DB: Save RunpostgresLogs run to n8n_news_runs table
Telegram: SuccesstelegramReport: URL, word count, sources
Telegram: Already PublishedtelegramNotifies on clean duplicate skip
Error TriggererrorTriggerGlobal error catcher
Telegram: Error AlerttelegramError details to Telegram

TECH STACK

Tools Used in This Workflow

n8n
n8n (self-hosted)
Visual workflow builder, 500+ integrations, no per-execution cost — 28-node pipeline runs autonomously
SX
SearXNG (self-hosted)
Aggregates Google, Reddit, GitHub in one call — zero API cost, full control over search engines
AI
Claude Sonnet 4 via OpenRouter
Best-in-class technical writing quality — returns clean HTML + JSON metadata in one response
F
fal.ai Flux Dev
Fast, photorealistic featured images at ~$0.03–0.05/image, automatically uploaded to WP Media
PG
PostgreSQL
Topic hash deduplication history — shares the existing n8n database, just one additional table
WP
WordPress REST API
Publish + media + Yoast SEO fields via API — no plugin needed beyond Application Passwords

Scalability: Adding a new topic vertical means adding one search node and updating two query strings in Config. The scoring engine, dedup, LLM pipeline, and publishing logic require zero changes.

BOTTOM LINE

If you're not automating content, you're doing it the hard way for no reason.

We build and deploy autonomous content pipelines, AI agents, and operational automations. Custom-built for your niche — ready in 2–3 weeks.

Get a Free Assessment →

Frequently Asked Questions

What exactly is an automated content pipeline?

An n8n workflow that handles the full content lifecycle — topic research, scoring, AI writing, image generation, WordPress publishing, and Telegram logging — without manual steps. Each piece of content passes through 28 decision and transformation nodes from topic idea to live published post.

How does it find trending topics without human input?

It monitors trending topics via self-hosted SearXNG (aggregating Google, Reddit, GitHub), scores each result by freshness, keyword match, and community signal, then selects the top candidate automatically. PostgreSQL deduplication by topic hash ensures the same subject never gets republished.

Will the content pass AI detection tools?

Articles are structured for SEO — proper heading hierarchy, internal links to recent posts, and optimized metadata. The workflow uses Claude Sonnet 4 at temperature 0.65 with rich source context, which produces content that reads naturally and consistently passes standard AI-detection checks.

Which CMS platforms does it publish to?

The current deployment publishes to WordPress with full Yoast SEO metadata. Adding Ghost, Webflow, Substack, or other platforms requires one additional HTTP request node per destination — typically a 1–2 hour configuration. The content generation stage remains identical regardless of publishing target.

Do I still need to review each article before it goes live?

The workflow includes an optional Telegram review step before publishing. You receive a preview with a one-tap approve or reject option. Most clients switch to fully autonomous mode after the first 2–3 weeks once they've validated output quality against their brand standards.

Anton Lavoshnyk
Anton Lavoshnyk
Founder, OpsPilots

Deploys n8n workflows, AI agents, and RAG systems for B2B teams. Turns repetitive operations into self-running systems.

LinkedInFacebook
Free 30-Min Audit — No Pitch

Skip the trial-and-error. We've already mapped what works.

We map exactly which workflows cost your team the most time and give you a specific deployment plan — in one 30-minute call.

Book Free 30-Min Process Audit →