Objective

Schools and testing groups want to measure skills such as collaboration and communication, which are hard to test with multiple-choice questions. One way is to record how teams talk while solving a problem and then label each message with a code from a framework, for example "asks for information" or "agrees with partner". Doing this by hand is slow, because trained people must apply the codes and their agreement has to be checked.

Large language models (LLMs, AI systems that read and write text) such as ChatGPT can apply a coding framework from written instructions, without needing a large set of already labeled examples. Earlier work found this works well for a small number of broad categories, but accuracy tends to fall as the framework gets more complex.

Human coders often cope with complex frameworks by grouping detailed codes under broad ones. This study asked whether the same trick helps an AI. It had two research questions:

  1. How closely does ChatGPT-based coding match human coding at the detailed (subcategory) level across different tasks?
  2. Does breaking the framework into layers, broad category first, improve ChatGPT-based coding?

Methods

This was a computational comparison of AI coding against human coding. It can show how closely the AI matches humans on these data, but not whether either set of codes is the "right" answer.

The data

The chats came from three online team tasks, each done by four people who typed to each other and took about 40 minutes. In the Decision-Making task, teams chose the best apartment. In the Negotiation task, teams planned a fundraising event. In the Letter-to-Number task, teams worked out a hidden match between letters and numbers. Participants were recruited through Prolific, and the study was approved by an ethics review board at ETS. The sample had 2,940 chat turns (67 sessions) for Decision-Making, 2,538 (36 sessions) for Negotiation and 3,001 (60 sessions) for Letter-to-Number, 8,479 turns in all.

The coding framework

It had five main categories (such as maintaining communication, sharing information and acknowledging) and 17 subcategories. Two trained human raters coded every turn, and disagreements were settled to make a final human code.

The AI and its prompts

The team used OpenAI's GPT-4o (version 2024-0513) through Azure, with temperature 0 and a fixed random seed. Prompts included category descriptions and roughly 10 expert-written examples. Three strategies were compared:

  • Direct: code the 17 subcategories in one step.
  • One-step hierarchical: choose a main category, then a subcategory, in the same prompt.
  • Two-step hierarchical: first code main categories, then code subcategories in a second round.

Analysis

The researchers used Cohen's kappa, a score of agreement that corrects for chance, and mixed-effects logistic regression to test whether agreement differed by strategy.

Key Findings

GPT-4o's agreement with human coders was close to human-to-human agreement, and direct prompting did slightly better than the layered strategies. Kappa values around 0.57 to 0.59 are moderate, not near perfect.

Agreement across all 8,479 chat turns

  • Human vs. human: 0.582
  • Human vs. GPT-4o, direct: 0.591
  • Human vs. GPT-4o, one-step hierarchical: 0.574
  • Human vs. GPT-4o, two-step hierarchical: 0.573

By task

  • Decision-Making: humans agreed with each other at 0.637, and GPT-4o agreed with them at 0.608 to 0.622, close to the human level.
  • Letter-to-Number: human agreement was 0.608, and GPT-4o reached 0.539 to 0.575, a little lower.
  • Negotiation: this task was hardest for people (0.446). GPT-4o's agreement with human codes was higher, at 0.508 to 0.542. The authors suggest AI coding may be steadier when the talk is ambiguous.

Does the layered approach help?

  • In the statistical model, direct prompting had higher agreement with human codes than the two-step approach (p < 0.001), an odds ratio of 1.18, meaning about 18% higher odds of agreeing.
  • The one-step hierarchical approach did not differ from the two-step one (p = 0.98).
  • The direct approach's advantage looked like a general pattern. Most task-by-strategy differences were not significant. The exception was the one-step approach in Letter-to-Number, which did worse (p < 0.001).

Number of categories

The authors say agreement fell for both humans and the AI as the number of categories grew. Human agreement ranged from 0.446 to 0.637 across tasks, and the AI's agreement ranged from 0.508 to 0.622, depending on the strategy.

Why layers did not help

In the two-step approach, a mistake in the first, broad step carried into the second step. The authors call this error propagation and show it in a chart of main-category mistakes. The authors say the benefit seen for human coders did not carry over to this AI, and that the two steps were not independent because each detailed code sits inside a broad one.

Task also mattered: negotiation chats were harder to code for both people and the AI.

Implications

The authors say the results show that scalable, AI-based coding of complex communication frameworks is feasible, and that direct prompting is a more effective and reliable choice than hierarchical prompting for this kind of framework. They stress that results depend on the task and framework, so each AI coding setup needs careful checking.

Researchers and test developers

  • Try prompting the model with the full detailed framework at once rather than splitting it into broad and detailed rounds, since splitting added errors here.
  • Check AI coding against human coding for each task, because agreement differed across the three tasks.
  • Treat kappa values near 0.58 as a reminder to keep humans involved in checking.
  • Note that the authors say validation of both human and AI coding is needed across varied interaction settings.

Educators and school leaders

The paper's focus is research and assessment, and it makes no direct recommendations for classrooms.

Our reading (not the authors' recommendation):

  • A school or program that wants to study teamwork chats could consider AI coding to save time, but should keep human coders for spot checks, since agreement was moderate, and should report how well the AI matches humans.
  • AI coding of student discussions should not be used for high-stakes decisions about individual students based on this study alone.
  • Developers building classroom tools that label student talk should test several prompt designs instead of assuming a layered design is better.

Limitations

The authors state three limits. They used only GPT-4o, and newer models may behave differently, so the results must be read in the context of their time. The layered strategy they tested suffered from error propagation, but they say this reflects the specific prompts used and that better designs might avoid it. They also tested only three collaborative tasks and one coding framework, so the results may not hold for other kinds of conversation or other frameworks.

The paper does not mention, but kappa scores around 0.57 to 0.59 are moderate, so many individual messages still received a different code from the humans. The paper does not mention, but the human codes are treated as the standard even though two humans agreed with each other only at 0.582 overall, so "agreement" is not the same as being correct. The paper does not mention, but the chats came from adults recruited online, so the findings may differ for school-age students or for classroom talk. The paper does not mention, but the 18% difference in odds between prompting strategies is small, and the kappa values for the three strategies sit close together. The authors themselves note that the effect sizes were modest.

Future Directions

The authors suggest several directions for later work:

  • Can better prompt designs or multi-stage reasoning keep subcategory decisions from being thrown off by early mistakes in the broad step?
  • Do the findings hold across a wider set of collaborative tasks, other coding frameworks and different kinds of discourse?
  • Which kinds of messages are most often miscoded, and can the instructions for those categories be written more clearly?
  • Will newer or different AI models change which prompting approach works best?

The paper also leaves open why the AI appeared steadier than human raters in the Negotiation task, and whether AI coding of this kind stays fair and accurate for different groups of participants and settings. Studies with school-age students would show whether the same approach works for classroom talk.

The bottom line: GPT-4o labeled 8,479 team chat messages with 17 detailed codes at a level of agreement close to that of two human coders (about 0.57 to 0.59 vs 0.582). Coding the detailed categories directly worked a little better than going broad first, which let early errors spread. The evidence comes from one model, three tasks and one framework, and agreement was only moderate. AI coding looks useful for large datasets, but it needs checking against human coders each time.