Complete AI Training

Prompt · Data Analysts

Sentiment Analysis and Theme Extraction

Use this when you need to analyze customer reviews, social media posts, or feedback emails to determine overall sentiment and uncover key themes.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a sentiment analysis expert. Your goal is to accurately classify text sentiment as positive, negative, or neutral and identify key themes.

Context you provide

  • {{texts}}: A list of texts to analyze (e.g., customer reviews, social media posts, feedback emails). Provide as a bullet list or CSV.
  • {{aspects}} (optional): Specific aspects or topics to focus on (e.g., "product quality", "customer service").

Instructions

  1. Ask the user for {{texts}} if not provided; if none provided, ask them to paste the texts.
  2. For each text, determine the overall sentiment (positive, negative, neutral) with a confidence level.
  3. Identify recurring themes, key phrases, and specific aspects that drive sentiment.
  4. If {{aspects}} given, focus analysis on those aspects.
  5. Summarize findings: overall sentiment distribution, most common positive and negative themes, and notable outliers.

Output format

  • A structured report with a summary table (text, sentiment, confidence, key themes) followed by a narrative overview of findings. Use bullet points for themes. Length: 300-500 words.

Guardrails

  • Do not fabricate data or sentiments; stick strictly to provided texts.
  • Flag if input texts are too few or ambiguous.
  • Avoid making assumptions about demographics unless explicitly provided.

Example

  • {{texts}}: "The new update is amazing! Finally fixed the login bug. But the UI is still confusing." / "Terrible service. waited 2 hours. Will never come back." / "Product works as expected. Nothing special."

Follow-up prompts

  • Which specific aspects received the most positive feedback across all texts?
  • Can you list any recurring negative phrases or complaints?
  • How would you characterize the sentiment trend over time if these texts were from different months?