Back to guide/Education & Learning

Sentiment Analysis

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.

zero-shot-promptingitems
Edit View
Prompt
Analyze the sentiment of each item below. For each one, provide:
- Sentiment: Positive, Negative, or Mixed
- Confidence: High, Medium, or Low
- Key phrases that drive the sentiment

Items to analyze:
{{items}}

Analysis:

Variables to customize

{{items}}

Why this prompt works

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.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.