What it is
Two nightly workflows that handle every piece of content for every client. One turns a brief into a complete, checked draft: outline, body, title, intro, FAQ, call to action, internal links and tables. The other turns an existing page into a refresh plan. The new-content side is in its fifth version.
Why I built it
Quality depended on the writer and the deadline, and checking every claim and link by hand doesn't scale across dozens of sites. When an earlier research tool broke quietly, dozens of articles shipped with no research before anyone noticed. This version is built so that can't happen silently.
How it works
Every night it picks up the queued briefs and works through them one at a time, about 45 to 55 minutes each, across 93 workflow steps and 11 AI agents.
It reads the client's brief straight from Git, so the voice, facts and guardrails are the same ones the team's AI projects use, and boils it down to a short voice and facts card.
Research: it crawls the client's own sitemap to build a list of real internal links, pulls the search results and related terms, fans the keyword out into 12 to 16 questions AI search would ask, and reads the top-ranking pages.
Writing: an outline agent plans the piece from that content type's template, code shares out the word budget, and every section gets its own writer and editor. Then come the title and intro, the FAQ and the call to action.
Checking: a compliance agent audits the draft and only lists fixes, and a corrector applies them. A final check written in code, not AI, has the last word. It restores headings, keeps only links that exist on the site, repairs tables, confirms the research tool was working, and marks any claim it can't source for a person to answer.
Prompts live in a shared library, so most agents can be tuned without touching the workflow. Hard rules like link limits and paragraph length live in code, where a prompt can't override them.
The finished draft lands formatted in a Google Doc for an editor, and any failure alerts the account manager in Slack.
Pages that already exist go to a sister workflow. It reads the live page, finds the searches it almost ranks for, compares it with what ranks now, and writes a refresh plan for an editor: recommendations only, never a rewrite. The type of task decides which workflow picks it up, so the two never overlap.
Both workflows guard themselves. If one can't find the client's brief or read the page, it flags the task and alerts the account manager in Slack with a re-run button, and a summary of the night's run lands in Slack every morning.
n8n · Airtable · OpenAI · Ahrefs API · GitHub · Google Docs · Slack
Impact
In one month, 136 pieces went live for 26 clients for about $92 in AI costs. That's roughly $1 a piece, editing included.
The AI never publishes. It only proposes fixes, and code decides pass or fail, so the QA report describes the document exactly as it shipped.
A check at the start of every run proves the research tool is alive, so a silent failure like the one that started all this can't happen again.
After a Google core update, the weekly review added new checks to the prompts within days, with a record of why.