AI engineering · 9 November 2026 · 8 min read
How do you demo an AI feature without live data or a live key?
Record good answers to the questions your demo will be asked, and have the app play them back instead of calling the model, on invented data. Keep the live model for a session you run yourself, and make demo mode something the real product refuses to start in.
- AI engineering
- AI strategy
- Prototypes and MVPs
- Secrets
- For CTOs and tech leads
- For product and innovation leads
In this article
Record good answers to the questions your demo will be asked, and have the app play them back instead of calling the model. Run everything around them on invented data. A key in a demo is a key every viewer can find, a live call sends whatever is in the prompt to a third party, and a model rarely answers the same way twice. Canned answers keep the demo safe, quick and the same for everyone. When someone needs to see the real model on their own questions, run it yourself, on a call.
This article is for a demo whose whole point is its AI: an assistant, a summariser, a document reader, a triage tool. It covers why the live call has to go, what a canned answer looks like, how to swap one in without leaving a trap for the real product, and what the demo cannot tell anyone. Mock data when the real data is regulated covers the rest of the app’s data, and the checklist before it goes to a client covers everything else.
Why can’t the demo call the model for real?
Four reasons, and in a regulated business the fourth is the one that matters most.
The key would be published. A model call made from the browser needs the key in the browser. Vite, which many AI builders use, says plainly that variables prefixed
VITE_are bundled into client code and should not hold API keys. Anyone who opens the demo can read it.Every question runs on your account. Wherever the key lives, every viewer’s question, and every curious colleague they forward it to, is billed to you.
The answers change. A walk-through that says “look at the summary it wrote” needs that summary to be there, the same, for every viewer. A model that answers differently each time can let a viewer down at exactly the wrong step.
The data goes somewhere. Everything in a prompt goes to the model’s provider. If a demo invites a client to paste in their own documents, you are now processing their data with a supplier nobody has assessed. Our rule at Daedalus is that client data stays out of public models, and we agree the tools with a client before they touch anything real.
| Way to show the AI | A key in the demo? | Whose account it runs on | Same answer every time? | Real data at risk? |
|---|---|---|---|---|
| Call the model from the browser | Yes, readable by every viewer | Yours | No | Whatever a viewer types in |
| Call the model from your own server | On the server | Yours | No | Whatever a viewer types in |
| Canned answers on invented data | None | Nobody’s | Yes | None |
| Live on a call, run by you, on invented data | On your machine | Yours | No | None, if you choose the inputs |
| A pilot in the client’s own setting | In their environment, under their controls | Agreed with them | No | Yes, and assessed first |
Most demos want the third row, with the fourth held back for the meeting where someone asks “but what would it do with ours?”
What does a canned answer look like?
A short file of questions and answers, which the app reads instead of calling the model. Each answer is matched to a step of the walk-through or to a few keywords, and one fallback answer catches everything else. The fallback says plainly that this is a demo, and offers to run it live on a call.
Something like this, for an assistant built for a lender’s credit team:
[
{
"match": ["missing", "outstanding", "documents"],
"answer": "Three applications are waiting on documents. The oldest, Brindlewick Bakery Ltd, has been waiting nine days for its last two bank statements. Shall I draft a reminder?"
},
{
"match": ["summarise", "summary", "this application"],
"answer": "Brindlewick Bakery Ltd is asking for £40,000 over three years to buy a second oven. Turnover has grown each of the last three years, and there are no missed payments on existing borrowing."
},
{
"match": [],
"answer": "This is a demo, so it answers a handful of sample questions. On a call, we can run it live on examples you choose."
}
]Every name and figure in it is invented. The shape is only an example: your app reads the file, so it can be whatever your app needs. If the real product streams its answer word by word, play the sample out a few words at a time too, so it feels like the real thing.
How do you swap the model call for samples?
Find the one place the app calls the model, and replace it with a lookup in the samples file. Keep the real call for development, with no key in anything you send anyone. Then make sure demo mode can never switch itself on in the real product.
Find the call. It is usually one function or one route. Search for the model provider’s name, or ask the agent that built the app where it calls the model, and then check its answer.
Replace it with a lookup. The function takes the question, finds the closest match in the samples file, and returns its answer. With no match, it returns the fallback.
Or leave the app’s code alone. Mock Service Worker intercepts the app’s network requests in the browser and can answer them from the samples file, so the app thinks it called the model.
Take the key out. No
.envfile in what you send, and no setting the build will copy into the browser code. If a key was ever in a file you shared, rotate it.Make demo mode explicit. It should be a setting you choose when you build the demo, never something that switches on because a key happens to be missing.
The fifth step is the one AI-written code most often gets wrong. Ask an agent to “make it work without a key” and it may well write exactly that: if the key is missing, quietly fall back to sample answers. In a demo that is harmless. In the real product, a missing key in production would then serve invented answers to real customers, with no error anywhere. Edward explains why agents reach for fallbacks that make code look safe, and how to make them refuse instead. The pattern Dylan describes in letting AI into your systems without leaking secrets is the right one: the product checks for the unsafe setting at start-up, and will not run in production with it switched on.
Can I ask the AI agent to do it?
Yes. You do not need to write the lookup yourself. Ask the agent that built the app, and be specific about the parts it is likely to get wrong:
Make a demo build of this app that never calls the AI model. Replace every model call with answers from demo-data/samples.json: one entry per walk-through step, matched by keywords, and one fallback answer that says this is a demo and offers a call. Demo mode must be a build setting, never a fallback when a key is missing, and the production build must refuse to start with it on. Remove the API key from the demo build. Nothing in the demo should reach the internet.Then read every answer it writes. The client will read them as your product’s answers, so each one should be an answer you would be happy to stand behind.
Which questions should it be ready for?
The walk-through’s steps first, because they tell a viewer what to ask. Then the few questions a buyer in that trade always asks. Then the fallback, for everything else. A demo that answers a dozen questions well says more about the product than one that tries to answer anything.
The walk-through’s steps. Each step that shows the AI asks one question and gets one good answer.
The trade’s questions. For a credit team: what is missing, which applications are at risk, what changed since yesterday. Ask the client’s own team, if you can, what they would type first.
The fallback. It turns a question the demo cannot answer into a next step: a call, run on examples they choose.
What should the client be told?
That the answers are samples, on invented data. Say it where the AI first answers, in your own words: these are sample answers, and on a call you will run it live. A client who knows that judges the product rather than the sample. A client who finds out later wonders what else was staged.
If the people deciding are not technical, a picture of what happens to their data in the real product does more than a paragraph. Dylan’s approach to explaining a feature to a non-technical client works well here: who sends what, to whom, and what each one keeps.
What can a canned demo not tell anyone?
How well the model will do on the client’s real data. Canned answers show what the experience would be like, which is what a prototype is for. They say nothing about accuracy, speed or cost on real inputs, or how the model fails. Those need a test on real or realistic data, inside the client’s controls, with the data protection work done first.
In a regulated business that is usually a pilot, and it needs an assessment of its own: new uses of AI, combined with another of the high-risk criteria the ICO lists, are among the cases where it expects a data protection impact assessment before the processing starts. Prototype, proof of concept, pilot or MVP sets out where each one fits. If the question is whether the AI belongs in the product at all, that is worth settling before anyone builds the pilot.
Sources
Vite, Env variables and modes:
VITE_-prefixed variables are bundled into client code and should not hold API keys.Mock Service Worker, mswjs.io: intercepts requests in the browser using the Service Worker API.
Information Commissioner’s Office, When do we need to do a DPIA?: innovative technology, including AI, combined with another high-risk criterion, requires an assessment before processing.
Related articles
Mock data for a demo when the real data is regulated
Don’t copy production and scrub it. Invent records from the shape of the real data, make them convincing, and keep the demo unable to reach any real system. Pseudonymised data is still personal data, so a scrubbed copy is still regulated.
For CTOs and tech leads, Engineers
8 July 20268 min read
Is your AI-built app safe to put in front of a client?
Yes, if it runs on invented data, holds no live keys, reaches no real system and goes to each person on a link you can switch off. Here are the checks to make before you send it, and what a regulated client will ask on top.
For Founders, CTOs and tech leads
25 August 20268 min read
How do you let AI into your systems without leaking secrets?
Assume the AI can see everything you give it, and give it nothing it doesn’t need. Then back that up with rules your tools enforce, so you aren’t relying on the AI, or a busy engineer, to behave.
For CTOs and tech leads, Founders
12 August 20263 min read
Read something that sounds like your problem?
A free 15-minute intro with our CEO. Bring the article, and he’ll tell you which service fits, if any. If a spreadsheet and two rules would do the job, we’ll say so.