A Playground test proves a flow works once, for one question. A golden prompt set proves it still works after a change: ten prompts with expected answers, run before every deployment, so a regression is caught before users see it.
Before you start
You need a working agent and ten real questions it should answer, with the expected answer for each written down. Include one question the agent should refuse, because a refusal is also an expected answer.
Write the prompts and the expected answers
Write ten prompts covering the main jobs, one edge case and one refusal. For each, write the expected answer in one line: the tool that should run, or the fact that should appear. Keep the set small: ten prompts run in minutes, and a hundred-prompt set never gets run.
Run the set and record the pass count
Run all ten prompts against the agent and record how many pass. A deployment needs all ten to pass, or a written reason for each failure. Keep the results with the date, so the next run can be compared.
Worked example: A golden set for a fictional support agent
Northwind Support is a fictional help desk. Its golden set has ten prompts. The table shows four of them.
| Prompt | Expected answer |
|---|---|
| Where is order 1042? | Quotes the delivery status from the lookup |
| What is 48 plus 36? | 84, from the Calculator |
| Book a repair for me | Refuses: no booking tool is attached |
| What are the opening hours? | Answers from the system message |
Expected result (UNTESTED): all ten prompts pass, including the refusal, and the pass count is recorded with the date. We checked the Langflow agents documentation, which uses Playground questions as its test example, but we did not run the golden set on this machine.
Limits
A golden set only tests what you wrote: a new failure mode outside the set still gets through. Add one prompt for every real failure you find, so the set grows from experience, not from guessing.
