Skip to content

Data and platforms · 8 July 2026 · 8 min read

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.

  • Data and platforms
  • Data modelling
  • Prototypes and MVPs
  • Security
  • For CTOs and tech leads
  • For engineers
In this article
  1. Why not just anonymise a copy of the real data?
  2. What are the ways to give a demo its own data?
  3. How do you make invented data convincing?
  4. Can an AI agent write it?
  5. How do you check nothing real is left?
  6. Who needs to know?

Invent it. Build the demo’s data from the shape of the real data, its tables, fields, sizes and awkward cases, and make up every name, figure and identifier in it. Then make sure the demo cannot reach any real system. Don’t take a copy of production and scrub it: in UK law, pseudonymised data is still personal data, and a scrubbed copy is still a copy of your customers.

This article is for a team building a demo, a prototype or a sales environment in a business whose real data is regulated: lending, payments, insurance, health. It covers why the scrubbed copy is the wrong shortcut, four ways to give a demo its own data, how to make invented data convincing, how to get an AI agent to write it, and how to check nothing real is left.

Why not just anonymise a copy of the real data?

Because it is much harder to do than it looks, and the law treats anything short of it as the real thing. Replacing names with codes, or hashing account numbers, is pseudonymisation. The ICO is clear that pseudonymised data is still personal data for whoever holds the means to link it back, and that pseudonymisation is not a way of taking data outside the law.

Three things make a scrubbed copy riskier than it seems:

  • People are easy to pick out. A postcode, a date of birth and a loan amount can identify someone with no name attached. The rarer the record, the easier it is, and the unusual records are often the ones that make a demo interesting.

  • It is a new use of the data. Your customers gave you their data to get a loan or see a doctor, not to appear in a sales demo. Under UK GDPR’s purpose limitation principle, you may only reuse personal information for a new purpose if it is compatible with the original one. My view: showing it to prospects would be a hard case to make.

  • Demos travel. A demo is copied, forwarded, left running and opened on phones. Whatever is in it goes everywhere it goes.

There is a practical point too. Your data protection officer or compliance team can sign off invented data in a conversation. A scrubbed copy needs an argument, and they would be right to want one.

What are the ways to give a demo its own data?

Four, from the simplest up. Most demos need only the first or second. Try them in order and stop at the first that does the job.

ApproachWhere the data livesGood forWhat it takes
Sample filesJSON or CSV files shipped with the demoLists, tables, dashboardsPoint each screen at a file instead of a server
Data in memoryThe page itself, reset when it reloadsSmall tools and calculators the viewer changesA few lines of code
A mock APIA layer in the browser that answers the app’s requestsApps written to call a serverA library and a handler per route
A seeded databaseA small database that starts from a seed scriptDemos whose logic is the point: stages, totals, permissionsA seed script, and somewhere to run it
  1. Sample files. Every list the app fetched now comes from a file in the demo, so it needs no server at all.

  2. Data in memory. For a tool the viewer changes as they go. Changes last until the page reloads, which gives you a reset for free.

  3. A mock API. For an app built around calls to a server. Mock Service Worker intercepts the app’s requests in the browser and answers them from your sample files, so the app’s own code does not change.

  4. A seeded database. For a demo where the behaviour matters: an application that moves through stages, a ledger whose totals must add up, a screen that shows different things to different roles. Seed it on every start so each viewer begins from the same place.

If a feature calls an AI model, give it recorded answers rather than a live call. Demoing an AI feature without live data or a live key covers that part.

How do you make invented data convincing?

Start from the shape of the real data, then invent every detail. A list of “Test User 1” tells a buyer nothing. Thirty believable invented customers, with the right kinds of records and a few rough edges, tell them it was made for a business like theirs.

  • Start from the schema, not the rows. The tables, fields, types and allowed values tell you the shape without showing you anyone’s data. If the real data model is complicated, the demo’s should be too. Patrik’s piece on modelling complicated deal structures is a good picture of how much variety a real model has to hold.

  • Their kind of records. A lender has applications, documents and repayment schedules. A clinic has appointments, referrals and recalls. Use the trade’s own words for things.

  • Realistic sizes and distributions. A few dozen records feels real; five feels empty. Most amounts should be ordinary, with a few large ones, the way real books look.

  • The awkward cases. A joint application, a missed payment, a customer with two accounts, a record half filled in. These are where a buyer checks whether you understand their world, and where real software breaks.

  • Figures that agree with each other. Balances that equal their transactions, totals that add up, dates in the right order. A buyer who spots a total that does not add up stops trusting everything else on the screen.

  • Dates relative to today. Generate them from the current date, so “overdue” stays overdue and the demo does not age.

  • Names that are clearly made up. Avoid anything that might belong to a real person or company: real company registration numbers, real sort codes, real addresses. For email addresses, use the domains reserved for examples, such as example.com, which RFC 2606 sets aside for exactly this.

  • A client’s branding only with their permission, and only in a demo sent privately to them.

Keep the demo data in step with the real schema as it changes. A demo built on last year’s shape will drift quietly until a screen breaks in front of a buyer. Patrik’s article on changing data without breaking everything else treats the shape of data as an agreement between systems, and demo data is one more system that depends on it.

Can an AI agent write it?

Yes, and it is good at it, provided it works from the schema and never from the real data. Give the agent the table definitions, the allowed values and a description of the business, and ask for invented records. Do not give it a sample of production “for reference”; that puts real records into a prompt and into a third party’s hands.

Dylan describes a sensible boundary in letting AI into your systems without leaking secrets: where an agent can query a database, it connects with read-only access to test data on the engineer’s own machine. The same goes here. The agent should have no route to production at all.

For sample files, something like:

Read the schema in db/schema.sql. Write seed data for a demo of this app in demo-data/, as JSON files, one per table. Invent every name, company, address and figure: a small UK lender with about forty applications across all stages, including a joint application, one with a missed payment and one half completed. Use example.com for every email address. Balances must equal the sum of their transactions. Generate dates relative to today. Do not read or connect to any database.

Then read what it wrote. Agents are fluent at plausible names, and occasionally a plausible name is a real one.

How do you check nothing real is left?

Search for what should not be there, and ask what the demo can reach. Do it before the first person sees it, and again whenever the demo changes.

  1. Search for real names. Your client’s, your own customers’, any email address that is not on a reserved domain, any long number shaped like an account or card number.

  2. Ask what it calls. List every outside address the demo calls when it runs; the right answer is none. Check that by searching the code, not only by asking the agent.

  3. Scan for secrets. Run a secret scanner over the demo and its history before anything is shared.

  4. Open it signed out. A private window, signed out of everything, shows what a viewer sees.

  5. Have someone else check. The person who made the data is the worst placed to spot what slipped in.

Is your AI-built app safe to put in front of a client? has the full set of checks before you send it.

Who needs to know?

In a regulated business, your data protection lead or compliance team, before the demo is shown outside. Tell them it is invented, how it was made, and that the demo cannot reach real systems. Write that down in a short note kept with the demo, so the answer is there when an auditor, a client’s security team or the next engineer asks. Patrik’s case for writing down why, not just what applies to demo data as much as to code.

If a buyer asks to see the product on their own data, that is a pilot, not a demo, and it needs the data protection work of a real product. Prototype, proof of concept, pilot or MVP sets out the difference.

Sources

  • Information Commissioner’s Office, Pseudonymisation: pseudonymised data is personal data in the hands of someone who holds the additional information.

  • Information Commissioner’s Office, Principle (b): Purpose limitation: personal information may be reused for a new purpose only if it is compatible with the original one.

  • Mock Service Worker, mswjs.io: intercepts requests in the browser using the Service Worker API.

  • IETF, RFC 2606: Reserved Top Level DNS Names: reserves example.com, example.net and example.org for use as examples.

All articles

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.