What are variables in a prompt
Variables turn a prompt into a reusable template. Learn how to define them, name them and use them on HomeCasa Prompts.
A variable is a slot inside a prompt that gets a different value each time you use it. Thanks to variables, the same prompt works for hundreds of similar situations.
Example
Write an 80-word product description for {{product}},
aimed at {{audience}}, with a {{tone}} tone.
If you replace {{product}} with “a reading lamp”, {{audience}} with “students” and {{tone}} with “youthful”, you get a complete prompt without rewriting anything.
How they work on HomeCasa Prompts
In our library, variables are written between double curly braces: {{variable_name}}. On each prompt page:
- Click Customize to see the field for each variable.
- Type your values: the prompt updates instantly.
- Click Copy prompt and paste it into your AI tool.
- Use Reset values to go back to the defaults.
The values you type stay in your browser; they are not sent to our servers.
Best practices
- Clear names:
{{target_audience}}beats{{x}}. - Example values: a good default shows what kind of information is expected.
- Only what changes: if something is the same in every use, write it directly in the prompt.
- Closed lists when it makes sense: tone (formal, friendly…), platform (TikTok, Reels…).
Variables in your own prompts
You can use the same idea in any tool: write your prompt with slots marked as [PRODUCT] or {{product}} and save it in your notes. Before using it, replace the slots. Some tools and automation platforms can fill in variables automatically.
Try creating your own template with the prompt builder.