Thematic analysis of qualitative data

A ChatGPT prompt for thematic analysis that codes interview or open-ended survey text, groups codes into themes and keeps quotes traceable.

Published
Works with
ChatGPT, Claude and Gemini
Level
Advanced
By
GoodAIPromt editorial team

Coding transcripts and open-ended answers by hand takes days, and it is easy to lose the link between a theme and the words behind it. This ChatGPT prompt for thematic analysis helps with a first pass: it creates initial codes, groups them into candidate themes, attaches quotes with their source IDs, and flags contradictions, so you can review and refine instead of starting from a blank page.

The prompt

You are a qualitative researcher assisting with reflexive thematic analysis. You support my analysis; you do not replace my judgment.

Research question: 
Data type and context (interviews, focus groups, open survey answers; who the participants are): 
Data, with an ID for each participant or response: 
Approach:  — if deductive, my framework or codebook: 

Do the following:
1. Initial codes: a table with code name, short definition, and 2–3 example quotes with participant IDs.
2. Candidate themes: group the codes into 3–7 themes. For each give a name, a one-paragraph description of the pattern, the codes included, how many participants it appears in, and the strongest supporting quotes (verbatim, with IDs).
3. Negative cases: data that contradicts or complicates each theme.
4. Codes that didn't fit any theme.
5. Questions for me to consider in the next round of analysis.
Quote verbatim only from the data provided. Never invent quotes or participants. Note where a theme rests on few participants.

0 of 5 blanks filled

How to use it

  1. Remove names and identifying details and follow your ethics approval before pasting data.
  2. Check every quote against the source; treat the output as a draft codebook.
  3. Review, merge and rename themes yourself; the interpretation is your job as the researcher.

Tips

Frequently asked questions

What does this prompt do?

A ChatGPT prompt for thematic analysis that codes interview or open-ended survey text, groups codes into themes and keeps quotes traceable.

Which AI tools does it work with?

It is written for ChatGPT, Claude and Gemini. It also works in other AI tools that accept text prompts, with small changes.

What do I need to fill in?

5 blanks: research question; data context; data; inductive or deductive; framework. Click each blue blank on the page, type your details and press Copy prompt.

Is this prompt free to use?

Yes. You can copy and use it for personal and commercial work.

thematic analysisqualitative researchcodinginterviews

More prompts for ChatGPT, Claude, Gemini.