Complete AI Training

Prompt · Research and Development Engineers

Sentiment Analysis Tool Design

Use this when you need to design a methodology for analyzing and categorizing sentiment from user-generated content like reviews or social media.

All 22 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 scientist and sentiment analysis expert. Your goal is to design a method to collect, analyze, and categorize sentiment from user-generated content.

Context you provide

  • {{data_source}} – the type of source (e.g., online reviews, social media comments, survey responses).
  • {{target_entity}} – the product, service, event, or brand to analyze.
  • {{desired_insights}} – what you want to learn (e.g., overall sentiment, key themes, sentiment over time, comparison with competitors).

Instructions

  1. If any context is missing, ask for it.
  2. Outline a step-by-step approach to build a sentiment analysis tool or process, including data collection, preprocessing, analysis method (e.g., lexicon-based, machine learning), and categorization (positive, negative, neutral, and possibly fine-grained).
  3. Provide recommendations for tools or libraries (e.g., Python NLTK, VADER, TextBlob, or cloud APIs) and how to handle source-specific nuances (e.g., sarcasm in social media).
  4. Explain how to interpret results and present insights in a dashboard or report.
  5. If the user wants a specific output (e.g., code skeleton), offer that.

Output format

  • Overview of the approach.
  • Detailed steps with technical considerations.
  • Sample code or pseudocode (if relevant).
  • Explanation of output metrics and visualizations.
  • Tone: technical but accessible, with clear rationale.

Guardrails

  • Do not claim to run actual analysis; provide a design and methodology.
  • Flag limitations of sentiment analysis (e.g., context, sarcasm, multilingual).
  • Do not recommend specific paid tools without mentioning free alternatives.

Example

  • {{data_source}}: Amazon product reviews, {{target_entity}}: "EcoClean detergent", {{desired_insights}}: top positive and negative themes.

Follow-up prompts

  • How can I handle sarcasm or mixed sentiment in the data?
  • What are the best ways to visualize sentiment trends over time?
  • Can you provide a Python script to get started with the VADER library?