Topic 2 of 5 · 4 min read
Placeholders that make templates reusable
Goal: Turn a one-off prompt into a template with named placeholders and fill-in notes that another person can use correctly.
A template is a good prompt with the changing parts replaced by named slots, plus a short note on what goes in each slot. The fixed text stays the same every time. Only the slots change.
Check yourself · 1 of 3
What is a placeholder in a prompt template?
Why it matters
A prompt you wrote for one customer has a name, a date and a product baked into it. To reuse it you must find and edit each of those by hand. You will miss one. The result is an email to Dana that mentions Marco's order. Placeholders show exactly what to change, and notes tell a colleague what belongs there. Without notes, two people fill the same slot in two different ways, and the output differs.
How to do it
- Start from a prompt that already worked. Do not design a template in the abstract.
- Find what changed between runs. Names, dates, amounts, the pasted source text, the tone, the audience. These become slots.
- Name each slot clearly. Use square brackets or double curly braces, whichever your team picks, and keep to one style. [customer name] is better than [X]. A name tells the user what to type.
- Write a fill-in note for each slot. Say what to put there, what format, and what to leave out. For example: "[order date]: day and month, such as 14 March. Do not include the customer's address."
- Keep the fixed text fixed. The role, the limits and the format request stay the same, so every run is comparable.
- Add a default where you can. "[tone]: warm and brief unless told otherwise."
Before and after
Before: Write an email to Dana at Northwind saying the kitchen order will arrive on 14 March instead of 3 March. Apologise once and offer free delivery. Under 120 words.
After: Write an email to [customer name] at [company] saying order [order name] will arrive on [new date] instead of [old date]. The reason is [reason, one short phrase]. Apologise once and offer [goodwill offer]. Keep it under [word limit] words. Tone: [tone].
Notes: [reason] must be true and shareable with the customer. [goodwill offer] must be one the manager approved. Do not paste order numbers or addresses.
What goes wrong
- Too many slots. If every word is a slot, you have written a form, not a prompt. Keep slots for the parts that really change.
- Forgotten slots. Someone leaves [reason] empty, and the model invents one. Add a line to the template: "If a slot is empty, ask me before writing."
- Slots that hide the task. A giant [instructions] slot lets each person write a different prompt, so the template is no longer a template.
- Secrets in slots. A slot invites pasting. Say in the note what must never go in, such as passwords, health data or full customer records.
A good test: give the template and notes to a colleague who did not write it. If they fill it in correctly on the first try, it is ready.
Examples
Slot names that explain themselves
Weak: Write to [X] about [Y].
Better: Write to [customer name] about [order problem, one sentence].
The better names tell the next person what to type without opening any notes.
A fill-in note
[source text]: paste the meeting notes, up to two pages. Remove names of people outside the team and any client financial figures before pasting.
The note says what to paste, how much, and what to remove first.
Key points
- A template keeps the working text fixed and turns only the changing parts into named slots.
- Name every slot so a stranger knows what to type, and use one bracket style across the library.
- Write a short note for each slot: what goes in, in what format, and what to leave out.
- Too many slots turn a template into a form; keep slots for parts that truly change.
- Tell the model what to do when a slot is empty, or it will invent a value.
Common mistakes
- Using vague slot names such as [X] or [thing].
- Writing no fill-in notes, so each person fills slots differently.
- Making almost every word a slot until the template guides nothing.
- Leaving out what to do when a slot is empty.
Check yourself · 2 of 3
Which slot name is best for a shared template?
Check yourself · 3 of 3
A template has a slot [reason for delay]. A colleague leaves it empty and the email gives a made-up reason. What is the best fix?
Practice items, not counted towards your mastery.
Start here
- Gemini for Google Workspace prompting guide (opens in a new tab)ArticleFree
Google's guide to writing and reusing prompts for everyday work in Workspace, with examples by role.
- Projects in ChatGPT (OpenAI Help) (opens in a new tab)DocsFree
Shows how ChatGPT keeps reusable instructions and files together in one place for repeated work.
- Prompt management (Langfuse docs) (opens in a new tab)DocsFree
Explains why prompts get versions, labels and rollbacks, the same ideas a change log applies by hand.