How to Code Qualitative Interview Data with ChatGPT

Turn 30 pages of evaluation interview transcripts into validated themes in 2 hours instead of 3 weeks. A 4-step workflow that pairs AI pattern recognition with the human analytical judgment that makes the findings defensible.

Part of the Analysis guidesBack to AI for M&E

One-page summary

The key point, the steps and the ready prompt from this guide on one sheet.

How do you code interview transcripts with ChatGPT?

Four steps, in this order. Each one builds human judgment into the workflow. Skip validation and your findings lose credibility with donors.

1

Prepare

Anonymize all PII, standardize speaker labels, and clean formatting. Replace names with codes (P1, P2), remove locations, and strip filler words. This protects participants and gives AI clean input.

2

Code

Choose inductive (AI discovers themes) or deductive (AI applies your framework). Paste 2-3 pages at a time with your research questions. AI returns labeled themes with supporting quotes.

3

Validate

Have a second analyst independently code 20-30% of transcripts using the same framework. Calculate inter-rater agreement: 80% or higher means your codes are reliable. Below 80%, refine and retest.

4

Synthesize

Consolidate codes into 5-7 actionable themes with frequency counts, representative quotes, and cross-case patterns. Document AI use transparently in your methodology section.

Is AI coding as credible as manual coding?

Side-by-side, showing what structured AI-assisted coding delivers against a manual-only approach, and where the human step is not optional.

Initial Theme Discovery

Vague prompt

One analyst reads 30 pages over 5 days, highlighting and writing margin notes. Returns 14 overlapping codes with inconsistent definitions. Second review needed to consolidate before analysis can begin.

Initial Theme Discovery

4Cs prompt

AI identifies 8 candidate themes with definitions and supporting quotes in 90 minutes. Analyst reviews, merges 2 overlapping codes, adds 1 missed theme. Final 7-code framework ready in under 2 hours.

Coding Consistency

Vague prompt

"Supply chain issues" coded as "logistics" in interview 3 but "resource constraints" in interview 9. Inconsistency discovered during write-up, forcing a complete recode of all 15 transcripts.

Coding Consistency

4Cs prompt

AI applies identical code definitions to every passage. "Supply chain issues" coded as SUPPLY-CHAIN-BARRIERS across all 12 interviews. Human reviewer confirms consistency in a single pass.

Cross-Case Analysis

Vague prompt

Analyst manually tracks which themes appear in which interviews using a spreadsheet. Two days to build a frequency matrix. Misses a co-occurrence pattern between staffing and quality themes.

Cross-Case Analysis

4Cs prompt

AI generates a theme-by-interview frequency table and flags co-occurrence patterns automatically. Analyst spots that staffing and quality issues appear together in 9 of 12 interviews in 20 minutes.

What makes AI-coded findings defensible?

Anonymize before uploading anything

Replace all names with codes (P1, P2), remove phone numbers, and swap specific locations for regions. No shortcut is worth a data breach.

Feed transcripts in 2-3 page chunks

AI produces more accurate codes on smaller passages than on a 30-page dump. Include your research questions with each chunk so the AI maintains analytical focus.

Always validate with a second coder

Have a colleague independently code 20-30% of transcripts. Calculate agreement as matching codes divided by total codes. Below 80% means your code definitions need tightening.

Consolidate to 5-7 codes maximum

AI often returns 10-15 initial themes. Ask it to identify overlaps and merge redundant codes. Six well-defined codes produce clearer findings than fifteen fuzzy ones.

Document AI use in your methodology

State the tool used, validation steps taken, and inter-rater agreement achieved. Transparency builds credibility with donors and reviewers.

Copy-Paste Coding Prompt

Use this template for inductive or deductive coding. Fill in the bracketed fields and paste into ChatGPT, Claude, or Gemini.

AI Qualitative Coding Prompt

I have [NUMBER OF PAGES, e.g., '15'] pages of interview transcripts from an evaluation.

Research questions guiding this analysis:
1. [RESEARCH QUESTION 1, e.g., 'How has the program changed household water practices?']
2. [RESEARCH QUESTION 2, e.g., 'What barriers prevent sustained behavior change?']
3. [RESEARCH QUESTION 3, e.g., 'How do community leaders influence adoption?']

Coding approach: [CODING APPROACH: inductive (discover themes from data) / deductive (apply predefined codes)]

Please analyze the transcript below and:
1. Identify [NUMBER OF THEMES, e.g., '5-8'] themes with descriptive labels
2. For each theme, provide: definition (2-3 sentences), 3 representative quotes, frequency estimate
3. Flag contradictions or minority perspectives worth noting
4. Highlight findings most relevant to our research questions

Format as a structured outline with clear headings I can use as a coding framework.

[PASTE YOUR TRANSCRIPT HERE, e.g., 'paste 2-3 pages of anonymized transcript']

Put It Into Practice

Try AI-assisted qualitative coding with our free M&E tools, designed for evaluators who need rigorous analysis on tight timelines.