Sub topic 3
Email: drafting, rewriting, and subject lines
This chapter assumes you know what a campaign and a contact record are, and that a large language model (LLM) predicts text from a prompt. It covers the generative AI features in email tools: drafting, rewriting, and subject-line generation.
What these features automate
Generative features produce new text. Email platforms use them for three jobs:
- Drafting: writing a first version of an email from a short brief, such as "announce the spring webinar to existing customers".
- Rewriting: changing tone, length, or reading level of text you already have, or fixing grammar.
- Subject lines: producing several candidate subject lines and preview texts for one email.
The model does not know your business. The platform supplies that knowledge by building a prompt around your request.
How the prompt is assembled
A typical feature combines four inputs before it calls the model:
- Your instruction or brief.
- Brand context, such as a style guide, past emails, or approved product facts.
- Recipient fields, such as first name or segment.
- Constraints, such as maximum length, banned phrases, or required legal text.
Generation and selection are separate steps. The model writes five subject lines. Choosing among them is done by an A/B test, which splits a sample of your list, sends each variant to one part, and picks the one with the better result. Some platforms add a predictive model that guesses which line will win before any test.
Common errors
- Invented facts. The model can state a discount, date, or feature that does not exist. It produces plausible text and does not check it. Supply facts in the prompt and have someone verify numbers and claims.
- Generic tone. Without examples of your voice, drafts read like every other email. Add past emails or a style guide as context.
- Broken personalization. A missing first name can produce "Hi ," or "Hi {{first_name}},". Test with records that have empty fields.
- Judging subject lines by open rate alone. Some mail clients load images automatically, which counts as an open even if nobody read the email. Prefer clicks or conversions as the winning metric.
- Skipping review on external mail. A mistake in an email to customers is public and cannot be recalled.
A simple approval gate
Many platforms let you decide which drafts can go out without review. This function shows the logic: external mail always goes to a person, and internal mail is sent automatically only when the confidence score is high.
def route_draft(confidence: float, is_external: bool, threshold: float = 0.9) -> str:
"""Decide whether an AI-generated email draft is sent or reviewed."""
if is_external:
return "human_review"
return "auto_send" if confidence >= threshold else "human_review"
print(route_draft(0.95, is_external=False))
print(route_draft(0.95, is_external=True))
print(route_draft(0.70, is_external=False))This prints auto_send, human_review, and human_review. The confidence score is only as meaningful as the process that produced it. Check how your platform calculates it before you trust a threshold.
Practical checklist
- Give the model approved facts instead of asking it to recall them.
- Keep a person in the loop for external sends until you have measured the error rate.
- Test subject lines on a sample, and pick the winner by clicks or conversions.
- Test personalization with incomplete contact records.
Exercise
Your platform generates five subject lines and sends each to 10% of the list, then sends the best one to the rest. Which step is generative, which is a statistical test, and which metric would you choose to pick the winner if some recipients' mail clients load images automatically?
Show answer
Writing the five subject lines is the generative step. Sending variants to samples and comparing results is the A/B test. Choose clicks or conversions rather than opens, because automatic image loading inflates open counts.