Using AI to Make Sense of xAPI Data

You did the hard part. Your courses, simulations and checklists send xAPI statements, and the Learning Record Store (LRS) is filling up nicely. Then a manager asks a simple question, "Where are new hires struggling?", and you open an export with tens of thousands of rows of nested JSON. That gap between having data and having an answer is where AI xAPI analytics earns its keep. How can AI help you turn raw xAPI statements into answers people can act on?
AI helps make sense of xAPI data by handling the slow steps between raw statements and a clear answer: flattening and cleaning exports, writing queries and formulas, summarizing patterns, and reading open-text responses at scale. General assistants such as ChatGPT, Claude and Microsoft Copilot can work with an exported spreadsheet, explain what's in it, and draft the analysis and the write-up. You stay in charge of the question, the data handling and the final check of every number. Start with one specific question, remove personal information before sharing data with any tool, and verify key figures with a second method before you report them.
Why Is xAPI Data So Hard to Read?
xAPI data is hard to read because it's built for machines and flexibility, not for spreadsheets. Each statement is a nested JSON object with an actor, verb, object, result and context, often with optional pieces that appear in some statements and not others.
A few specific things make it slow to analyze by hand:
- Verbs and activities are identified by long web addresses, so a column of IRIs has to be translated into readable names.
- Results and context are nested several levels deep, and flattening them into columns takes care.
- Volume adds up fast. A single scenario can send a statement for every decision.
- Different tools may describe similar events in slightly different ways.
None of that is hard for AI assistants, which are very good at reading structured text and explaining it back in plain language.
Which Questions Are Worth Asking of xAPI Data?
The best questions connect learning activity to a decision someone will make. "How many statements did we get last month?" is trivia. "Which practice step predicts a failed certification?" changes what you build next. Good starting questions include:
- Which steps or decisions in a scenario do people get wrong most often on their first try?
- Where do learners stop or abandon an activity, and does that point share anything in common?
- Do people who use a job aid or practice simulation perform better on the final assessment?
- What themes keep coming up in reflection answers and comments?
- Which groups (roles, sites, shifts) need extra support, and on which skills?
Each of these can be answered from well-designed statements, and each points to a concrete action: fix a confusing screen, add practice, revise a job aid or brief a supervisor. Bring one of them to the assistant rather than asking it to "find insights," which tends to produce generic observations.
What Can AI Do with xAPI Data?
AI can help at nearly every step of an analysis. Here's where it adds the most value.
Flatten and clean the export
Paste a few sample statements and ask for a script or step-by-step instructions to turn the full export into a tidy table: one row per statement, with columns for learner ID, verb name, activity name, score, success, duration and parent activity. Assistants are excellent at writing this kind of conversion code in Python or as spreadsheet steps, and at explaining each line.
Write the queries
If your LRS or reporting tool supports queries, describe what you want in plain words and ask for the query. If you're working in Excel or Google Sheets, ask for the formulas or pivot table setup. This is often the biggest time saver for people who know what they want but not the syntax.
Spot patterns
Ask the assistant to compare groups, rank activities by failure rate, or find the steps where learners spend the most time. It can also suggest views you hadn't considered, such as splitting results by first attempt versus retake.
Read open-text responses
Reflection questions, comments and free-text answers are often ignored because nobody has time to read them. AI can group hundreds of responses into themes, quote representative examples, and flag the unusual ones a person should read in full.
What Does a Good AI xAPI Analytics Workflow Look Like?
A good workflow starts with a question and ends with a human check. Here's the sequence I recommend:

- Write the question. "Which steps in the onboarding simulation do new hires fail most often on their first attempt?"
- Export only the statements you need: the relevant activities and date range.
- Remove or replace names, emails and employee IDs with neutral codes.
- Give the assistant a short description of the data: what the columns mean and which verbs you use.
- Ask for an analysis plan before any results. Correct the plan if it misunderstands your data.
- Run the analysis, either in the assistant or with the code or formulas it wrote.
- Check the headline numbers with a second method, such as a pivot table.
- Ask for a plain-language summary, then edit it into your own report.
Step five is the one people skip. Asking for the plan first catches misunderstandings, such as treating every "attempted" statement as a failure, before they reach a chart.
Where Does the Time Go With and Without AI?
The chart below is an illustrative example, not measured data. It models how one analyst might spend time preparing a quarterly report from xAPI data for a single program, done manually versus with an AI assistant in the workflow. Notice that the verification step gets longer, not shorter. That's deliberate, and it's part of what makes the faster workflow trustworthy.
One analyst, one program, by task
- Manual
- With an AI assistant
Illustrative example: assumed hours for one analyst and one program to show where AI assistance tends to save time; not measured or published data.
View the data
| Manual | With an AI assistant | |
|---|---|---|
| Export and clean | 3 hrs | 1.5 hrs |
| Queries and formulas | 4 hrs | 1 hr |
| Find patterns | 3 hrs | 1 hr |
| Read open text | 5 hrs | 1 hr |
| Draft report | 3 hrs | 1 hr |
| Verify results | 1 hr | 2 hrs |
Your own numbers will differ with the size of your data and your team's skills. The pattern is what matters: AI shrinks the mechanical work and leaves more room for judgment.
Which Prompts Work Well for xAPI Data?
Prompts work best when they describe the data, the question and the format you want back. A few that consistently produce useful results:
- "Here are five sample xAPI statements. Write a Python script that flattens a full export into a CSV with one row per statement and these columns..."
- "This table lists simulation steps with first-attempt success rates. Rank the five weakest steps and suggest two possible reasons for each, labeled as hypotheses."
- "Group these 300 learner comments into no more than six themes. For each theme, give a count, a one-line description and two representative quotes."
- "Before analyzing, tell me what you think each column means and what assumptions you'll make."
That last prompt is worth using every time. It turns hidden assumptions into something you can correct.
How Do You Keep AI-Assisted Analysis Accurate?
Keep it accurate by treating AI output like a capable colleague's first draft: usually helpful, occasionally wrong, always worth checking. Language models can state an incorrect number with complete confidence, a known limitation of large language models, so key figures need a second source.
- Recalculate headline numbers with a pivot table or a simple query.
- Prefer analysis the assistant runs as code, which you can inspect, over numbers it states from reading alone.
- Watch small groups. A 50% failure rate means little if only four people attempted the step.
- Label explanations as hypotheses until a designer or subject matter expert (SME) confirms them.
- Follow your organization's rules on approved tools and data handling, and de-identify data first.
The Society for Learning Analytics Research describes learning analytics as measuring and analyzing learner data to understand and improve learning. AI speeds up the analyzing; the understanding and improving still belong to your team. The same paste-explain-verify habit works on technical logs as well, which is the idea behind AI SCORM debugging.
AI xAPI Analytics: From Statements to Decisions
AI xAPI analytics closes the gap between a full LRS and a useful answer. Let AI flatten the data, write the queries, find patterns and read the comments, while you own the question, the privacy steps and the final check. That division of labor gets you faster reports that people can trust.
Take the question your managers ask most often, export a small slice of the statements that bear on it, and run the eight-step workflow above. The first report is the hardest; the second one reuses everything you built.