01What is Prompt Builder?
Most chat model APIs don't take one big block of text. They take a list of messages, each tagged with a role. Prompt Builder lets you lay that list out on screen, fill in the parts that change, and copy the result in the format you need. You start with two empty boxes, one System and one User. The buttons under the list add more User, Assistant or System messages. Each box has a role dropdown, and the trash icon removes a message (the last one can't be deleted). Four presets load a ready-made pair of messages: Code Review, Technical Writer, SQL Assistant and API Designer. Placeholders are where the tool earns its keep. Write {{language}} or {{customer_question}} anywhere in a message and the Variables panel picks it up. A name counts as a variable only if it uses letters, digits and underscores, so {{first-name}} is ignored. Values you type are swapped into the export. Anything left blank stays as {{name}}, which makes it easy to see what is still missing. The lookup only uses values you typed, so a placeholder called {{constructor}} won't pull in some hidden JavaScript property. The Export panel has three views. JSON gives you an object with a messages array of role and content pairs. That is the shape OpenAI's Chat Completions API documents, with the system prompt inside the array. Plain Text puts each message under a heading like [SYSTEM] or [USER]. Markdown gives each message a ### heading and separates them with horizontal rules. Here's a quick run. Load Code Review, set language to Python and code to print(1), then pick Plain Text. You get the system instructions under [SYSTEM], then "Please review this Python code:" under [USER], with print(1) inside a fenced block tagged Python. Note that {{language}} was filled in both places it appeared. Now the limits. Messages appear in the order you add them, and there is no drag-and-drop reordering. Nothing is saved, so a page refresh clears your work. Nothing is sent to a model either. The tool builds the payload and you take it from there. The JSON export only holds messages, with no model name, temperature or other request fields. If you target Anthropic's Messages API, the system prompt belongs in a separate top-level system field, so move it out of the array yourself.
Developers wiring up chat completion APIs who want a readable messages array with fill-in slots before they write the request code. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Prompt Builder
- Click a preset (Code Review, Technical Writer, SQL Assistant or API Designer) or type into the System and User boxes
- Use the + User, + Assistant and + System buttons to add turns, and change any role from its dropdown
- Type {{variable}} placeholders wherever the content changes between uses
- Fill in each detected placeholder in the Variables panel
- Pick JSON, Plain Text or Markdown in the Export panel and click Copy
03Worked examples
- Input:
SQL Assistant preset, dialect = PostgreSQL, query left empty, Export JSON - Result:
{ "messages": [ { "role": "system", "content": "You are a SQL expert. Help users write efficient, correct SQL queries. Always explain your reasoning. Use PostgreSQL SQL syntax." }, { "role": "user", "content": "{{query}}" } ] } - A variable with no value is left as {{query}} in the export, so you can see what still needs filling in.
- Input:
System: You are a SQL expert. Use {{dialect}} SQL syntax. User: {{query}} dialect = PostgreSQL, Export Plain Text - Result:
[SYSTEM] You are a SQL expert. Use PostgreSQL SQL syntax. [USER] {{query}} - Input:
Same messages, Export Markdown - Result:
### System You are a SQL expert. Use PostgreSQL SQL syntax. --- ### User {{query}} - Input:
Code Review preset, language = Python, code = print(1), Export Plain Text - Result:
[USER] Please review this Python code: ```Python print(1) ``` - Trimmed to the user message. {{language}} is filled in both places it appears.
- Input:
System: Classify sentiment as positive or negative. User: I love it Assistant: positive User: {{review}} Export JSON - Result:
{"role": "user", "content": "I love it"}, {"role": "assistant", "content": "positive"}, {"role": "user", "content": "{{review}}"} - A few-shot layout. Trimmed to the last three entries of the messages array and shown on one line each.
- Input:
User: Hi {{constructor}} {{first-name}} {{name}} name = Ana - Result:
Hi {{constructor}} {{first-name}} Ana - {{first-name}} is not detected because of the hyphen. {{constructor}} is detected but stays unfilled until you give it a value.
04Common use cases
- Drafting a reusable code review prompt with {{language}} and {{code}} slots that teammates fill in
- Laying out a few-shot classifier with example user and assistant turns before writing any API code
- Producing a messages array to paste into a curl request body or a unit test fixture
- Pasting a prompt into a design doc or pull request as Markdown so reviewers can read each turn
- Checking which placeholders a shared template still needs before you hand it over
- Turning a long single-string prompt into separate system and user messages to see which part does what
05Tips
- The JSON export keeps the system message inside the messages array. Anthropic's Messages API wants it in a top-level system field instead, so move it there for Claude.
- Use hyphen-free names like {{first_name}}. A placeholder with a hyphen is not detected and passes through as plain text.
- Messages can't be reordered, so add few-shot turns in the order the conversation should run.
- Leave a variable empty on purpose when you want to share a template. The export keeps {{name}} so the next person sees the slot.
- Copy your work somewhere before closing the tab, since nothing is stored between visits.
06Related concepts
System prompt, Few-shot learning, Prompt template, Chat messages, Prompt engineering.
Frequently Asked Questions
What is Prompt Builder?
Prompt Builder is a free, browser-based developer tool on AIDToolStack. Build AI prompts with system/user/assistant messages, variables, and export to JSON/text/markdown. It requires no installation or sign-up and works entirely in your browser.
Is Prompt Builder free to use?
Yes. No sign-up, no fees and no usage cap.
Does Prompt Builder store my data?
No. It runs in your browser; nothing is uploaded.