Back to HTML Pub

You Have a Marketing Agent Idea. Here's the Actual Setup That Publishes a Blog Post Every Week Without You.

Michael Sacca•
AI-Native Publishing
Automation
LLM Engineering

Every "build an AI marketing agent" tutorial has the same ending: the agent produces something once, on demand, when you happen to be sitting there prompting it. That's not an agent. That's a very fast intern who only works when you're watching. The actual idea you had — a thing that publishes a blog post every week without you — lives somewhere else entirely, and it's a smaller jump than the tutorials make it seem. But the jump it does require is the part nobody covers: the guardrails. Approval steps, rate limits, and cost caps. The boring plumbing that decides whether your agent runs for a year or runs for a week before it does something embarrassing.

We've covered the architecture of a self-updating publishing pipeline before — the MCP servers, the CI hooks, the shape of the whole thing. This post is about the layer on top of that: the constraints that make an autonomous publishing loop safe to leave running. If the pipeline is the engine, this is the governor.

The loop, stated plainly

A weekly publishing agent does four things on a schedule:

  1. Research — pull from your sitemap, past posts, and maybe a keyword source to decide what this week's post is about.
  2. Draft — write the post in your voice, with your structure, matching your frontmatter format.
  3. Stage — write the markdown file into your repo or CMS as a draft, not a published post.
  4. Publish or request approval — either push it live automatically or stop and wait for a human yes.

Steps 1 through 3 are what every tutorial shows you. Step 4 is the entire difference between a demo and a system you can trust, and it's where the guardrails live.

Guardrail one: the approval gate (and when to remove it)

The default instinct is "full autonomy," and the correct instinct is the opposite. Start with a human in the loop — always.

The cheapest reliable version of this costs nothing: the agent opens a pull request. The markdown file lands in a content/drafts/ branch, GitHub notifies you, and publishing is literally clicking "merge." You get a diff, a rollback mechanism, and a review step for free, using infrastructure you already have.

# GitHub Actions: weekly draft generation, never auto-publish
on:
  schedule:
    - cron: "0 9 * * 1"  # Monday 9am UTC
permissions:
  contents: write
  pull-requests: write

The workflow generates the post, commits it to a branch, and opens a PR titled with the proposed slug. You review it the way you'd review any contributor's work. If the draft is consistently good after a month, you can loosen this — but "loosen" should mean conditional autonomy, not none.

A reasonable graduation path:

  • Weeks 1–4: every post needs your merge.
  • After that: posts on topics the agent has written before, matching templates it's already validated, publish automatically. Anything novel — new topic, new format, post that references data — routes to review.
  • Never automatic: anything that quotes figures, names competitors, or makes claims about your product's capabilities.

That last category is where unsupervised agents do real damage. An LLM will confidently invent a statistic, a price, or a feature. Your approval gate exists almost entirely to catch fabricated facts.

Guardrail two: rate limits — on the agent, not just the API

Everyone rate-limits their API provider. Almost nobody rate-limits their agent, which is the thing that actually decides how many times it runs. The failure mode isn't the scheduled weekly run. It's the retry loop: a draft fails validation, the agent retries, the retry fails, and suddenly you've burned through a month's token budget at 3am producing forty rejected drafts.

Three limits to set, all boring, all essential:

  • Run frequency. One scheduled trigger per week. If your CI system supports concurrency groups, use them so overlapping runs queue instead of stacking:
concurrency:
  group: weekly-post
  max-parallel: 1
  • Retry ceiling. Cap regeneration attempts at two or three. If the agent can't produce a valid draft in three tries, it should stop and leave you a note — not keep trying. A failed week costs you nothing; a runaway loop costs you money and confidence.
  • Scope limits. The agent should only ever write to content/drafts/. Never let it touch your templates, your build config, or previously published posts. Scope is a rate limit for the blast radius of a mistake.

Guardrail three: the cost cap

LLM pricing is per-token, which means your weekly agent's cost is predictable — until it isn't. A research step that fetches fifteen pages and stuffs them all into context, multiplied by a retry loop, multiplied by a runaway schedule, is how a $3/month habit becomes a $300 month.

Practical caps:

  • Budget per run, in tokens, not dollars. Set a hard ceiling on input and output tokens per run. If the research phase needs more context than the ceiling allows, that's a signal to narrow the research step, not raise the ceiling.
  • Cap context, don't dump. The most common cost explosion is feeding the agent your entire blog archive every week. Instead, have it fetch only the last few posts' frontmatter and titles — enough to avoid repeating topics without paying for thirty thousand tokens of body text.
  • A monthly kill switch. A simple check at the top of the workflow: if this month's runs exceed N, exit early and notify you. Ten lines of script that prevent the worst-case bill.

The exact numbers depend entirely on your model choice and volume, so I won't pretend there's a universal figure — but the structure of the cap doesn't change: per-run ceiling, monthly ceiling, alert when either is approached.

The part that actually makes output good: constraints in the prompt

Guardrails aren't only about safety — they're about quality repeatability. An agent writing one post on demand can be steered conversationally. An agent writing post #34 with nobody watching needs the steering baked in.

Your generation prompt should carry, every week:

  • The frontmatter contract. Exact fields, exact formats — slug rules, excerpt length, category vocabulary. If your blog expects a specific excerpt length, say the number.
  • A topic decision rule. Don't let the agent "decide" freely each week — that's how you get twelve posts about the same thing. Give it a rotation: tutorials, decision frameworks, workflow posts, and so on, cycling.
  • The no-invention rule, explicitly. "If you cannot support a claim with a source from the research step, cut the claim." Agents respond to this instruction reasonably well, but it only works if the research step actually gives it material to draw from.
  • The rejection path. Tell it what to do when it can't meet the bar: produce a shorter, honest draft and flag it, rather than padding to hit a word count.

This is the same principle as writing a good one-shot prompt, except the audience is a future run of the agent instead of you. If you've already got a site Claude built and maintained, you've likely got prompt fragments worth promoting into this permanent instruction set.

What "without you" should actually mean

Here's the honest version of the promise in the title. A well-guarded weekly agent takes the publishing task from roughly three hours a week to roughly fifteen minutes a week — the fifteen being your review-and-merge. That's the realistic ceiling for a solo operator, and it's a genuinely transformative trade.

Full zero-touch autonomy is achievable for narrow cases: posts generated from a data source you control, in a format that's proven, on a topic rotation you've validated over months. If that describes your blog, congratulations — rare case. For everyone else, the fifteen-minute review is the product. It's also, not coincidentally, where you keep the taste that keeps the blog worth reading.

The people whose agent-ran blogs survive are the ones who treated autonomy as a dial, not a switch — and who built the guardrails before the first unattended run, not after the first incident.

If you're starting from a site your AI built last month and a pipeline that doesn't exist yet, wire the loop in this order: scheduled draft generation, PR-based approval, then rate and cost caps, and only then start loosening the approval gate. The order matters, because every guardrail is easiest to add while the agent has never done anything wrong — and hardest to add after it has.

Keep Reading