Technical documentation from existing data: an automation example
The data for technical documentation usually sits in the ERP (stock and orders) and the DMS (document storage) already. This example shows how a program written by AI puts it to work: it fills in templates, compares lists and marks contradictions. Locally in the browser, with no upload.
How the example program marks the item list: red for a contradiction with the existing list, where the old value stays and a comment explains it; blue for a new value; yellow for a missing detail. Below, a check report sums up the findings. Diagram with made-up data of a fictitious company, drawn with Claude. The principle: inputs, program, result. Diagram drawn with Claude.
Result
- no upload Everything runs locally in the browser, the data stays in-house
- no AI at runtime AI writes the program, the program works by fixed rules
- one file Starts with a double-click, no installation, no server
In the example, a program compares the item list of a made-up company with an ERP export. It adopts new values, keeps the old value where the two contradict and explains the difference, marks missing details and sums everything up in a check report. Regulatory fields that appear in no source stay open. The same principle solves other tasks too, such as creating declarations of conformity per risk class or sorting the references of a file into the right chapters.
Starting point
The data is there. It just isn’t used enough.
I’ve worked at several medical device companies, in development, project management and regulatory affairs. Almost everywhere, the picture is the same. The data sits in the ERP (stock and orders), the DMS (document storage) and Excel lists, sometimes well maintained, sometimes less so. Still, values are copied into templates by hand, references are looked up one document at a time and lists are compared line by line. That takes time, and mistakes easily go unnoticed. Perhaps you know this from your own company. This example shows what a program can look like that takes existing data to where it’s needed.
What was built
No server is needed: the example program is a single HTML file and starts with a double-click in the browser.
What programs like this can take on
- Create: fill in and compare item lists from ERP exports, create declarations of conformity per risk class, prepare justifications for changes and labelling, pre-fill summaries of the technical documentation.
- Check: compare specifications, references and validations with the file, collect and standardise document IDs.
- Decide: simple questions such as “sterile?” lead to the matching standardised symbols for the labelling.
Built for a regulated environment
- The data stays in-house. Everything runs locally and offline, with no installation and no upload.
- No AI at runtime. AI helps with building. The program follows fixed rules, and every step is traceable.
- A human decides. The program suggests and marks. It overwrites nothing silently, and templates stay as they are.
Tasks like these also come up in quality, production and administration. How to check AI programs in regulated processes is covered in the AI Compass.
AI writes the program, not the result
Where a result has to be the same every time, a program written by AI is often a better route than an AI tool in daily operation. It works by fixed rules and doesn’t depend on statistics. AI tools, on the other hand, often end up where they don’t belong. Then they burn tokens needlessly, and efficiency is lost. Which route fits where is the real question.
Program written by AI
- Same input, same result
- No tokens in daily operation
- Validation holds as long as the code stays the same
AI tool in daily operation
- Answers rest on statistics and can vary
- Every request costs tokens and time
- Validation is hard to sustain over time
How it came about
See all 4 steps
Describe what’s needed
ClaudeVS Code
I describe what the program should do in the chat, in plain language: which data goes in, which template comes out and what should be marked.
Let AI write the code, by fixed rules
ClaudeHTML/JavaScript
AI writes the code. I set the rules: a guide in the repository defines versioning, the change log and the offline principle, explicitly for AI assistants too.
Check with test data
WordExcel
The program is checked with test data, including deliberately faulty data, until the output is correct.
Version it and ship it as one file
GitBuild script
Changes go through Git and are recorded in the program’s change log. At the end, a script packs everything into a single HTML file that starts with a double-click.
Next case studyExcavation station: learning game and 3D reconstructions