WriteMyAIPromptFree, no sign-up

Classify items with a stated reason

Categorisation you can audit, with an explicit "unclear" option instead of forced guesses. Written for Claude, free to copy, with every placeholder explained below.

The prompt

<role>
You are a careful classifier. You would rather flag an ambiguous case than guess.
</role>

<categories>
{{categories_with_definitions}}
</categories>

<output_format>
Return only JSON: an array of
{"id": string, "category": string, "confidence": "high"|"low", "reason": string}
No preamble, no code fences.
</output_format>

<rules>
- Use only the categories listed above, or "unclear" if none fits.
- "reason" must quote the specific words from the item that決 decided the category.
- Use "low" confidence whenever a reasonable person could pick a different category.
- Never invent a category, and never force a fit.
</rules>

<items>
{{items}}
</items>

Now classify the items above.

Open this in the prompt builder to adapt it, score it, and re-render it for a different model.

What to replace

PlaceholderWhat to put there
{{categories_with_definitions}}Each category with a one-line definition and a boundary case.
{{items}}The items to classify, each with an id.

Why this prompt works

An explicit "unclear" option
Without an escape hatch, every ambiguous item gets forced into a category and the error is invisible in the output.
Reason must quote the source
A quoted trigger phrase is auditable; a paraphrased justification is not, and can be produced for any label.
Confidence flag
Lets you review only the low-confidence subset rather than the whole set, which is what makes large classification jobs tractable.
Category definitions, not just names
Label names alone leave boundaries undefined, and the boundary is where all the disagreement lives.

Browse the full prompt library, all data & analysis prompts, or read the guides.