Work

Case study

Turning multimodal input into editable UI

Convert text, screenshots, sketches, and AI instructions into structured design elements people can continue editing.

Multimodal AIStructured conversionGenerative UI
01

My contribution

I contributed deeply to the structured conversion and mapping layer while the team evolved Visily's generative UI across multiple input modes.

02

Reasoning

Instead of coupling AI output to the editor's private schema, we introduced a validated intermediate representation and mapped it through element-specific adapters.

03

Outcome

Generated interfaces could preserve structure, text, styles, and design-system meaning as native editable content rather than flat output.

Lessons I carry forward

  • Editability starts at the contract
  • Resolve uncertainty before mapping
  • Engineer around probabilistic output

The problem

Text and images can describe an interface, but a design product needs more than a convincing picture. The result must preserve hierarchy, content, styles, and useful component meaning so a person can continue designing.

Over time, the possible inputs expanded: screenshots, text prompts, sketches, images attached to a conversation, and existing designs selected for modification. Each input expresses a different kind of evidence. An image is visually specific but structurally silent. Text carries intent but leaves geometry ambiguous. Existing design context is structured, but still needs careful interpretation.

The product challenge was not merely supporting every modality. It was making them converge on output that behaved like it belonged in Visily.

Why it was difficult

Model output is probabilistic, while an editor document must obey deterministic constraints. Screenshots lose structure, generated results can be incomplete, and exposing the editor’s internal document model would tightly couple AI behavior to product internals.

The pipeline also had to handle resources and timing. Text geometry was wrong when fonts were not ready. Responsive roots could collapse without a real viewport. Generated work could take long enough for users to navigate away or reload. Unsupported elements needed fallbacks, while malformed or empty output needed to fail without corrupting the board.

Visual similarity and editability sometimes pulled in opposite directions. A raster result could look close immediately and offer nothing meaningful to edit. Native elements were more valuable, but every supported control, chart, table, and text behavior widened the conversion responsibility.

My contribution within the team

I worked with the wider AI, editor, product, and design team as inputs expanded from images and text to sketches and richer multimodal context. My strongest contribution was the shared structured-conversion and mapping layer, with a focus on making the output genuinely editable.

I worked on the surrounding product experience as well: generation entry points, per-screen results, loading and retry behavior, feedback, the assistant interface, inserting results into a board, and AI operations that could participate in editing and undo.

I spent much of my effort at the deterministic boundary after generation, implementing the normalization path and a substantial part of the Visily adapter layer that turned validated structure into native elements. These pieces depended on model, backend, editor, product, and design work from teammates; the feature emerged from those parts working together.

The key decision

We introduced a structured intermediate representation between probabilistic generation and the editor. It resolved ambiguity, normalized the result, and mapped it through element-specific adapters. Design-system information could enter the same contract instead of being painted onto a flat image later.

text · image · sketch
          ↓
    Visily AI Design
          ↓
validated design structure
          ↓
 editable Visily elements

Why an intermediate representation

The AI system needed freedom to evolve without exposing or becoming tightly coupled to the editor’s private schema. An intermediate representation separated generative intent from deterministic product rules.

Why resolve layout before mapping

Generated intent alone does not guarantee a valid editable layout. Resolving layout before element creation gave downstream adapters a stable contract and prevented each adapter from inventing its own interpretation.

Why normalization

Passing every source-specific detail downstream would spread uncertainty through the editor. The normalized structure retained only what conversion needed: identity, hierarchy, resolved geometry, selected visual properties, semantic hints, and content.

Why typed adapters

Adapters gave each supported type a deliberate mapping. Buttons, text, icons, tables, checkboxes, radio controls, dropdowns, avatars, rich text, navigation, progress indicators, and charts could become corresponding native elements instead of generic rectangles.

The board theme entered the same process so generated colors and typography could relate to an existing design system.

Alternatives I rejected

Have the model target the editor’s schema directly. One fewer layer, and one fewer place for a mismatch to hide. It also asks a probabilistic system to know internal product concepts, produce valid structure in them, and satisfy layout constraints it cannot observe — and it couples the generative side to every internal change on the editor side. The intermediate representation costs a translation step and buys both sides room to move independently.

Fix reliability with prompts. Prompt iteration is cheap, fast, and it genuinely works. What it cannot do is guarantee deterministic product behavior, because the same prompt is not a contract. I moved as much of the reliability burden as I could into engineering controls — validation, fallbacks, cancellation, recoverable intermediate results — and kept prompt work for the part that is genuinely about intent.

Let each adapter interpret layout for itself. Skipping the resolution step would have removed latency and infrastructure cost. It also means every adapter invents its own reading of an ambiguous result, and the disagreements surface later as visual bugs nobody can attribute to a decision. Resolving layout once, before mapping, gave the adapters a stable contract to be correct against.

Trade-offs and reliability

The representation had to retain enough visual detail without becoming a copy of either the browser or the editor’s private schema. Validation, graceful fallbacks, cancellable work, and recoverable intermediate results were more durable than relying on prompt changes alone.

Prompt iteration remained useful, but it could not guarantee deterministic product behavior. I increasingly responded to uncertainty with engineering controls:

  • validate that generated structure exists before conversion;
  • wait for layout-critical resources and a stable result;
  • preserve temporary results across interruptions;
  • expose progress and allow cancellation;
  • log conversion failures with enough context to diagnose them;
  • degrade unsupported structures deliberately;
  • keep generated design insertions compatible with normal editor actions.

The resolution step added latency and infrastructure cost. The adapter vocabulary added continuous maintenance. Those costs were accepted because the alternative was output that looked finished while remaining disconnected from the product.

One important scope boundary: this case study covers only publicly released behavior.

Outcome

Different input modes converged on one conversion path, producing native design content that users could select, restyle, and reorganize.

The shared conversion foundation created leverage beyond AI generation. Improvements to fonts, layout, controls, and mapping could serve both generated and externally captured content rather than being rebuilt twice.

The destination vocabulary also reused years of editor work. Generated tables entered the native Table system. Theme-aware colors connected with the board design system. Editable text continued through normal typography behavior. The outcome was not merely more types of generation; it was a path for generated output to become an ordinary participant in the editor.

What changed in my approach

I learned that editability is an architectural constraint, not post-processing. When probabilistic output enters a deterministic product, the surrounding validation and conversion layers are part of the feature—not supporting plumbing.

I would define fixture-based conversion tests and quality scenarios earlier. A useful test suite should separate at least three questions: did the structure convert, does the result remain editable, and does it preserve enough visual intent? One score or screenshot cannot answer all three.

I also learned to search for the stable deterministic seam in an AI feature. Models and prompts will change. A measured, validated hand-off and a native adapter vocabulary can make those changes survivable.