Prompt lesson · 17 prompts
Text Mining and NLP Techniques prompts for Data Analysts
17 ready-to-use prompts from our AI for Data Analysts course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Analyze Text Sentiment by Aspect
Use this when you need to extract and quantify sentiment towards a specific entity or its aspects from customer feedback, reviews, or social media text.
Role You are a sentiment analysis expert specializing in natural language processing and customer feedback interpretation. Your goal is to analyze a given text to extract nuanced sentiment towards specific entities or aspects.
Context you provide
- {{text}} (e.g., a set of customer reviews, social media comments, survey responses)
- {{entity}} (e.g., company name, product name, brand)
- {{aspects to analyze}} (optional: e.g., customer service, product quality, response time, price)
Instructions
- If the text or entity is missing, ask for them before starting.
- Analyze the sentiment expressed towards the entity overall, and then break down by each provided aspect. For each aspect, determine if the sentiment is positive, negative, neutral, or mixed.
- Provide supporting excerpts from the text that illustrate the sentiment, and quantify the proportion of mentions (e.g., "70% of reviews mention positive customer service").
- Identify any trends or patterns, such as common praise or criticism, and note any emotional intensity (e.g., strong frustration, enthusiasm).
- Summarize actionable insights for the user (e.g., "Response time is a major pain point; consider investing in faster support channels").
Output format A structured report with sections: Overall Sentiment, Aspect-Level Sentiment (table with aspect, sentiment, key excerpts, proportion), Trends and Patterns, Actionable Insights. Use bullet points and percentages. Tone: objective and data-driven.
Guardrails
- Do not invent qualitative claims without evidence from the text.
- Flag if the text is too short or ambiguous for reliable analysis.
- Stay within sentiment analysis, not market research or recommendations beyond the text.
Example text: "The new smartphone has a great camera but the battery life is terrible. Customer support was helpful but slow.", entity: "Smartphone X", aspects: "camera, battery life, customer support".
Open this prompt Analysis · Intermediate
Classify Text into Categories
Use this when you need to automatically categorize text data such as feedback, articles, or support tickets to extract insights or improve workflows.
Role You are an expert in natural language processing and text classification. Your goal is to design a classification system that accurately categorizes text data and provides actionable insights.
Context you provide
- {{text_data}}: The text you want to classify (e.g., customer reviews, news articles, support tickets).
- {{categories}}: The predefined categories or labels (e.g., positive/negative/neutral, politics/sports/entertainment/technology).
- {{use_case}}: The intended application (e.g., sentiment analysis, topic summarization, ticket routing).
- {{additional_context}}: Any specific requirements, such as data format, volume, or desired output detail.
Instructions
- If any required context is missing, ask for it before proceeding.
- Analyze the provided text data and determine the most appropriate classification approach (e.g., rule-based, machine learning, or LLM-based).
- Define the classification criteria and map each piece of text to the given categories, explaining your reasoning.
- Provide a summary of the classification results, including key trends, percentages, or notable patterns.
- Suggest how the classification can be applied to the stated use case (e.g., improve response times, identify common issues).
Output format
- A structured report with sections: Classification Approach, Results Summary, Key Insights, and Recommendations.
- Use tables or bullet points for clarity.
- Tone: professional and analytical.
Guardrails
- Do not invent data; only work with the text provided.
- If categories are ambiguous, state assumptions and ask for clarification.
- Stay within the scope of text classification; do not offer unrelated analysis.
Example
- {{text_data}}: "I love this product but the battery life is terrible." {{categories}}: positive, negative, neutral {{use_case}}: sentiment analysis for product feedback.
Open this prompt Analysis · Intermediate
Concise Document Summarization
Use this when you need to quickly extract key insights from lengthy documents, reports, or articles for decision‑making or sharing.
Open this prompt Analysis · Beginner
Context-Based Question Answering
Use this when you need to answer specific questions using information from a provided document, dataset, or knowledge base.
Open this prompt Research · Beginner
Dependency Parsing of Sentences
Use this when you need to analyze the grammatical structure and word relationships in a sentence.
Open this prompt Analysis · Beginner
Extract Named Entities from Text
Use this when you need to identify and classify named entities (like people, organizations, locations) in a text corpus for analysis.
Open this prompt Analysis · Advanced
Generate Textual Data Visualizations
Use this when you need to create visual representations of textual data for analysis or reporting.
Open this prompt Creating · Intermediate
Keyword Extraction from Documents
Use this when you need to extract and rank top keywords or key phrases from one or more texts.
Open this prompt Analysis · Intermediate
Resolve Ambiguous Named Entities
Use this when you need to disambiguate a named entity (e.g., a person, place, or brand) that could have multiple meanings in a given sentence.
Open this prompt Analysis · Intermediate
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.
Open this prompt Analysis · Beginner
Summarize Long Documents for Quick Insights
Use this when you need to generate concise, accurate summaries of lengthy documents such as reports, customer feedback, or academic papers.
Open this prompt Writing · Beginner
Text Clustering for Document Grouping
Use this when you need to group similar text documents (e.g., support tickets, news articles, reviews) into clusters and summarize each cluster's themes.
Open this prompt Analysis · Advanced
Text Co-reference Resolution System
Use this when you need to design a system that identifies and resolves references to the same entity across multiple texts, such as news articles or documents.
Open this prompt Coding · Advanced
Text Generation for Various Content
Use this when you need to generate coherent, contextually relevant text for product descriptions, investor emails, news articles, or similar content.
Open this prompt Writing · Beginner
Text Similarity Analysis
Use this when you need to measure the similarity between pieces of text for deduplication, clustering, or content recommendations.
Open this prompt Analysis · Intermediate
Topic Modeling Analysis
Use this when you need to discover the main themes or topics in a collection of text documents.
Open this prompt Analysis · Intermediate
Topic Modeling for Text Corpora
Use this when you need to identify key themes, topics, or categories within a large collection of text documents, such as customer reviews, news articles, or research papers.
Open this prompt Analysis · Intermediate