An immigration consultancy wanted a steady stream of blog posts without a writer on staff. The catch: immigration content has to be accurate, and a model that confidently invents a visa rule can do real harm. So the brief I set myself was simple. The AI drafts. A person publishes.
The pipeline
- Weekly Schedule or a manual Start Draft trigger.
- Pick Topic rotates through an approved topic list. Categories where nothing may be invented, such as client success stories, are excluded entirely.
- Build Prompt assembles instructions, tone, audience and the output contract.
- Generate Draft calls the OpenClaw gateway, which routes to the model.
- Parse Draft validates the response against the contract.
- Bootstrap, Login, Create Blog Post, Logout: n8n signs in to the site's admin API with a dedicated editor account and saves the post as an unpublished draft.
The output contract
Free-form model output is hard to automate. I ask for a fixed structure and reject anything that doesn't match:
{
"meta": { "title": "...", "slug": "...", "excerpt": "...", "keywords": [] },
"article": "<h2>...</h2><p>...</p>",
"staff_notes": {
"research_status": "needs-verification",
"image_brief": "...",
"social_captions": ["...", "..."],
"review_checklist": ["Check fee amounts", "Confirm processing times"]
}
}
The staff_notes block is the important part. It tells the reviewer exactly what to verify before hitting publish, and gives them an image brief and social captions so the post is ready to promote the same day.
The model is never asked to be right. It is asked to be reviewable.
Why drafts, not auto-publish
- Accuracy. Legal and financial topics change. A human checks facts against current sources.
- Brand voice. Editors adjust tone and add the firm's real experience, which the model doesn't have.
- Least privilege. The automation account has an editor role. It can create drafts but can't publish or change settings.
- Easy rollback. A bad draft gets deleted. A bad published post gets indexed.
Operating it
I leave a "Read me" note inside the workflow so the client's team can run it without me:
- If Generate Draft fails with a 401, the gateway token has expired. Refresh it from the server terminal and update the credential.
- If Create Blog Post fails, check that the automation account is still active with the editor role.
- Topics rotate automatically, but anyone can click Start Draft for an extra post.
Takeaways
AI is great at the blank-page problem and bad at being accountable. Design the pipeline so the model does the heavy lifting, the structure makes review fast, and a person stays responsible for what goes live. The same pattern works for newsletters, social posts and product descriptions.