How do I know if my prompt is good?
Write down what a good answer looks like before you test, then run your prompt on 25 or more realistic cases, awkward ones included, next to at least one alternative. Have the answers graded blind against that list, and trust a difference only when the score ranges don't overlap.
One real test, graded blind. Open the card for every answer and grade.
Most people judge a prompt by trying it a few times and thinking "that looks fine." That works until a real user sends something you didn't try. Here is a simple test that tells you how good a prompt actually is, in five steps, with no code.
1. Write down what "good" means before you test
List the specific things you would check in an answer. Not "is it good?", but the parts that make it good for your job. For a customer support reply, that might be:
Does it follow the policy correctly?
Does it hand off what the policy doesn't cover?
Does it answer in the first sentence?
Does it give one clear next step?
Is it the right length and format?
Is the tone right?
Score each one from 1 to 5, and write a line for what a 1, a 3 and a 5 look like. Do this before you see any answers, so you can't bend the standard to fit an answer you happen to like.
2. Test on realistic cases, including the awkward ones
One example is a demo, not a test. Collect 25 or more inputs that look like what your prompt will really get, and make sure some are hard: an angry customer, a request just outside the policy, a message with a missing detail, a vague question.
Pull them from real history if you have it, write them yourself, or have an AI draft them and then edit the list.
3. Compare against something
A score on its own tells you little. Run at least two options on the same cases: two versions of your prompt, or one prompt on two or three models. Then you can see which is better, and by how much.
4. Grade blind, with more than one grader
Grade every answer against your list without knowing which prompt or model wrote it. If you use AI to grade, use graders from more than one AI lab, and never let a model grade its own answers. Ask each grader for a short reason, so you can check the grades that look wrong.
5. Look at the range, then read the worst answers
An average hides a lot. Look at how much each option's score could move on a different set of similar cases, its likely range. When two options' ranges overlap, the gap may be noise: pick the cheaper or simpler one.
Then read the lowest-scoring answers. That is where the fixes are.
A worked example: support replies in n8n
The test at the top of this page ran one support-reply prompt on four models over the same 30 customer emails. Two jurors, Claude Sonnet 5.5 and Gemini 3.8 Flash, graded every reply blind against six points like the list in step 1.
GLM 5.3 Flash scored about 7.6 out of 10 (likely range 7.2 to 7.9), at about $0.03 per 1,000 replies.
GPT-4o mini, a common default in automation tools, came last at about 6.6 (range 6.1 to 7.0), at about $0.13 per 1,000.
Their ranges don't overlap, so that gap is real.
GLM 5.3 Flash and GPT-OSS 120B, in second place, were only about 0.4 apart, so the test called them too close to separate. In that case, let price decide.
Reading the weakest replies showed the most common problem: replies that opened with a pleasantry like "Thanks for reaching out" instead of the answer. That became the first fix to the prompt.
Common mistakes
Testing only easy inputs. The prompt looks great and fails on the first unusual message.
Writing the standard after reading answers. You end up grading toward the answer you liked.
Trusting one grader. Any single grader, human or AI, has blind spots.
Crowning a winner by a few tenths of a point. Check whether the ranges overlap first.
Testing once. Models change. Re-run the same cases when you switch models or edit the prompt.
The short version
Write down what good means, first.
Test on 25 or more realistic cases, including hard ones.
Compare at least two options on the same cases.
Grade blind, with more than one grader.
Check the ranges, then read the worst answers.
You can do all of this by hand in a spreadsheet. To get a first set of test cases quickly, use the free test case generator below.
Questions people ask
- How many test cases do I need?
- Enough to include the awkward inputs, not just the easy ones. 25 to 30 realistic cases is a practical start for one task; the example on this page used 30. If the score ranges of your top two options still overlap, add more cases before you decide.
- Can I just read a few answers myself?
- Read some, always. But a handful of answers only tells you about that handful. The cases where a prompt breaks, such as an angry customer or a request just outside your policy, rarely show up in three tries.
- Can an AI grade my prompt's answers fairly?
- It can, with care. Grade against a written list of what good means, hide which prompt or model wrote each answer, use graders from more than one AI lab, and never let a model grade its own answers. Then check a few grades against your own reading.
- What is a good score?
- There is no fixed number. A score only means something next to an alternative tested on the same cases, with the same grading guide. Compare options, not absolute scores.
- Do I need code to do this?
- No. You can do it in a spreadsheet by hand, or use a tool that writes the test cases and runs the grading for you.