A prompt template earns its keep on the tenth use, not the first. The first time, you remember what every placeholder meant. A month later, you open the same template, see a field labelled with a single letter, and have to read the whole prompt again just to work out what value it wants. The template still works. It has simply stopped explaining itself.
The names you choose are the only documentation a template carries. This guide covers how to name variables so templates stay readable, using the free Prompt Variable Filler on Ovatly. The rules depend on exactly how the tool detects and matches names, so we start there.
Contents
- Quick answer
- The character set you have to work with
- Descriptive names beat abbreviations
- One concept, one name
- Pick one style and keep it everywhere
- How to rename a template's variables, step by step
- Worked example: the email template, a month later
- Limitations and alternatives
- Common mistakes
- FAQs
- Conclusion
Quick answer
Name each variable for the thing it holds, in plain words: {{customer_name}} and {{project deadline}} will still make sense next month, while {{x}} and {{t2}} will not. Use one name per concept across the whole template, because the Prompt Variable Filler matches names exactly and treats two spellings of the same idea as two variables. Then pick one style, underscores, spaces or hyphens, and use it in every template you keep.
The character set you have to work with
A variable is anything wrapped in double curly braces. Names may contain letters, numbers, spaces, hyphens and underscores. That is a generous set: you are not forced into cramped abbreviations by the tool. {{first name}}, {{first_name}} and {{first-name}} are all valid names, and each produces a value field labelled with that exact name.
Two matching rules follow from how detection works. First, the tool lists each unique variable once, in the order it first appears, no matter how many times it occurs. Second, matching is by exact name. {{name}} and {{Name}} and {{full name}} are three different variables as far as the filler is concerned, even if you meant the same person every time. Good naming is mostly about respecting those two rules.
One more detail: triple braces such as {{{name}}} are treated as a literal brace around a normal {{name}} variable, which is why a template that wraps a variable in braces for display still detects the inner variable correctly.
Descriptive names beat abbreviations
An abbreviation saves a few keystrokes once and costs you reading time on every reuse. When a field appears labelled {{t}}, you must find where {{t}} sits in the template and infer from the sentence around it whether it wants a tone, a title, a topic or a time. A field labelled {{tone}} answers its own question before you type anything.
Write the name you would use if a colleague had to fill the template without you in the room. Prefer the full word for the concept: {{deadline}} over {{dl}}, {{customer_name}} over {{cust}}, {{tone}} over {{t}}. Numbers belong in names only when the template genuinely holds two of the same kind of thing, such as {{speaker 1}} and {{speaker 2}}; a number used as a version marker, like {{topic2}}, is a smell that the old variable should have been renamed or removed.
Keep names short enough to scan: the field label repeats the name exactly, so keep most names to two or three plain words.
One concept, one name
The most damaging naming mistake is giving one concept two names inside a single template. It happens innocently: you write the first half of a template with {{topic}}, come back after lunch, and write the second half with {{subject}}. The filler cannot know you meant the same thing. It shows two fields and substitutes each value only where its own name appears, so the two halves may end up describing different topics, or the same value typed twice.
The same rule applies across a template library. If your email template calls it {{name}} and your summary template calls the same kind of value {{person}}, you relearn the mapping every time you switch templates. Decide what each recurring concept is called, a person is {{name}}, a subject is {{topic}}, a style is {{tone}}, and use those names everywhere.
Pick one style and keep it everywhere
Because spaces, hyphens and underscores are all allowed, three readable styles are available: {{first name}} with spaces, {{first_name}} with underscores, {{first-name}} with hyphens. None of them changes how substitution works. What matters is that you choose one and apply it to every template, because a mixed library invites exactly the two-names-for-one-concept problem when you copy a paragraph from one template into another.
Underscores are the safest default for most people: the name stays one visual unit, and it matches the style used in the tool's own examples, such as {{customer_name}}. Spaces read more naturally in field labels. Either is fine. Switching between them is not.
How to rename a template's variables, step by step
- Open the template and list its variables in order. Paste it into the Prompt Variable Filler: the fields that appear are exactly the unique variables it contains, in the order they first appear.
- Write the new name for each variable beside the old one, using your chosen style.
- Edit the template text, replacing every occurrence of each old name. Partial renames create extra variables, so change them all.
- Paste the edited template into the filler again and compare the field list with your list from step 2. The fields should match your intended names exactly, with no leftovers.
- Fill the fields, check the unfilled list under the result says nothing is left, and copy the prompt.
Worked example: the email template, a month later
The tool's own documented example is this template: "Write a {{tone}} email to {{name}} about {{topic}}." Filled with tone = friendly, name = Priya, topic = the project deadline, it produces "Write a friendly email to Priya about the project deadline.", with 3 placeholders filled and none unfilled. The names model the habit this guide recommends: each one is the plain word for its concept.
Now imagine the same template after a month of small edits. Someone used {{subject}} instead of {{topic}} in a new closing line, and shortened the name variable to {{n}} in one place. The filler now shows five fields, and the person filling it must guess that {{n}} wants the same value as {{name}} and {{subject}} the same value as {{topic}}. The tool is only matching names exactly, as documented. Renaming every occurrence back returns the form to three fields, and the template explains itself again.
Limitations and alternatives
The filler treats names as plain text. It cannot tell that two names mean the same thing, merge them, or warn you that a name is unclear; naming discipline is entirely yours. It also keeps no memory of your templates between visits, since detection and substitution happen in your browser and nothing is stored. If your naming system matters to a team, write it down where the team can read it.
If a template has grown so tangled that renaming feels risky, the alternative is to rewrite it from scratch with the final names decided first, then test the rewrite in the filler before deleting the old version.
Common mistakes
- Abbreviating to save space. The name appears as a field label on every use; a cryptic label taxes every future fill.
- Renaming only some occurrences. Any occurrence left behind becomes a separate variable with its own field.
- Two names for one concept.
{{topic}}and{{subject}}in one template means two fields and two chances to type inconsistent values. - Mixing styles across templates. Underscores in one file and hyphens in another turn copied paragraphs into duplicate variables.
- Numbering instead of naming.
{{item2}}says nothing about what the value should be;{{second speaker}}does.
FAQs
What characters can a variable name contain? Letters, numbers, spaces, hyphens and underscores. Anything wrapped in double curly braces with those characters is detected as a variable.
What happens if I use two names for the same thing? The tool treats them as two different variables and gives you a field for each one, because detection works on the exact name inside the braces.
Can a variable name contain spaces?
Yes, {{first name}} works, and the value field is labeled with that exact name. Keep names short and consistent so templates stay readable.
If I rename a variable in one place, does the tool update the rest? No. Each occurrence is matched by its exact text, so rename every occurrence. Any occurrence left with the old name becomes a separate variable with its own field.
Is my template stored or sent anywhere? No. Detection and substitution happen in your browser on this page.
Conclusion
A template is read far more often than it is written, and its variable names are what you read. Use the full character set the tool allows, give every concept exactly one descriptive name, and hold one style across all your templates. The Prompt Variable Filler will then greet you with a field list that explains the prompt before you type a word. For these naming rules applied at scale, see One Review Reply Template, Twenty Businesses, and browse the other guides in the AI and Prompt Tools guides archive.