Sub topic 11
Turning a Good Prompt into a Reusable Template
You have a prompt that works. It has a role, context, audience, format, and constraints, and it produced a usable email. The next campaign needs the same shape with different facts. Retyping the prompt, or copying it and editing by hand, invites mistakes: a stale launch date, last month's product name, a constraint you forgot to carry over.
This chapter shows how to convert a working prompt into a template with placeholders. It covers deciding what to vary, writing placeholders, handling missing facts, and keeping the template healthy over time.
Prerequisites assumed: you can write a prompt with the four parts (role, context, audience, format), you know how to add constraints, and you have used a chat assistant for marketing copy. Chapters on structure, constraints, iteration, and review come before this one.
What a template is
A prompt template is a prompt in which the parts that change between uses are replaced by named placeholders. The parts that stay the same are written out in full. Each time you use it, you fill in the placeholders and send the result.
A placeholder is a labeled gap, written here as {{name}}. The double braces are a convention, not a requirement. Any marker works if it is easy to spot and cannot be confused with normal text. What matters is that you can find every gap before you send the prompt.
A template does three things for you:
- It saves time on repeated work.
- It keeps quality steady, because the structure that worked is preserved.
- It makes the prompt reviewable. A teammate can read the template once and approve it, then check only the filled-in values each time.
Step 1: Start from a prompt that already works
Do not template a first draft. A template copies whatever flaws the prompt has, and it copies them to every future campaign. Convert a prompt only after it has gone through iteration and review, and its output has been acceptable at least once.
Here is a working prompt from the earlier chapters, in full:
Role: You are a B2B email copywriter who writes for small-business software.
Context: We are launching TaskLane, a project-planning app for teams of 5 to 20 people. The launch feature is shared timelines. Launch date is June 3. Goal: get readers to start a 14-day free trial.
Audience: Operations managers at small agencies. They are busy, skeptical of hype, and care about saving time on status meetings.
Format: One email with a subject line (under 50 characters), a preview text line (under 90 characters), a body of 120 words or fewer in two short paragraphs, and one call-to-action button label.
Constraints:
- Use a friendly, direct tone. No exclamation marks.
- Do not make claims about performance numbers, awards, or customer counts.
- Do not mention competitors.
- If you need a fact that is not in the context above, write [NEEDS INPUT] instead of guessing.Step 2: Sort every detail into "fixed" or "varies"
Go through the prompt line by line and ask one question of each detail: will this change the next time I use the prompt?
| Detail | Changes between uses? | Decision |
|---|---|---|
| "B2B email copywriter" | Sometimes, when the channel changes | Placeholder: channel and industry |
| "TaskLane" | Yes, if you sell more than one product | Placeholder: product name |
| "shared timelines" | Yes, each launch has a different feature | Placeholder: key benefit |
| "June 3" and "14-day free trial" | Yes | Include in the goal and facts placeholders |
| Audience description | Yes, per segment | Placeholder: audience description |
| Subject line under 50 characters | Rarely, but it depends on the channel | Placeholder: format requirements |
| No exclamation marks, no competitors | No, these are brand rules | Keep fixed |
| The `[NEEDS INPUT]` rule | No | Keep fixed |
The split shows a useful principle. Brand rules and safety rules belong in the fixed text, because you want them applied every time without anyone remembering to. Campaign facts belong in placeholders, because they are the thing that changes.
If you cannot decide, keep the detail fixed at first. A template with too few placeholders is easy to extend. A template with too many is tedious to fill in, and people start skipping fields.
Step 3: Write the placeholders
Name each placeholder for what goes in it, not for where it sits. {{audience_description}} is clearer than {{field3}}. Use one consistent style, such as lowercase words joined by underscores.
Here is the converted template:
Role: You are a {{channel}} copywriter for {{industry}} brands.
Context: Product: {{product_name}}. Key benefit: {{key_benefit}}. Goal: {{goal}}. Facts you may use: {{approved_facts}}.
Audience: {{audience_description}}.
Format: {{format_requirements}}.
Constraints: {{tone_and_constraints}}. If a needed fact is missing, write [NEEDS INPUT].Notice what changed and what did not. The four labeled parts are still there, in the same order. Each part can still be edited on its own. Only the content of each part became a gap.
Placeholders that hold lists
Some gaps take more than one value. {{approved_facts}} might hold five facts. Decide how they will be written and say so, for example by filling them in as a short bulleted list. Without that, one person writes a paragraph and another writes a list, and the outputs will differ for reasons that have nothing to do with the model.
Fixed rules and variable rules together
The template above puts all constraints into one placeholder. That works, but it moves your brand rules out of the fixed text, so a user could forget them. A safer layout keeps the standing rules fixed and leaves a separate placeholder for campaign-specific ones:
Constraints:
- Use a friendly, direct tone. No exclamation marks.
- Do not make claims about performance numbers, awards, or customer counts.
- Do not mention competitors.
- If you need a fact that is not in the context above, write [NEEDS INPUT] instead of guessing.
- Extra rules for this piece: {{extra_constraints}}When there are no extra rules, the user writes "None". An empty placeholder can leave a dangling label that the model may misread, so require an explicit value.
Step 4: Fill the template
A filled template for a different campaign looks like this:
Role: You are a LinkedIn copywriter for B2B software brands.
Context: Product: TaskLane. Key benefit: shared timelines that replace weekly status meetings. Goal: get readers to start a 14-day free trial. Facts you may use:
- Launch date is June 3.
- The free trial lasts 14 days.
- Designed for teams of 5 to 20 people.
Audience: Operations managers at small agencies. They are busy, skeptical of hype, and care about saving time on status meetings.
Format: One LinkedIn post of 80 words or fewer, with a one-line hook, two short paragraphs, and a closing question. No hashtags.
Constraints:
- Use a friendly, direct tone. No exclamation marks.
- Do not make claims about performance numbers, awards, or customer counts.
- Do not mention competitors.
- If you need a fact that is not in the context above, write [NEEDS INPUT] instead of guessing.
- Extra rules for this piece: None.Only the role, format, and facts changed. The audience carried over because the same segment is being targeted. This shows a second benefit of templates: you can see at a glance what a campaign changes.
Step 5: Test the template before you rely on it
A template can look right and still fail on inputs you did not try. Before sharing it, run it at least three times with deliberately different values:
- A typical case, like the one above.
- A different channel or product, to see whether the fixed text still makes sense.
- A case with a missing fact, to confirm the
[NEEDS INPUT]rule triggers.
Compare outputs against your review checklist from the earlier chapter: factual errors, unsupported claims, and confidential data. A template that passes only on the case it was built from has not been tested.
How the pieces flow
Common errors
Placeholders left unfilled. The model may treat {{key_benefit}} as literal text and write copy around it, or silently invent a benefit. Before sending, search the filled prompt for {{. If the tool you use supports it, make the check automatic.
Over-generalizing the role. A template with {{channel}} and {{industry}} works only if the rest of the prompt suits every combination. A format section written for email will not suit a billboard. If two channels need different formats, make two templates, or put the format in a placeholder as above.
Putting secrets in the template. A template is shared and reused, so anything in its fixed text spreads. Keep unreleased pricing, customer names, and other confidential data out of fixed text. Supply them at fill time, and only when your organization's policy allows sending them to the tool.
Stale fixed text. Facts that looked permanent, such as a tagline or a trial length, change. Put anything that might change into a placeholder, or review the fixed text on a schedule.
Hidden dependencies. If the constraints say "as described in the context above" but a user deletes the context section, the rule breaks. Keep references between sections simple and say so in your notes.
Changing the template for one campaign. If a one-off need leads you to edit the shared template, the next user inherits the change. Use the extra-constraints placeholder, or copy the template for the one-off.
Keeping templates healthy
Treat a template like any shared document:
- Give it a name and a version note, such as "Launch email v3".
- Record what changed and why, in one line.
- Name an owner who approves edits.
- Keep a short list of example fillings, so new users see what good values look like.
- Review it when your brand voice, product line, or legal guidance changes.
Revise a template the same way you revise a prompt: change one thing, rerun your test cases, and compare. Do not rewrite it wholesale.
Summary of the process
- Start from a prompt whose output you already accepted.
- Sort each detail into fixed or varies. Keep brand and safety rules fixed.
- Replace variable details with clearly named placeholders.
- Add a rule for missing facts so the model flags gaps.
- Test with varied inputs, including a missing-fact case.
- Version it, name an owner, and revise one change at a time.
Exercise
Below is a working prompt. Convert it into a template. List which details you would turn into placeholders, which you would keep fixed, and why. "You are a retail email copywriter. We are promoting our Summer Sale at BrightBay, an online store for outdoor gear. The sale runs July 1 to July 7 with up to 30% off tents. Write for budget-conscious families. Write one email with a subject line under 45 characters and a 100-word body. Never use the word 'cheap'. If a fact is missing, write [NEEDS INPUT]."
Show answer
Placeholders: the campaign name and sale dates ({{campaignname}}, {{saledates}}), the offer ({{offerdetails}}, for example "up to 30% off tents"), the product category if it varies, the audience ({{audiencedescription}}), and the format limits ({{formatrequirements}}), since the subject length and body length may change by channel. The store name and industry can be placeholders if you run several brands; otherwise keep "BrightBay" and "outdoor gear" fixed. Keep fixed: the role ("retail email copywriter"), the rule "Never use the word 'cheap'" (a brand rule), and the "[NEEDS INPUT]" rule (a safety rule that should apply every time). Reason: campaign facts change between uses, while brand and safety rules should apply without anyone remembering them. A good answer also adds a placeholder such as {{extraconstraints}} for one-off rules, and requires "None" when empty.
Exercise
A colleague fills in your template but leaves {{key_benefit}} blank, and the email that comes back praises "industry-leading speed". Name two changes to the template or process that would prevent this.
Show answer
First, add a pre-send check that searches the filled prompt for unfilled placeholders such as "{{" and blocks sending until none remain. Second, keep the fixed rule "If a needed fact is missing, write [NEEDS INPUT]" and add a constraint against unsupported performance claims, so the model flags the gap instead of inventing a benefit. Optionally, also document each placeholder with a one-line description and an example, and test the template with a missing-fact case before sharing it.