AI design tool where journeys generate screens
An internal AI design tool for a multi-brand bank: a prompt becomes a journey graph, and screens are rendered from it within the design system's rules.
The problem
A bank redesigns the same journeys again and again, across several brands and two reading directions. Flows live in diagrams and screens in design files, and the two drift apart. Brand variations look free in a design file but cost money to build. Compliance rules sit in documents and in people's heads, so checking a design against them takes a meeting.
Who uses it
Bank product designers use it to go from a brief to a journey they can navigate and render. Policy owners (compliance, security, legal) own the rules that get checked. Engineering and design-system owners receive component requests. Stakeholders use it to see whether a journey meets policy by looking at the canvas.
My role
Designed and built the whole working prototype: product mission, principles, architecture, blueprint schema, interaction model, the React/TypeScript app (graph store, generation client and model providers, screen compiler, token layers, 22 lint rules, policy pack, patch layer, conformance), test suite, demo scripts and pitch narrative. Also studied twelve open-source design and AI-UI tools and wrote analyses of them.
How people stay in control
Where a person decides
Stated rule: the system commits nothing unless a person started the turn and can see the result. Structural operations, proposed segment boundaries, framing drafts and evidence proposals all need explicit confirmation. Lint findings never block. Dismissing one requires a logged reason, and that dismissal also stops the agent from seeing the finding. Designer patches take precedence over everything else. There is no background or scheduled generation.
How it shows its work
Every finding is attached to the node or edge it is about, with a rule ID and a severity. Policy cards show the owner, severity, rationale and citation. Generation shows a running count of operations and what the model is doing. Component requests show all three ways to close the gap and what each costs. Override pressure is shown as a plain number, with no colour and no threshold.
Screens
Captured from the running product.
Technical detail: agents, research, design system and stack
How the agents are allowed to behave
Each agent gets its own level of autonomy, a guardrail and a planned failure mode.
- 1 Suggests
- 1 Drafts for review
- Journey Proposer Detailed below Autonomy: Drafts for review. Drafts for review Turns a designer's prompt, or an edit to a selected node, into a stream of graph operations that build or extend a journey.
- Visual Critic (opt-in) Detailed below Autonomy: Suggests. Suggests Reviews rendered composite images of each screen across all brands and directions, judging what rules cannot: whether a screen reads as one task, and whether the brands still look like one product.
Autonomy is set per agent, not per product. Where an agent decides alone, the guardrail is a schema, a threshold or a fail-safe default — detailed in the cards below.
Journey Proposer
Drafts for reviewTurns a designer's prompt, or an edit to a selected node, into a stream of graph operations that build or extend a journey.
- Reads
- Designer prompt and selection, a snapshot of the current graph, the registry vocabulary (components, patterns, fragments, policies), open lint findings and the workflow report.
- Writes
- Typed operations: add nodes, wire edges, fill slots, set bilingual copy, raise component requests.
- Guardrails
- One tool per operation type, with strict schemas whose enums come from the real registry, so it cannot invent a component, prop or colour. Every operation is validated before it is applied. IDs are never authored by the model. Reviewed fragments are inserted unchanged and never regenerated.
- When it fails
- Invalid or unapplicable operations are rejected and reported back as workflow facts, not applied. Generation repeats rounds until one adds nothing, up to a cap, and reaching the cap is logged as possibly incomplete. Results stay staged until a designer keeps them.
- What that means
- Produces work a person must accept
Visual Critic (opt-in)
SuggestsReviews rendered composite images of each screen across all brands and directions, judging what rules cannot: whether a screen reads as one task, and whether the brands still look like one product.
- Reads
- Composite screenshots, one image per screen tiling six brand and direction renderings, plus a manifest.
- Writes
- Findings shaped like lint findings, all at info severity.
- Guardrails
- Answers through a single schema-bound tool instead of prose. It is told not to judge contrast, target size or overflow, which a deterministic audit already covers. It can never block anything.
- When it fails
- Only runs when explicitly started, and exits if no key is configured. It is never part of the quality gate. Its findings go through the same dismiss-with-reason path as lint findings.
- What that means
- Offers input, changes nothing
How I found out what to build
Studied twelve open-source design and AI-UI tools (pinned as submodules), writing one analysis per tool: architecture, what to take, what to ignore, and surprises. These fed the architecture. A dated build log records what each pass settled, what it did not, and which defects it surfaced. Signals are measured deliberately without targets.
The design system the AI reads
The design system as a machine-readable spec
- Pattern templates 9 templates; slots set each brand's budget for divergence
- Closed component registry 36 components, 36 YAML contracts
- Two compiled token layers Generated by build scripts before the app starts
- Exported brand pack Three packs exist; the source, not the output
The design system works as a machine-readable spec. There is a closed registry of 36 components with 36 YAML contracts and 9 pattern templates whose slots set each brand's budget for divergence. Two-layer tokens are compiled from an exported brand pack, and three brand packs exist. Bilingual copy is required by the schema, and right-to-left layout is built in. A component request mechanism widens the vocabulary. 84 visual baselines are committed.
What it is made of
- Languages
-
- TypeScript
- CSS
- YAML
- Frameworks
-
- React 19
- Vite
- Zustand
- Zod
- React Flow (xyflow)
- dagre
- Vitest
- Playwright
- Tailwind
- Model families
-
- Claude (hosted, tool use with streaming)
- Local LLM via OpenAI-compatible server (llama.cpp, Ollama, vLLM)
- Canned fixture replay provider
- Data stores
-
- YAML registry files (components, contracts, patterns, fragments, policies, brands, journeys)
- In-memory session state only, with no persistence
- Orchestration
- A Node server-sent-events backend sits behind one provider interface. The client loop re-sends the request against the updated graph each round until nothing new is added, or a cap is reached. Lint runs continuously on graph changes. Build scripts generate token layers and design guidance before the app starts.
Scale One transfer journey of 12 nodes, plus a demo journey of 18 steps. 8 library journeys, 36 components, 7 to 9 patterns, 2 fragments, 5 policy files, 22 lint rules, 3 brands and 2 directions. 996 tests in 94 files, according to the mission doc. 84 visual baselines, 39 automated demo checks, and about 100 commits from August to September 2026.