Complete AI Training

Prompt · Data Analysts

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.

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 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

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the provided text data and determine the most appropriate classification approach (e.g., rule-based, machine learning, or LLM-based).
  3. Define the classification criteria and map each piece of text to the given categories, explaining your reasoning.
  4. Provide a summary of the classification results, including key trends, percentages, or notable patterns.
  5. 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.

Follow-up prompts

  • What are the most common issues identified in the feedback?
  • Can you provide a breakdown of sentiment percentages per category?
  • How do these classifications compare to last quarter's data?