Key takeaways
- Start from the decision, not the comments. Know what the analysis must help someone decide before you build a single theme.
- Build a written codebook. Each theme needs a definition, what to include and exclude, and a real example. Without it, theme counts drift between analysts and between quarters.
- Allow several themes per comment. "Late and nobody answered my chat" is two problems, and forcing one label hides how issues cluster.
- Check reliability. Double-code a sample and calculate agreement. This applies to AI coding as much as to people.
- Connect themes to scores and customer data. The value is in knowing which themes pull satisfaction down and which customers raise them, not in a list of topics.
Open-ended survey responses are where customers explain their scores. They are also where most survey programmes stop: the ratings go into a dashboard, and the comments go into a spreadsheet that someone skims before a meeting. Analysing them properly means turning free text into a consistent set of themes that can be counted, tracked over time and linked to the scores and customer data sitting next to them.
This guide walks through the full process, from preparing the data to reporting findings, with a worked example from a post-purchase survey. It covers manual coding, AI-assisted coding and how to check that either one is reliable.
In this article
- Start with the decision the analysis must support
- Prepare and clean the comments
- Build a codebook
- Code the responses: people, AI or both
- Check coding reliability
- Add sentiment and severity separately
- Connect themes to scores and customer data
- Report findings people can act on
- Frequently asked questions
Start with the decision the analysis must support
The same 2,000 comments can be analysed in very different ways depending on who will use the results. A product team deciding what to build next needs themes at the level of features. An operations lead trying to reduce delivery complaints needs themes at the level of failure points. A leadership team asking why NPS fell needs themes that can be compared with last quarter.
Write down three things before you start: the decision the analysis supports, the people who will act on it, and the data you will join to each comment. At minimum that should be the score given in the same survey, the date, and a customer or order ID that links to segment, tenure and purchase history. Comments without that context can tell you what customers said, but not which customers said it or what it cost.
Prepare and clean the comments
- Remove non-answers. "N/A", "nothing", "no comment", single characters and keyboard mashing. Keep a count of how many you removed.
- Remove duplicates from customers who submitted twice, and flag responses that look automated.
- Redact personal data such as names, phone numbers, email addresses and account or card numbers, especially before sending text to any external tool. Data protection laws, including the GDPR and Nigeria's Data Protection Act 2023, apply to survey text as much as to any other customer data.
- Handle languages and slang. Decide whether to translate, code in the original language, or build language-specific themes. In markets where customers mix English with Pidgin or local languages, check a sample by hand before trusting any automated step.
- Keep the raw file untouched. Work on a copy so you can always go back to what customers actually wrote.
Build a codebook before you code at scale
A codebook is the written list of themes with rules for applying them. It is what makes the analysis repeatable, so that the same comment gets the same theme whether it is coded by you, a colleague or a model, this quarter or next.
Build it in two passes. First, read a random sample of 150 to 300 comments with no preset categories and note every distinct issue or topic. This inductive pass, the approach described in Braun and Clarke's widely used guide to thematic analysis, stops you from forcing comments into categories you expected to find. Second, group those notes into themes, then write a definition, inclusion and exclusion rules and one real example for each.
| Theme | Definition | Excludes | Example comment |
|---|---|---|---|
| Delivery timing | When the order arrived compared with the promised date | Rider or courier behaviour (separate theme) | "Arrived two days after the date I was given" |
| Packaging and damage | Condition of items or packaging on arrival | Wrong item sent (order accuracy) | "The jar was cracked inside the box" |
| Returns and refunds | Sending items back or getting money back | Pre-purchase questions about the policy | "Still waiting for my refund after three weeks" |
| Customer support | Contact with support staff, chat or phone | Help-centre articles (website theme) | "Nobody answered the chat for an hour" |
| Checkout and payment | Placing and paying for the order | Refunds (returns theme) | "My card was charged twice" |
| Price and value | Prices, fees and perceived value for money | Promo codes failing at checkout (checkout theme) | "The delivery fee is more than the item" |
| Product quality | The product itself, positive or negative | Damage in transit (packaging theme) | "The shoes wore out within a month" |
Two design choices matter. Make themes multi-label, so one comment can carry several. And keep a hierarchy where it helps: a parent theme such as "Delivery" with children such as timing, rider behaviour and tracking lets you report at either level. Add an "Other" code, and review it every round; when "Other" grows past roughly 5 to 10% of comments, a new theme is hiding in it.
Code the responses: by hand, with AI, or both
Manual coding
AI-assisted coding with human review
A workable AI-assisted process looks like this. Give the model the codebook, with definitions, exclusions and examples, and ask it to return every applicable theme for each comment in a fixed format. Run it first on a sample that people have already coded, compare the results, and tighten any definition the model misreads. Only then code the full set. Finally, review a random sample of the output plus everything the model flagged as uncertain or coded as "Other".
SurveyMonkey's guidance on AI theming makes a similar point: treat AI groupings as a strong first draft, read the underlying comments, and look specifically for small groups of customers whose concerns were absorbed into a larger theme. Those small groups are often where the early warning sits.
Check coding reliability with a simple agreement test
Have two coders, or a person and the model, code the same random sample of 150 to 200 comments independently. For each theme, compare their decisions. Raw percentage agreement overstates reliability for rare themes, because two coders who both mark "no" most of the time will agree often by chance. Cohen's kappa corrects for that.
Worked example for the "Packaging and damage" theme on 200 double-coded comments: both coders applied it to 38, coder A only to 7, coder B only to 5, and neither to 150. Observed agreement is 94%. Agreement expected by chance, given how often each coder used the theme, is 65.7%. Kappa is (0.94 − 0.657) ÷ (1 − 0.657) = 0.83.
Landis and Koch's commonly used benchmarks describe values above 0.8 as almost perfect agreement and 0.6 to 0.8 as substantial. In practice, aim for at least 0.7 on themes that will drive decisions. Where a theme falls short, the definition is usually the problem: rewrite it, add an example of a borderline case, and re-test.
Add sentiment and severity separately from theme
A theme says what a comment is about. Sentiment says whether it is positive or negative. Keep them as separate fields, because the same theme can carry either: "fast delivery, as always" and "delivery was a disaster" are both about delivery. Automated sentiment works reasonably on clear statements and struggles with sarcasm, mixed comments and local expressions, so check it on your own data before relying on it.
For complaint-heavy feedback, add a severity flag for comments that describe money lost, safety issues, legal threats or an intention to leave. These should be routed to a person quickly, whatever the analysis cycle, and they are often the first sign of issues covered in customer complaint analysis.
Connect themes to scores and customer data
This step is where open-ended analysis becomes business analysis, and it is the step most often skipped. Once each comment carries theme flags, it can be joined to the score in the same response and to everything you know about the customer.
The worked example is a post-purchase survey with 6,100 responses, of which 2,400 included a comment. Customers who left comments gave an average satisfaction score of 3.79 out of 5. For each theme, compare the average score of customers who mentioned it with those who did not:
| Theme | Share of comments | Avg CSAT, mentioned | Avg CSAT, did not mention | Gap |
|---|---|---|---|---|
| Delivery timing | 31% | 3.1 | 4.1 | −1.0 |
| Product quality | 22% | 4.3 | 3.6 | +0.7 |
| Customer support | 14% | 3.0 | 3.9 | −0.9 |
| Price and value | 12% | 3.6 | 3.8 | −0.2 |
| Returns and refunds | 10% | 2.7 | 3.9 | −1.2 |
| Packaging and damage | 9% | 2.4 | 3.9 | −1.5 |
| Checkout and payment | 8% | 3.3 | 3.8 | −0.5 |
Packaging and returns are mentioned less often, but cost the most satisfaction per mention
How much lower CSAT is among customers who mention each negative theme, points on a 1 to 5 scale. Illustrative data.
Read the two dimensions together. Delivery timing is the largest negative theme by volume, so it drags the average down most overall. Packaging and damage is mentioned by fewer customers but hurts each of them more, which usually signals a specific, fixable failure such as one product category or one warehouse. Price is mentioned often but barely moves the score, which is useful to know before anyone proposes discounts.
From here you can go further: compare theme shares by segment and region, track them across survey waves, and link them to repeat purchase or churn. That last link is how you find out whether a theme is an irritation customers tolerate or a reason they leave. The same theme flags also feed NPS root cause analysis and can be added as variables in key driver analysis.
Report findings people can act on
Word clouds and long lists of quotes rarely lead to action. A useful report gives each decision-maker a short, ranked view with enough evidence to trust it:
- Counts and percentages together, such as "220 comments (9%)", so a large percentage from a tiny base is visible for what it is.
- The score gap or impact for each theme, not just its volume.
- Change since the last wave, with the same codebook so the comparison is fair.
- Two or three representative quotes per theme, chosen to show the typical case rather than the most dramatic one.
- A named owner and a next step for the top themes.
If this needs to happen every month or quarter, it belongs in a recurring CSAT and NPS dashboard rather than a one-off deck. The same method applies to app store reviews and support tickets; the Uber Eats review analysis and Moniepoint review analysis case studies show it applied to tens of thousands of public reviews.
Common mistakes
- Reading only negative comments. Positive comments show what to protect and are often more specific than people expect.
- Using predefined categories only. You will find what you looked for and miss what is new.
- One label per comment. This undercounts every secondary issue.
- Percentages from small subgroups. "50% of enterprise customers mentioned pricing" means little if that is 4 of 8 comments.
- Changing theme definitions between waves and then reporting trends.
- Treating AI output as final without checking a sample against the original comments.
Frequently asked questions
How many open-ended responses can be analysed by hand?
One experienced analyst can code a few hundred short comments carefully in a day. Beyond roughly 500 to 1,000 comments per wave, or when the analysis repeats every month, AI-assisted coding with human review is usually more practical and more consistent.
Can ChatGPT or other AI tools analyse open-ended survey responses?
Yes, large language models can apply a codebook to thousands of comments quickly. Results are much better when you supply theme definitions and examples rather than asking for open-ended summaries, and they need to be checked against a human-coded sample. Remove personal data first and check the tool's data handling terms.
What is the difference between coding and sentiment analysis?
Coding assigns topics or themes to a comment, such as delivery or refunds. Sentiment analysis classifies whether the comment is positive, negative or neutral. You need both, kept as separate fields, because the same theme can appear in praise and in complaints.
How do I combine open-ended feedback with survey scores?
Code each comment into theme flags, then join them to the score given in the same response and to customer data via an ID. Compare average scores between customers who did and did not mention each theme, and track theme shares by segment and over time.
Should I sample comments or analyse all of them?
For building the codebook, a random sample of 150 to 300 is enough. For reporting, code all of them if you can, because small but serious themes are easy to miss in a sample and segment-level counts need the full set.
What is a good Cohen's kappa for survey coding?
Values above 0.8 are usually described as almost perfect agreement and 0.6 to 0.8 as substantial. For themes that will drive decisions, aim for at least 0.7, and revise the theme definition when agreement falls below that.
Customers who take the time to write a comment are telling you why they scored you the way they did. Turning those comments into consistent, tested themes connected to scores and customer data is what lets a business act on them rather than just read them.
Sources
- Braun, V. and Clarke, V. (2006), "Using thematic analysis in psychology." Qualitative Research in Psychology, 3(2), 77–101.
- Cohen, J. (1960), "A coefficient of agreement for nominal scales." Educational and Psychological Measurement, 20(1), 37–46.
- Landis, J. R. and Koch, G. G. (1977), "The measurement of observer agreement for categorical data." Biometrics, 33(1), 159–174.
- SurveyMonkey, "How AI open-ended response analysis turns a pile of comments into themes you can defend." surveymonkey.com
- Dovetail, "How to code and analyze open-ended questions." Coding frames and inter-rater reliability. dovetail.com
The kappa calculation and the theme and CSAT figures are an illustrative example built for this article, not client data.
Sitting on thousands of comments nobody has properly read?
I code survey comments, reviews and support text into consistent themes, test the coding, and connect each theme to scores and customer outcomes so your team knows what to fix.