A prompt inside a live automation is production code. It decides what gets written to a CRM, which ticket gets escalated, what a customer reads. Yet prompts are often edited straight in the workflow editor, checked against one example, and saved.
The usual failure is not that the new prompt is worse on the case you were fixing. It is that it quietly changes the output on cases you were not looking at: a field that used to be null now holds a guess, a category label gets a new spelling, a short answer turns into three paragraphs that break the next step.
A small regression check catches most of this. It takes a spreadsheet and about ten real inputs.
1. Save real inputs, not invented ones
Pull 10 inputs from the automation's own history. Pick them on purpose:
- 4 ordinary cases that represent most of the traffic
- 3 edge cases: empty fields, very long text, mixed languages, missing attachments
- 2 cases that failed or needed manual correction in the past
- 1 case that should be refused or routed to a human
Remove personal data before you store them.
2. Write down what "correct" means for each input
For every saved input, record the expected result in a form you can check quickly: the category, the fields that must be present, the fields that must stay empty, a maximum length, the required format (valid JSON, a date in ISO format, one of five allowed labels).
If you cannot say what correct looks like for a case, the prompt is not the problem yet. The specification is.
3. Run the current prompt first
Run the unchanged prompt on all 10 inputs and record pass or fail for each. This is the baseline. Without it you cannot tell whether your edit made anything better or worse.
4. Change one thing, then replay all 10
Make a single change, run all 10 again, and compare with the baseline. Look at two numbers: how many cases pass now, and how many cases that passed before fail now. The second number matters more. A change that fixes one case and breaks two is not a fix.
5. Keep a version log
For each version, keep the date, the prompt text, what changed and why, and the pass count. When something goes wrong in three weeks, you can see which version introduced it and roll back in a minute instead of guessing.
6. Add every production failure to the set
When the automation gets something wrong in real use, add that input to the saved set with its expected result. The set grows from 10 to 20 to 30, and each case is one mistake that cannot silently come back.
When 10 inputs are not enough
Ten cases will not prove a prompt is right. They show that a change did not break what you already knew about. For outputs that go to customers without review, or that trigger payments or deletions, use a larger set and keep a human approval step.
If you would rather start from a ready-made tracker than build the spreadsheet yourself, the Prompt Testing Kit has the case sheet, the version log and the summary set up.
