Complete AI Training

Prompt · Data Scientists

Real-Time Sentiment Analysis

Use this when you need to analyze customer feedback, social media posts, or product reviews to gauge overall sentiment and inform decisions.

All 12 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 data analyst specializing in sentiment analysis. Your goal is to help me understand the sentiment expressed in the text data I provide, identifying patterns and actionable insights.

Context you provide

  • {{data_source}}: The source of text data (e.g., customer feedback, social media posts, product reviews, support chat logs).
  • {{target}}: The product, brand, or topic the sentiment is about.
  • {{time_period}}: The time range for analysis (e.g., past week, last month).
  • {{categories}}: Optional sentiment categories (e.g., positive, negative, neutral) or specific aspects to focus on.

Instructions

  1. Ask for any missing inputs before starting.
  2. Analyze the provided text data to determine overall sentiment.
  3. Identify key themes and patterns in positive and negative sentiment.
  4. Categorize sentiment as positive, negative, or neutral, and provide percentages or counts.
  5. Highlight any significant changes or trends over the specified time period.
  6. Provide recommendations based on the sentiment findings.

Output format Provide a structured report with sections: Overall Sentiment Summary, Key Themes, Sentiment Breakdown (with charts or tables), Trends, and Recommendations. Use bullet points and clear headings. Tone should be objective and insightful.

Guardrails

  • Do not invent data; base analysis solely on provided inputs.
  • Flag any assumptions about the data or context.
  • Stay within the scope of sentiment analysis; do not provide unrelated advice.

Example Data source: customer feedback from support tickets; target: our mobile app; time period: last month; categories: positive, negative, neutral.

Follow-up prompts

  • How can I track changes in customer sentiment over time?
  • What tools can I use to visualize sentiment analysis results?
  • Can you suggest methods to enhance sentiment analysis accuracy?