AI assisted, web based demo of a medical device app
I designed and led a design to code experiment that let AI assisted development generate a working web demo of a hearing app. A first version reached about 80% completion within days, and the demo shipped three weeks ahead of schedule.
Tools: Figma, GitHub Copilot with custom agents, automated screenshot testing. Result: live, shipped three weeks ahead of schedule.
In 30 seconds
I designed and led a design to code experiment that let AI assisted development generate a working web demo of a hearing app. A first version reached about 80% completion within days, and the demo shipped three weeks ahead of schedule. I moved from handwritten Figma annotations to recorded videos that GitHub Copilot turned into specifications. CONFIRM: month and year
The problem
Clinicians, sales teams and other users need to experience the app without a real hearing device, a recipient account or device pairing. That experience, called Demo Mode, used to live inside the production app. A major update to the app made keeping it there impractical.
The need had also grown. People wanted to use the demo for training and presentations on phones, tablets and desktop computers, and a mode buried inside a mobile app could not do that.
The challenge was to recreate the real app closely enough to be useful for training and demonstration, and to make it available from a simple link, with no production app or hardware.
My role
I was the only designer. I worked with a product manager, a business analyst and a team of engineers. I designed the demo experience, and I personally experimented with many ways of making our current app readable by AI. I worked with engineering to turn that into a workflow they could build on.
The options
Web was the only option that met the brief: a functional product demo, available globally on any device, with no production app, account or connected hearing hardware. Keeping the demo inside the production app was no longer practical after the update. So the real decision was how to build it, and that is where the experiment came in.
The decision that mattered
My first approach was to write behavioural annotations in Figma by hand. It worked, but it was slow and the language drifted between screens. So I changed method. I recorded videos of the features we were replicating and had GitHub Copilot turn each recording into a markdown specification. The specifications described what the app actually does, not what I remembered or assumed. The first pass took the AI agent about six hours to turn my annotations into code. The demo reached about 80% completion within days and shipped three weeks ahead of schedule. CONFIRM: one example feature, and how the specs sat alongside the Figma designs
Key decisions
Treat Figma as more than a visual specification. Rather than hand over static screens, I structured the designs with components, states, interactions and behavioural annotations so that an AI assisted development pipeline could interpret them.
Move from handwritten annotations to recorded behaviour. I started by writing behavioural annotations in Figma by hand. That worked well, but it was time consuming, and keeping the language consistent across screens was difficult. I then changed the approach: I recorded videos of the app features we were replicating, and had GitHub Copilot turn each video into a markdown specification of how the feature behaves. The recordings captured real behaviour, so the specifications described what the app does rather than what I remembered or assumed. ADD: one example feature, and how the markdown specs were used alongside the Figma designs.
Let AI build, and let AI check its own work. With engineering, we used GitHub Copilot and custom agents to generate a functional web demo from the designs. An engineer on the AI side built the loop that evaluates each build against the design with Playwright and refines it, which cut the process down considerably. Compared with starting from a good enough demo and prompting it up to quality by hand, the team now gets a much better first draft. My part was making the designs and behaviour specifications something that loop could work from. The first pass took the AI agent about six hours to turn my annotations into code, and the demo reached around 80% completion within days.
Design for the pipeline's stages. The engineering team's pipeline takes a Figma design and generates a working web app, then measures how closely the result matches the design. It runs in stages:
- Extract: frames and metadata are pulled from Figma, and images are downloaded fresh on every run, so each build uses the current design.
- Plan: a design document and a generation plan are written and kept between runs, so design decisions carry over.
- Build: separate agents set up the run, plan the structure, write the code and coordinate the others, instead of one large prompt.
- Evaluate: an automated test captures screenshots of the running app, compares them with the expected Figma frames and produces a written evaluation with a score.
- Resume and reset: progress is saved so a run can continue after a stop. Generated code is cleared between runs, while design documents and audio are kept.
Because the output is scored against my frames, the quality of my designs and annotations decided the quality of the build. That is why the way I described behaviour mattered so much. CONFIRM: that you want this section. The pipeline was built by the engineering team, so it is framed as their system that your designs fed.
Keep engineering in charge of production. The generated demo was a starting point. Engineers took it through the normal development process to make it ready for production. The workflow compressed the first draft. It did not replace review. CONFIRM: wording on "80%". It is your estimate, so I have described it as "around 80%".
The hardest part
Finding the most effective way for AI to digest Figma designs. A design that is clear to a person is often ambiguous to a model. Components, states and behaviour all had to be described explicitly enough to be read reliably. I tried several approaches, from manual annotations in Figma to specifications generated from screen recordings, and the second proved the more effective way to capture behaviour. Manual annotations worked well, but they were time consuming and hard to keep consistent in language. Generating the specifications from recordings removed that burden.
Outcome
The demo is live. It lets clinicians, sales teams and other users try the app on a phone, tablet or computer from a link, with no device, account or pairing. It shipped three weeks ahead of schedule. The workflow gave the team a first working version within days, and engineers then finished it for production.
I do not have visibility of usage numbers, so I have not claimed any.
Reflection
AI is a fantastic tool, but it does not replace a skilled UX designer. The AI could build the screens, but only a person who understands how the app's features work for the people using it can make them human centred. That understanding stays with the designer.
Skills
Design systems · Design to code workflows · AI assisted development · Prototyping · Product demos · Cross functional collaboration