InstructionalEngineer

Using AI to Make Sense of xAPI Data

By Instructional EngineerSCORM, xAPI and LMSAI7 min read

Using AI to Make Sense of xAPI Data - 3D Cutaway Animation

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:

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:

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:

Using AI to Make Sense of xAPI Data - 3D Wireframe Animation
  1. Write the question. "Which steps in the onboarding simulation do new hires fail most often on their first attempt?"
  2. Export only the statements you need: the relevant activities and date range.
  3. Remove or replace names, emails and employee IDs with neutral codes.
  4. Give the assistant a short description of the data: what the columns mean and which verbs you use.
  5. Ask for an analysis plan before any results. Correct the plan if it misunderstands your data.
  6. Run the analysis, either in the assistant or with the code or formulas it wrote.
  7. Check the headline numbers with a second method, such as a pivot table.
  8. 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.

Hours to prepare a quarterly xAPI report

One analyst, one program, by task

  • Manual
  • With an AI assistant
0246Export and cleanQueries andformulasFind patternsRead open textDraft reportVerify resultsExport and clean3 hrs1.5 hrsQueries and formulas4 hrs1 hrFind patterns3 hrs1 hrRead open text5 hrs1 hrDraft report3 hrs1 hrVerify results1 hr2 hrs

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
ManualWith an AI assistant
Export and clean3 hrs1.5 hrs
Queries and formulas4 hrs1 hr
Find patterns3 hrs1 hr
Read open text5 hrs1 hr
Draft report3 hrs1 hr
Verify results1 hr2 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:

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.

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.

← All articles