Automating SEO Content with Five AI Agents
Yes, AI can write production-ready SEO content, but not from one prompt: the five-agent pipeline in n8n, and where it still breaks.
· 8 min
Can AI really deliver production-ready SEO content?
Yes, but not from a single prompt, and not from a single workflow that's supposed to do everything in one pass. AI can research, draft, check and format until you have a usable SEO text at the end. That only works, though, if you split the work into specialized steps instead of loading the whole task into one model's head at once.
I know this because I built exactly that pipeline. Two solo attempts failed before I landed on a five-agent setup that delivers finished drafts today.
That short answer skips the part that actually matters: how you split the work, and why the split matters more than which model you pick. Here's what I learned building a working content pipeline, including both failed first attempts, each of which taught me something in its own way.
Why one prompt isn't enough
A usable SEO article takes roughly seven manual steps, from keyword research to metadata. In between sit competitor analysis and the outline. Then come the draft, formatting and images. Two shortcuts look tempting here, and both fail in their own way.
The first shortcut is an overloaded n8n workflow that sends everything to one model in a single prompt. Research, outline, draft and formatting all run together in one call. That blew through the context limits and burned tokens on tasks that never needed a frontier model. A model that's supposed to hold search intent, structure and prose in its head at the same time produces drift, and drift is expensive when it happens inside an LLM call you're paying for anyway.
The second shortcut is the one-prompt approach in ChatGPT: keyword in, article out. On the first read the result looked usable, on the second it read flat. The text shows no angle beyond what the top results already say. A brief would have set a specific claim, but there wasn't one, just a keyword.
Neither route holds up for production content. Give a model too much at once and quality drops long before you hit a context limit. Give it too little structure and the output has no spine to check itself against. Both shortcuts save time at the start and cost you twice as much later, in correction loops you can avoid from the beginning with the five agents.
Five agents, one job each
The fix: five specialized agents with one responsibility each, chained one after another in n8n. Every handoff between them is a JSON document the next agent reads, and none of them knows more than it needs for its one job. The diagram below shows the order: a keyword goes in, a Code node between each station packs the handoff into clean JSON, and a finished draft comes out at the end.
Strategist
I feed it a keyword and it hands back a research result, not a draft. Along the way it works out the search intent, checks what's already ranking and flags exactly the gap those results are missing. That gap becomes the spine for everything that follows, from the Architect's brief and the Writer's draft to the UX Writer's final polish.
Architect
This agent turns the research into a skeleton the Writer isn't allowed to skip. It sets the order of the H2 sections and decides what each block has to argue. It also shows which claim belongs where and where a link actually earns its place. For the Writer, this brief is binding, not a loose suggestion it can depart from at its own discretion.
Writer
Working strictly from that brief, it turns structure into sentences. I give it access to the real sitemap, so a link lands on a page that exists and not on one the model just made up. What comes back is deliberately unformatted text. Formatting is the next agent's job.
Auditor
Before anything moves on, this step checks the draft line by line against the brief. It checks whether every required claim holds up and whether every number and every statement can really be backed up. It also checks whether the text kept the angle the Strategist set. Whatever doesn't fit goes back to the Writer once.
UX Writer
It's the last station before I even get to see the text, the final filter before it reaches my eyes. It breaks up long paragraphs, sharpens subheadings and swaps running text for a list wherever the reading gets sluggish. It's built for someone reading on a phone, not for a straight read-through at a desk.
None of the five does more than one thing, and that's exactly why a bad output is easy to trace. You know which step caused the problem, instead of untangling one giant prompt after the fact.
Picking the right model per agent
Not every step needs the same model, and paying top prices for structured JSON work gets you nothing. Strategist and Writer need the strongest reasoning available; right now I lean toward Gemini for the research-heavy work and Claude for the prose. Architect and Auditor work with structured JSON, and a smaller, faster model easily handles that.
That split alone brought costs down to roughly a third of what the most expensive model would have cost everywhere. The quality of the finished texts didn't visibly suffer, at least not in what actually reaches the reader in the end.
What matters when mixing models is where the expensive reasoning is really needed. Exactly two steps are the bottleneck, Strategist and Writer, and that's where the most expensive model pays off. I wrote my comparison of Sonnet and Opus for exactly this kind of model decision, step by step.
Guardrails as input, not as an edit
Every agent gets positioning and content guidelines as part of its system prompt, not as a correction round after the fact. The voice is defined once in the guidelines, and every agent reads them before it starts working. The Writer doesn't get a reminder afterwards of how it should sound. It already knows beforehand, so there's no need for a correction round that would otherwise hang off the end of the chain.
This one decision keeps the pipeline modular, because any agent can be swapped out without the other four noticing. Leave it out and the obvious fix becomes a "voice fixer" agent at the end. That one repairs the tone after the damage is already in the draft, instead of preventing it in the first place. How I built the base guide every agent is actually supposed to read is covered in more detail in developing a brand voice.
Where it breaks, and what I'd do differently next time
No pipeline this size runs clean on the first try. There are three things I'd fix earlier if I did this again from scratch, in exactly the order I describe them here.
Google Sheets as the intermediate store between the agents couldn't cope with parallel runs. Rows collided, and updates got lost mid-write. I moved the store to n8n Data Tables, and the reliability problem was gone. If you're building a multi-step pipeline, skip the spreadsheet workaround entirely and start with a proper data store right away, even for the first version, even if that looks like unnecessary effort at the start.
At the start I underestimated the evaluation metrics, meaning runtime per run, token cost and completion rate per agent. Without those numbers the pipeline drifts quietly along. Nobody notices until the output is bad enough to see with the naked eye. That belongs in place on day one, not after the first quality complaint, when nobody can say exactly where in the process things went wrong anymore.
Error handling has to be specific. "Agent stuck for more than 60 seconds" and "API returned a 429" are two different failures with two different fixes. A blanket retry hides the first and makes the second worse, because retrying straight into a rate limit just burns more of that same limit. My workflow overview for n8n beginners covers the same lesson at a smaller scale, worth reading before you take on something this size.
The proof: what actually runs in production
I call this pipeline Content Machine. It took about six weeks to build, as a one-person project on n8n, GPT, Claude and Gemini. I split the tasks across the five agents as described above, and since then the pipeline has been running in production without a break.
A keyword goes in. A researched, written, formatted and illustrated article comes out as a WordPress draft.
Image generation runs as its own parallel strand, independent of the text part of the pipeline. The Writer marks placeholder IDs in the draft, an image generator matches them against the brief, and the alt text gets created along with each image. My job on every run is to read the finished draft and approve it or send it back. Everything before that runs on its own, without me having to step in.
That's also the honest limit of the setup right now. n8n is the right orchestration layer for this job. That's exactly why I wrote my comparison with Make.
Research and audit would still benefit from a real file tree, from something closer to an agentic coding environment than to a workflow canvas. What that shift looks like on the coding side rather than for content is probably best shown by my WordPress theme build with Claude Code.
I'm curious where the bottleneck sits in your content process, and whether a similar split into several steps would help there too. Write to me on LinkedIn.
FAQ
- Can AI write SEO blog articles?
- Yes, but not from one prompt, and not reliably at production quality. A model that's supposed to research, outline, write and format in a single pass drifts off the brief or delivers something that only reads flat on the second pass. Split the work into separate steps, each with the model that suits that step, and you get a text you can actually use without a complete rewrite.
- How many AI agents does a content pipeline need?
- For a full SEO article, five work well: a Strategist for research, an Architect for structure, a Writer for the draft, an Auditor to check it against the brief and a UX Writer for readability. Fewer agents means each one takes on more than one job, which is exactly the problem this setup is meant to avoid. More than five usually just adds coordination overhead between the agents, without the end quality getting noticeably better.
- Is a single AI prompt enough for a whole article?
- No, not for content you'd actually publish. A one-prompt approach has no brief to check itself against, so it mostly repeats what the top search results already say, and it lacks the angle a real strategy step would have set first. On the first read a text like that seems usable, on the second it reads flat, and that's the opposite of what SEO content meant to rank and get cited is supposed to do.

Eric Hinzpeter
Eric Hinzpeter, Senior B2B Content Strategist. He builds AI agents and marketing automation for production use and writes up what comes out of it here.