A product with a set of well-liked dashboard panels kept receiving the same kind of request: a view that did not exist yet, for data only the requester had. Each of those used to turn into its own small project.
The aim was to answer such requests at the moment they are asked, inside a conversation with an assistant — a chart that responds to hovering, a grid that sorts, a compact tool shaped around the attached file and shown as part of the reply. The idea usually goes by the name generative UI.
Below: the two designs that were tried and why the model-written one was chosen; a harder problem that had to be solved first — making sure the custom tool is the one that responds at all; the measured cost in seconds; the same charts rendered into Word files; and what remains open.
Prebuilt or model-written
The decision turned out to be binary. In the first design, a server owns a library of finished components and the assistant merely decides which one to call. In the second, the assistant receives a template together with the user's data and produces the component's code itself, every single time. Both reached a working state and were weighed with product stakeholders.
The model-written version was noticeably slower on every request, and it was chosen regardless. Its advantage was coverage: a person could ask for a view nobody had designed and receive one built around the file they attached. A product whose value rests on people analysing their own figures needs that more than it needs a quick response.
Prebuilt vs. model-written
Why is the flexible path slow? Not because the model solves something hard each time. Assembling a chart component from a known template is routine work; most of the wait is simply the model typing out several thousand tokens of code. Remove that typing by serving prewritten code and the result is the first design again, with its limited menu.
What the slowness buys is how little a fresh layout costs. Previously, each panel went through a request, a design round and development, and weeks later covered exactly one scenario. Now a description of the goal plus a few constraints on scale and emphasis is enough for a first version, which is then refined through follow-up messages. No developer takes part in that loop.
For reference, the prebuilt prototype exposed four groups of capabilities, with a few short prompts pointing the assistant at the appropriate group:
Prototype capability groups
An empty template the model fills in, for requests none of the other groups can serve.
Sortable grids and the common chart forms, populated from the figures attached to the request.
A short list of polished, purpose-built panels already shipped elsewhere in the product.
Placeholder datasets that let the other three be exercised before any real data service existed.
Two practical constraints shaped that prototype. The desktop client's security policy rejected scripts from external sources, so each component was compiled into a single file with every dependency embedded. Communication with the client ran through standard input and output instead of HTTP — not by preference, but because the client's local-server settings at that time accepted only a launch command. An HTTP transport was already written; it simply had no hosted environment to run in yet.
Two recordings show the model-written approach in use. Both rely on the same skill and a single attached file, and nothing was prepared for either request in advance. In the first, the question is about a single holding — how large the position is and whether it is working. The answer is a position view: size and result along the top, then the quarter's daily price bars set against the zone where the position was built and the zone where it should be trimmed.
The second request asks for the whole portfolio at a glance, and the composition changes completely: headline figures in a row, the NAV path across the quarter, a bridge showing what moved it, the sector mix over six months and a scorecard by desk, arranged as one board rather than a report to read top to bottom. Narrow the panel and the same board reflows into a single column.
Getting chosen in the first place
A custom tool is only useful if the assistant actually calls it, and here that was not guaranteed. Before choosing, the model reads one short summary per available option; a skill's detailed instructions are loaded only once it has been selected. Anything written in those instructions therefore has no say in the selection.
That mattered because the assistant has its own chart-drawing capability, enabled out of the box and triggered by the same kinds of requests — someone asking to plot figures, sketch a diagram or build a dashboard. From the first release, a share of such requests went to it instead of the custom skill.
One remedy considered was an organisation-wide instruction naming the preferred tool. It did work in tests, yet it would need central upkeep whenever a new team or another conflicting tool appeared, and that does not grow past a single case. It was dropped.
What stayed is a change to the summary itself. It now says plainly what the skill is for and names the built-in charting tool as the thing it replaces. Placing that sentence in the summary, rather than deeper in the instructions, is what makes it visible when the choice happens.
Disabling the competing tool is not an option. The platform lets a small, fixed set of built-in capabilities be disabled, and the charting one is not among them. The wording of the summary is therefore the entire fix — permanent, not a placeholder until a setting appears.
Decided on one line
"plot this out for me"
known at decision time — one summary per tool
a single tool answers
Everything in the skill's full instructions — a warning about the built-in tool included — arrives only after the choice. Nothing below the dashed line can change which tool responds.
The screenshot below shows the failure case: a request for a quick interactive chart, answered inline in the conversation by the built-in tool — a plain bar chart with its own tooltip, and no side panel. The folder where the skill writes its output stayed empty, confirming the skill was never invoked.
The price in seconds
Of the four models tested, the one that shipped was neither the quickest nor the most thorough. It sat in the middle on time and gave the most dependable first result, rarely needing more than a second pass — and that pairing decided it. The figures come from a controlled setup rather than impressions from a few demos:
Test setup
- Timing covers the span from sending the request to the finished widget becoming visible in the chat.
- Each run asked for the same widget with its dataset included in the request, so the timer counts building alone.
- Every run began in a fresh conversation, with nothing carried over from earlier attempts.
- The order of models rotated, so none of them consistently went first.
Where the seconds go
Done in under half a minute, though the follow-up fixes it tends to need eat much of that head start.
The most dependable first result in the test, at a mid-range time.
The longest wait in the test; reviewers found nothing extra in the output to justify it.
Polished output, judged by reviewers as equivalent to the shipped model's, delivered about twenty seconds later.
The breakdown backs up the earlier explanation. The first token arrives within two seconds for all four models and reasoning stays under twenty; most of what remains is code generation. The quickest model is quick mostly because it reasons for a fraction of the time the others spend.
That shortcut has a price. Finishing in under a third of the slowest model's time, it still needed more corrections before its widget could be used, and those corrections consumed most of the time it saved. The two slowest models, meanwhile, brought no visible quality gain over the one that shipped.
Charts inside Word files
The same charts were needed outside the chat as well, in Word documents that people pass around. The requirement did not change — branded charts built from the user's data — but the rendering route had nothing in common with the chat version.
The result first. Asked for a shareable .docx, the skill produced one file combining three parts: a position summary table, a price line with numbered markers for the events behind its moves, and a table of upcoming catalysts, all composed directly in the document.
Reaching it took three rendering designs. The first opened the page in an automated browser and captured a screenshot: the images were correct, but each document needed minutes and the restricted build environment kept breaking it. The second converted vector graphics to images on the server with no browser at all — under a second per file, yet legends came out clipped and some files malformed. The third, which shipped, draws every chart with a plotting library inside a single process, with no browser of any kind.
Document chart pipelines, in order
Still open
- Chart quality in Word output is still checked by eye; automated visual regression tests do not exist yet.
- Tool selection depends on how persuasive a single summary is. That improves the odds but guarantees nothing while the built-in tool stays active.
- A faster processing mode is available, at about twice the compute cost per request.
- Closing the rest of the speed gap would require prebuilt components again — precisely what the product cannot give up.
Next steps:
- Try a mixed setup: model-written widgets by default, plus prebuilt versions of the few views requested most often.
- Request official support for switching off an individual built-in capability; that alone would make selection certain rather than likely.
The broader lesson: when flexibility is the product, speed and tool selection are problems to manage around it, not reasons to give it up.