Sub topic 8
Generating a batch of variations
This chapter assumes you can write a structured prompt (role, goal, audience, voice, task, constraints, output format) and that you know which dimension you want to vary. Here you turn that prompt into a batch of drafts you can compare.
Why generate in batches
One draft tells you little. A batch of four to eight drafts that differ in a planned way lets you compare options against the brief. It also gives an A/B test something to work with later.
The rule that makes a batch useful: keep the brief fixed and change one dimension. If the angle, tone, and length all change at once, you cannot tell which change made a draft better.
Two ways to ask
You can ask for all variations in one request, or send one request per variation.
| Approach | Strength | Weakness |
|---|---|---|
| One request, several variations | Fast. The assistant tends to make the drafts differ from each other. | Later drafts can drift from the brief. Length limits are easier to break. |
| One request per angle | Each draft gets full attention. Easy to rerun a single angle. | Drafts from different requests can overlap in wording. |
A good default is one request per angle, with a few lines per request. You get distinct angles and several options inside each one.
A single-request prompt
This prompt asks for four variations, each with a different angle.
You are a copywriter for a small online bookshop.
Campaign goal: get newsletter subscribers to start a free 14-day trial of our reading club.
Audience: adults 25-45 who read a few books a year and want a reason to read more.
Brand voice: warm, plain, lightly humorous. No exclamation marks.
Offer: 14-day free trial, cancel any time.
Task: write 4 email subject lines. Each must use a different angle: urgency, social proof, benefit, curiosity.
Constraints: 50 characters or fewer. Do not invent statistics, prices, or customer numbers.
Output: a numbered list in the form "Angle: subject line".Notice the last two lines. The constraint stops invented claims, and the output format makes the reply easy to scan and paste into a log.
Building one prompt per angle
When you run many batches, build prompts from a shared brief so that only the angle changes. This script prints the prompt for one angle and sends nothing to any service.
brief = {
"role": "a copywriter for a small online bookshop",
"goal": "get subscribers to start a free 14-day reading club trial",
"voice": "warm, plain, lightly humorous, no exclamation marks",
"max_chars": 50,
}
angles = ["urgency", "social proof", "benefit", "curiosity"]
def build_prompt(brief, angle):
return (
f"You are {brief['role']}.\n"
f"Goal: {brief['goal']}.\n"
f"Voice: {brief['voice']}.\n"
f"Write 3 email subject lines using the '{angle}' angle.\n"
f"Each must be {brief['max_chars']} characters or fewer.\n"
"Do not invent statistics, prices, or customer numbers.\n"
"Return one subject line per line, with no numbering."
)
prompts = {angle: build_prompt(brief, angle) for angle in angles}
print(prompts["curiosity"])Because every prompt comes from the same template, any difference between the replies comes from the angle.
Common errors
- Near-duplicates. The assistant rewords one idea instead of finding a new one. Ask for "a different idea each time, not a rewording", or name the angle for each draft.
- Ignored limits. Assistants often miscount characters. Check length yourself rather than trusting the reply.
- Invented facts. A social proof draft may cite numbers you never gave. Keep the "do not invent" constraint in every prompt and review the results before use.
- Voice drift. Later drafts in a long list slowly lose the brand voice. Keep batches short, or repeat the voice line.
Checking the batch
Run a quick length check on the drafts before you review them in detail.
def check_length(variations, max_chars):
"""Return (text, length, within_limit) for each variation."""
return [(text, len(text), len(text) <= max_chars) for text in variations]
drafts = [
"Your free trial ends soon",
"Join readers who finish more books than they start, with a 14-day free trial",
]
for text, length, ok in check_length(drafts, 50):
print(f"{'OK ' if ok else 'LONG'} {length:3d} {text}")The second draft is over the limit, so it goes back for a shorter version.
Exercise
You need subject lines for three tones (playful, formal, friendly) and two lengths (short, long). Why is it risky to ask for all six in one request, and what is a safer plan?
Show answer
Two dimensions change at once, so you cannot tell whether tone or length caused a draft to work better, and the assistant may blur the differences. A safer plan is to fix one dimension and vary the other. For example, hold length at short and vary the tone across three prompts, then pick the best tone and vary length in a second batch.