Every marketing team has a pre-send QA ritual. Someone opens the test send, clicks every link, squints at the subject line, forwards a proof to three people, and signs off. It feels thorough. It is not. It is a human pretending to be a regex, and humans are bad regexes.
The emails that go out broken rarely fail in subtle ways. A merge tag renders as "Hi {{first_name}}". A link points to staging. A UTM says "blackfriday" in a Cyber Monday send. The hero image has no alt text and the preheader repeats the subject. Every one of these is detectable by code in milliseconds. The problems that actually need judgment, like whether the offer in the body matches the offer in the subject, are where an LLM earns its keep.
Our position: split email QA into two layers, deterministic checks and model checks, run both automatically on every proof, and reserve human review for the things neither can judge.
Layer One: Deterministic Checks Catch Most Failures
Start by pulling the rendered HTML, not the template. Most ESPs (Braze, Klaviyo, HubSpot, Iterable, Salesforce Marketing Cloud) expose an API to render a campaign or template against a specific profile. Render it against at least three test profiles: a fully populated contact, a contact with empty optional fields, and a contact in a different locale if you send internationally. Empty fields are where merge tags break.
Then run a parser over each rendered output. In Python, BeautifulSoup plus httpx covers almost everything:
- Unrendered tokens: scan text and attributes for leftover
{{,{%,%%,*|or[[patterns. Any match fails the run. - Links: extract every href, follow redirects, and fail on 4xx or 5xx responses, on any host matching staging, localhost or preview domains, and on malformed mailto or tel links.
- UTM hygiene: parse query strings and validate utm_source, utm_medium and utm_campaign against your taxonomy. If you maintain a campaign naming convention, load it as a list of allowed values and diff against it.
- Images: every img needs a src that resolves and alt text that is not empty or a filename.
- Structure: a preheader exists and differs from the subject, a plain-text part exists, an unsubscribe link is present, and the HTML stays under roughly 100KB so Gmail does not clip it.
None of this needs AI. It needs a script that runs every time, which is exactly what a tired reviewer is not.
Which Layer Owns Which Check
| Check | Owner | Why |
|---|---|---|
| Leftover merge tags | Code | Pattern match, zero ambiguity |
| Broken or staging links | Code | HTTP status and hostname rules |
| UTM taxonomy | Code | Compare against an allowed list |
| Gmail clipping risk | Code | Byte count |
| Offer matches subject and brief | LLM | Requires reading comprehension |
| Dates and deadlines agree | LLM | Same fact phrased different ways |
| Claims needing substantiation | LLM flags, human decides | Legal judgment |
| Brand voice and tone | LLM flags, human decides | Subjective but reviewable |
Layer Two: Give the LLM Narrow Questions, Not "Review This Email"
The mistake teams make with LLM review is asking for vibes. "Does this email look good?" produces a polite paragraph that nobody acts on. Treat the model like a test runner: specific questions, structured output, pass or fail.
Feed the model three inputs: the plain-text version of the rendered email, the subject and preheader, and the campaign brief (offer, audience, dates, required disclaimers). Ask for a response against a fixed schema, using your provider's structured output mode so the result always parses:
{
"offer_consistent": true,
"offer_notes": "",
"dates_consistent": false,
"date_notes": "Body says ends Sunday; brief says ends Monday Dec 1",
"missing_disclaimers": ["Terms apply link"],
"unsupported_claims": ["fastest onboarding in the industry"],
"cta_count": 3,
"primary_cta_matches_brief": true
}
Each field is one question. Does the discount in the subject match the body and the brief? List every date or day reference and whether they agree. List every superlative or comparative claim. Narrow questions produce answers you can assert on, and they make it obvious when the model is wrong, which it occasionally will be.
Two rules keep this layer honest. First, the model never gets the final say on anything legal or financial. It flags; a person decides. Second, log every model verdict next to what the human reviewer concluded. After a month you will know which checks the model is reliable on and which need a sharper prompt or a different model.
Wire It Into the Send Workflow, Not a Side Tool
A QA script someone has to remember to run is a QA script that does not get run during a busy week. Put it in the path of the send.
The simplest version is a job that triggers when a campaign moves to "ready for review" in your ESP. Many ESPs emit a webhook on status change; if yours does not, poll the campaigns API every 15 minutes for campaigns in that state. The job renders the test profiles, runs both layers, and posts a report to the campaign's Slack channel or as a comment on the review ticket. Hard failures (broken links, leftover tokens, missing unsubscribe) block approval. Soft flags (tone, claims) go to the reviewer with the exact sentence quoted.
Keep the report short: pass count first, then each failure with the offending snippet and where it lives. Nobody reads a 40-line report. Everybody reads "2 failures: staging link in footer, {{first_name}} unrendered for the empty-name profile."
The costs are trivial. A typical promotional email is under 1,500 tokens of text, so running a mid-tier model across three profiles costs a fraction of a cent per campaign. The expensive part is the apology email you send when QA misses something.
Ship Your Email QA Pipeline This Week
- Pick three test profiles: full data, empty optional fields, alternate locale
- Render each through your ESP's API and save the HTML and plain-text output
- Write deterministic checks for tokens, links, UTMs, alt text, preheader, unsubscribe and size
- Write the campaign brief as structured fields: offer, dates, audience, required disclaimers
- Create an LLM check with a fixed JSON schema and one question per field
- Trigger the run when a campaign enters review and post results where reviewers already work
- Block approval on hard failures and route soft flags to a named human
- Log model verdicts against human decisions and review accuracy monthly
What Humans Should Still Do
Automation does not remove the reviewer. It changes the job. Instead of clicking 30 links and hunting for typos, the reviewer reads the soft flags, checks the email in two or three real inbox clients for rendering quirks a parser cannot see, and asks the one question no script can: is this email worth sending to this audience at all?
That is the right division of labor. Code handles what is certain. The model handles what is consistent. People handle what matters. If your current QA process is one person doing all three at 4:55 PM on a Thursday, you already know which part is failing.
Tags
LETSGROW Dev Team
Marketing Technology Experts
Ready to Apply This Insight?
Schedule a strategy call to map these ideas to your architecture, data, and operating model.
Schedule Strategy Call