Prompt-Based Tool Generation
Describe behavior, mood, and constraints in natural language — with images, video, PDFs, or code as references — and Brik builds a working Tool with controllers.
Brik generates Tools from natural language. No technical vocabulary required — describe what you see in your head and let the agent translate it.
Writing the prompt
A good prompt covers three things:
- Behavior — what moves, reacts, or changes ("particles orbit a logo and scatter on click")
- Mood and feel — "calm, structured, editorial", "loud, glitchy, neon"
- Constraints — "no 3D", "single-color background", "must work in vertical and square"
Anything you leave out, the agent decides for you — and exposes as a controller so you can change it later. Short prompts work; the agent asks when it needs a decision.
References
Click + in the composer (Upload reference) to attach:
- Images — JPEG, PNG, GIF, WebP — for visual direction, color, and composition
- Video — motion references, or footage the Tool should work with
- Files — PDFs (brand guides, briefs) and code or text (
.glsl,.js,.ts,.json,.css,.html,.md, and more) when you have a snippet the Tool should build on
Up to 20 references per message, of which up to 10 images; images, video, and PDFs up to 50 MB each; text and code up to 100 KB each. You can also drop files straight onto the composer.
Choosing a model
The model menu next to + in the composer picks which AI model builds your Tool. The default is a good start; switch when you want a different take on the same prompt. The list changes as new models arrive.
Questions from the agent
When a prompt could go several ways, the agent pauses and asks — a short card with options ("Something else…" opens a free-text field). Pick, then Next; Back revisits an earlier question and Skip lets the agent choose. Answering well here saves credits later.
What happens while it builds
You'll see the phases in the chat:
- Understanding your vision… — reading your prompt and references
- Designing the experience… — the direction is set
- Building your tool… — code, controllers, and defaults are written (long builds say so: Still working — this one is complex…)
- Your tool is ready — the Tool appears in the preview with its controllers
You can Stop generating at any point with the square button and keep whatever exists. On your first Tool, Brik uses the wait to ask three quick onboarding questions — one tap each, all skippable.
What you get
- A working Tool rendered in the preview, at the size you chose
- Controllers grouped into sections, with defaults that produce a coherent look
- A generated name and a short description
- The conversation, so you can keep refining — see Iterating & Versioning
If the preview throws errors, Brik tries to fix them on its own before it shows you the Tool. If it can't, you see Couldn't auto-fix this one — refresh the page, or remix the Tool and continue from there. If a request times out, make it smaller and try again.
