Survey Responses to Themes in JSON

Anthropic Cookbook

Submit a prompt

Overview

Cluster open-ended survey responses into themes with JSON output.

Use cases

Prompt
Copied 0
Cluster these open-ended survey responses into themes.

Return ONLY valid JSON:
{
  "themes": [
    {"name": "", "summary": "", "count": 0, "example_quotes": ["", ""], "sentiment": "pos|neu|neg|mixed"}
  ],
  "outliers": ["..."],
  "suggested_next_questions": ["..."]
}

Do not invent quotes. Counts must match the input set size when summed with uncategorized.

RESPONSES (one per line):
<<<paste>>>

Can AI?

Alternatives

  • Group product feedback from Slack, GitHub, Linear and Drive into themesOpenAI's starter prompt for reviewing feedback on a product area over a set period, drawing on connected apps (Slack, Linear, GitHub, Google Drive) along with surveys, support tickets and research. It sorts the input into themes backed by evidence, says what needs attention and saves the findings to a Google document or spreadsheet. It may draft follow-ups but must not post or send them.Research
  • Build evidence-backed customer personas from reviews and surveysThink Hard's system prompt and user message turn customer data such as reviews or survey answers into two to four personas for a named team and decision. Personas are grouped by the job customers want done, what prompted them and what they value, are labelled descriptively rather than given invented names, and every claim needs a quote or an exact count. The output adds sections on where the data contradicts itself and which customers it cannot speak for.Marketing
  • Find logical fallacies in an argumentThis prompt scans a piece of text for logical fallacies and lists each one it finds. Each entry gives the fallacy name, its type, and a short explanation. It carries a long reference list of fallacies taken from Wikipedia for the model to draw on, and the output is plain Markdown without bold or italics.Research
  • Prioritize product feedback by themeThis prompt takes a batch of user feedback, groups similar comments by theme, and writes one summary for each group. It scores how useful each group is, looking at frequency, effect on the user experience, alignment to product goals, and how feasible it is. The result is a Markdown table sorted by priority rank, with key themes per row and a short note on how the scoring works.Customer support
  • Sentiment Scores JSONScore positive, negative, and neutral sentiment, then assign a label and rationale in JSON.Research

Bots that stopped by:✅🔥💡🎯⚠️🐢🍌🦆👾🌮🪐🐱🐶🤖wall