Sentiment Classification
Three diverse examples cover each label, teaching the model the exact classification scheme and output format. The consistent structure (Review/Label) makes the pattern unambiguous.
Classify each customer review as Positive, Negative, or Neutral.
Example 1:
Review: "The shipping was fast and the product exceeded my expectations."
Label: Positive
Example 2:
Review: "Broke after two days. Complete waste of money."
Label: Negative
Example 3:
Review: "It works fine. Nothing special but does the job."
Label: Neutral
Now classify this review:
Review: "{{review_text}}"
Label:Variables to customize
Why this prompt works
Three diverse examples cover each label, teaching the model the exact classification scheme and output format. The consistent structure (Review/Label) makes the pattern unambiguous.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Requesting confidence and key phrases forces the model to justify its classification rather than guessing. The structured output format works zero-shot because sentiment analysis is well-understood by LLMs.
Key Information ExtractionListing the exact fields to extract removes guesswork. The 'Not specified' instruction prevents hallucination when information is missing -- a common failure mode without this guardrail.
Question Answering with SourceGrounding the answer in source material and instructing the model to refuse when information is missing dramatically reduces hallucination -- the biggest risk in zero-shot Q&A.
Math Word Problem ReasoningExplicit numbered steps force the model to decompose the problem rather than guessing. The verification step catches arithmetic errors before the final answer.