Variables in prompts
Variables turn a single prompt into a flexible template. Instead of writing a new prompt every time one detail changes, you write it once with placeholders and fill them in when you use it.
How to write a variable
Wrap a name in double curly braces: {{like_this}}. For example:
Write a {{format}} about {{topic}} for {{audience}} in a {{tone}} tone.
Here format, topic, audience, and tone are variables. Pick clear, lowercase names so it is obvious what each one expects.
The fill dialog
When you use a prompt that contains variables, Prompt2Love shows a fill dialog: one field per variable. Type your values, and the prompt assembles itself around them. No hunting through the text to swap words by hand.
Live preview
As you fill in the fields, a live preview shows the finished prompt with your values inserted. You see exactly what will be sent before you send it, so you can catch a wrong word or a missing detail right away.
Works everywhere
Variables are part of the prompt itself, so they travel with it:
- In the App when you copy a prompt.
- In the Chrome extension, where you fill the variables right in your browser.
- In AI clients connected over MCP, so the same template works inside Claude or ChatGPT.
See Connect your AI client to set those up.
Tips
- Name variables after what they hold, like
{{customer_name}}, not{{x}}. - Reuse the same variable name when the same value should appear in several places.
- Keep the surrounding text fixed and let variables carry only what changes.
Where variables shine
Variables are also the backbone of skills, where a stable system prompt plus per-use variables gives you reliable, reusable behavior. Combine good variables with consistent tags from Organize your prompts and a small library does a lot of work.