Topic 1 of 5 · 4 min read
Diagnosing what went wrong
Goal: Name the specific failure in a bad AI answer and point to the part of the prompt that caused it.
Before you change a prompt, name what is wrong with the answer, then fix the part of the prompt that caused it. "It is bad" is not a diagnosis. "It is too long" is.
Check yourself · 1 of 3
You asked an assistant for a customer apology and got a clear, correct email that is written like a legal letter. What is the failure?
Why it matters
Most people react to a poor answer by rewriting the whole prompt, or by adding "please be better". That is guessing. If you do not know what failed, you cannot know what to change, and you may break the parts that worked.
How to do it
Read the answer and ask which of these five failures it shows. Each one points to a part of the prompt.
- Wrong task. The model did something else: it summarised when you wanted a rewrite. Fix the task sentence. Use one clear action verb.
- Missing context. The answer is generic or aimed at the wrong reader. Fix the context: who it is for, why you need it, what you already know.
- Wrong format. The content is fine, but it is a wall of text when you wanted a table. Fix the format instruction.
- Wrong tone or length. Too formal, too long, too cheerful. Fix the constraints: say the tone, the word limit, what to leave out.
- Wrong facts. Names, numbers or quotes are invented or old. This is not a wording problem. The model guesses when it lacks the facts. Paste the real facts into the prompt, or check the answer against a source.
Write one sentence: "The answer failed because ___, so I will change ___." If you cannot fill the first blank, read the answer again.
Before and after
Before: The email you wrote is bad. Try again.
The model has no idea what "bad" means. It will change random things.
After: The email is too long and too formal. Rewrite it in under 100 words, in a friendly tone, and keep the new delivery date.
The failure is named (length and tone), and the fix is aimed at the constraints.
What goes wrong
- People blame the model when the prompt never said the thing. If the reader, the length or the format was never in the prompt, the model had to guess.
- People treat a wrong fact as a style problem and keep rewording. Assistants such as ChatGPT, Claude, Gemini and Copilot can state invented details in a confident voice. Rewording does not add the missing facts.
- People list five complaints at once. Pick the biggest failure first. Smaller ones often disappear when it is fixed.
Examples
Reading a bad answer
You asked for "a summary of the meeting notes" and got a long list of every topic. The failure is length and focus, not facts. The fix is a constraint: "Summarise in 3 bullets. Only decisions and who owns them."
The one-sentence diagnosis
Write: "The answer failed because it is aimed at experts, so I will add the context that the reader is a new customer." If you can write that sentence, you know your next edit.
Key points
- Name the failure in plain words before you touch the prompt.
- Five common failures are wrong task, missing context, wrong format, wrong tone or length, and wrong facts.
- Each failure points to one part of the prompt that you can fix.
- Wrong facts are fixed by supplying or checking facts, not by rewording.
- Fix the biggest failure first; small ones often disappear.
Common mistakes
- Saying "try again" or "make it better" without naming the problem.
- Rewriting the whole prompt when only one part failed.
- Treating invented facts as a wording problem.
- Listing every complaint at once instead of the biggest one.
Check yourself · 2 of 3
A chatbot lists a study with an author and a year that you cannot find anywhere. What is the best next move?
Check yourself · 3 of 3
Which message to the assistant names a failure well enough to fix it?
Practice items, not counted towards your mastery.
Start here
- Prompting best practices (Claude docs) (opens in a new tab)DocsFree
Anthropic's own guide to being clear and specific, and to adjusting a prompt when output misses the mark.
- Prompt engineering best practices for ChatGPT (opens in a new tab)ArticleFree
OpenAI's short help-centre page on being specific, giving context and refining a prompt step by step.
- Develop test cases (Claude docs) (opens in a new tab)DocsFree
Shows how to build test inputs and success criteria so you compare prompts on evidence.