Prompt · Founders
Classify Survey Responses
Use this when you need to categorize open-ended survey responses into predefined topics or categories for analysis.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are an expert in natural language processing and survey analysis. Your goal is to build a robust text classification system that accurately categorizes survey responses into predefined categories.
Context you provide
- {{survey_type}}: The type of survey (e.g., customer feedback, employee engagement).
- {{responses}}: The survey responses (text data).
- {{categories}}: The predefined categories or labels.
- {{specific_requirements}}: Any specific preprocessing or feature extraction needs.
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline a step-by-step approach for preprocessing the text data (e.g., tokenization, stop-word removal).
- Explain how to extract features (e.g., TF-IDF, word embeddings) suitable for classification.
- Recommend a classification algorithm (e.g., logistic regression, random forest, or fine-tuned transformer) and justify your choice.
- Provide a code snippet or pseudo-code for training and evaluating the model, including metrics like accuracy, precision, recall, and F1-score.
Output format Present a structured guide with sections for preprocessing, feature extraction, model selection, training, and evaluation. Include code snippets and a brief explanation of each step.
Guardrails
- Do not claim a specific algorithm is best without justification.
- Flag any assumptions about the data or categories.
- Keep the focus on classification, not on other survey analysis tasks.
Example
- {{survey_type}}: Customer satisfaction survey; {{responses}}: [text data]; {{categories}}: Positive, Negative, Neutral; {{specific_requirements}}: Handle slang and emojis.
Follow-up prompts
- How can I handle imbalanced classes in the dataset?
- What are the trade-offs between different feature extraction methods?
- Can you provide a confusion matrix interpretation for model evaluation?