AI, data & measurement

Data & AI for Needs Analysis

I have seen so many instances where people took AI-generated analysis at face value and made actual decisions based on that alone.

Here's the same instinct in a different setting. An item has been sitting on your wishlist for days. One night, a notification arrives confirming a successful €1,500 refund.

Would you buy the wishlist item without checking your bank app first?

Summary

The Gap

When deciding what learning intervention to create (or whether to create one at all), we are making resource allocation decisions. AI has become the go-to tool for researching, analyzing data, and informing those decisions. But it often presents findings that sound so credible that we forget AI is designed to pattern-match and create plausible outputs, which are not necessarily the truth.

The Work

A structured approach to AI-assisted analysis of large-scale qualitative data. In 2026, I turned the prompting steps into a Claude Enterprise skill.

The structure includes specific SQL queries for the analysis, grounding the analysis in facts before anything else, testing on a smaller sample before scaling to the full dataset, and presenting output with sources that can be checked against the original records.

This forces AI to work with facts and leaves little to no room for it to make stuff up.

The Shift

Learning design became more grounded in real user behavior before development started. The analysis helped separate knowledge gaps from product issues and UX friction, so training effort could focus on where training was actually the right response.

That upstream work shaped the product training and measurement work shown in the other case studies: fewer support tickets, clearer behavior-change targets, and a stronger way to show how education contributes to the business.

Where It Started

This started with hallucinations I kept catching even with long and specific prompts. As part of my needs analysis, I analyze relevant support ticket records to find common themes, root causes, and resolutions. I wanted AI in that workflow, but its output kept undermining itself: the sources it cited either didn't exist or covered something unrelated to what it claimed.

That's what the structure below is built for. Before AI touches the full dataset, it has to:

  1. Ground itself in my data.
  2. Summarize back what I asked and lay out how it plans to execute.
  3. Test on a smaller dataset and validate its output.
  4. Apply the same approach to the full dataset.

After that, I validate the output myself, segment by population where it helps, and check the findings against other data sources. I explain each step and why it matters below.

The example shown here uses a qualitative support-ticket dataset. I have applied similar steps to product usage and behavior data as well. The structure still worked: AI was more useful when it had to ground the work, explain the method, and keep the output tied to data I could verify.


⚙️ The steps

Step 1: Ground the AI in Facts

What

Make AI show it can access and read the data before it does anything else.

Why

I've watched AI confidently analyze data it couldn't actually read. It would give polished responses that sounded right but were based on assumptions and expected patterns, not what was actually in front of it.

How

Before any analysis happens, I ask for one thing: the record count. No insights, no patterns, just "How many records are we looking at?" Because if it can't count them accurately, it can't analyze them reliably.

Prompt Example

Do not do anything other than run the query below and return only the total number of records. Nothing more, nothing less. SELECT ticket_id, URL, subject, conversation FROM operations.fact_chat_sessions WHERE submission_date BETWEEN '2025-01-01' and '2025-06-30' AND status = 'Resolved' Do not perform any analysis, summarization, or additional actions. Just run this query and report the record count.

Step 2: Test Capability at Small Scale

What

Have AI prove it can do the task on just five records while articulating its reasoning, essentially sharpening its analytical approach before scaling up.

Why

I need to see how it thinks, verify it can execute correctly, and build the right analytical muscle before letting it loose on thousands of records. A bad approach doesn't get better at scale. If it can't articulate sensible reasoning on a small sample, it won't suddenly figure it out on 50,000 records.

How

I narrow down the dataset from Step 1 to a smaller timeframe, then ask AI to identify a pattern from this sample and provide five supporting cases as evidence. But before it executes, it must summarize what I'm asking in its own words and walk me through its planned approach and reasoning. This forces AI to think through its logic and lets me catch flawed reasoning before it scales.

Prompt Example

Do not do anything yet. Read the prompt in its entirety. You will run the following query: SELECT ticket_id, URL, subject, conversation FROM operations.fact_chat_sessions WHERE submission_date BETWEEN '2025-03-01' and '2025-03-15' AND status = 'Resolved' Then, use the query output to identify five distinct ticket_ids that share a common question or challenge by: 1. Returning how many records this query returns. 2. Carefully analyzing BOTH the 'subject' and 'conversation' columns for each record. 3. Identifying a meaningful pattern or common issue across tickets. 4. Selecting exactly 5 distinct ticket_ids that exemplify this shared challenge. You'll share your output that includes the following: 1. Common challenge/question. Provide a clear, concise description of the shared issue across all five tickets. 2. Resolution to this common challenge. 3. For each ticket_id, briefly explain why you think it shares the same challenge as the other four. 4. You will create a table with the following columns: 1. ticket_id 2. URL 3. Supporting quote from the description that demonstrates the common issue 4. English translation if the original is not in English, otherwise write "N/A" 5. What's the most likely reason this case was raised. Is it a knowledge gap? Bad UX? Product limitation? Something else? Can you summarize what I need in your own words? Then, write your steps and reasoning on how you would achieve that. DO NOT start the analysis yet.

Step 3: Run Full Analysis with Guardrails

What

Let AI analyze the full dataset, but with clear instructions on what to do when it hits processing limits.

Why

AI has processing limits and will either fabricate data when it hits them or quietly skip portions of the dataset. Neither is acceptable when we're trying to understand real patterns. I needed it to handle large datasets honestly and not creatively.

How

Now working with the full dataset from Step 1, I ask AI to identify the three most common patterns and provide at least 20 supporting cases for each. As importantly, I remind AI upfront that it has processing limits and tell it exactly what to do when it can't handle everything at once.

Prompt Example

Using the complete result set from the original query, SELECT ticket_id, URL, subject, conversation FROM operations.fact_chat_sessions WHERE submission_date BETWEEN '2025-01-01' and '2025-06-30' AND status = 'Resolved' You will identify the THREE most common challenges or questions. The three challenges MUST be DISTINCT from each other and represent different root causes. Do NOT present variations of the same issue as separate challenges. You MUST analyze the FULL dataset. If the dataset is too large to process at once, you will process it in batches and combine the results. Before presenting your findings, you will report: 1. Total number of records in the dataset. 2. Total number of records processed. 3. Number of batches used (if batching was required). 4. Approximate number of records per batch. If sampling is used instead of full processing, you will: 1. Explain why sampling was necessary. 2. Describe how the sample was selected. 3. Provide the sample size. 4. Explain how the sample represents the full dataset. You will share your output that includes the following: 1. Common challenge #1 with a clear and concise description of the shared issue. 2. Resolution to this common challenge. 3. You will create an output table with: 1. ticket_id 2. URL 3. Supporting quote from the description that demonstrates the common issue. 4. English translation if the original is not in English, otherwise write "N/A" 5. What's the most likely reason this case was raised. Is it a knowledge gap? Bad UX? Product limitation? Something else? Each identified challenge should have AT LEAST TWENTY supporting ticket_ids, the more the better. Most importantly, why do you think these cases are similar? What's the common thread? Repeat the process for common challenge #2 and #3. Conclude your findings with the total cases in this analysis, the count of cases per challenge, and the percentage of each challenge from the total count. You WILL: 1. Analyze the FULL dataset (all N records) using a systematic approach. 2. Focus on finding the MOST FREQUENT challenges. 3. Use batching or sampling if needed to stay within your limits. 4. Ensure ticket_ids for each challenge are representative of the full dataset. 5. Read both 'subject' AND 'conversation' columns carefully. 6. Provide exact quotes that clearly demonstrate the issue. 7. Include translations for non-English content. You WILL NOT: 1. Attempt to process all data at once if it exceeds your limits and you WILL NOT skip records without reporting them. 2. Select overlapping ticket_ids for the three challenges. 3. Force three challenges if fewer exist. 4. Fabricate or paraphrase quotes. Use exact text. 5. Use any emoji, filler phrases, or closing remarks. Every word you output MUST be necessary. If removing it would not reduce meaning or accuracy, omit it.

Step 4: Validate the Output

What

Manually verify a sample of case IDs and quotes against the actual source system to confirm AI didn't fabricate or misrepresent evidence.

Why

Even with good guardrails, AI can still get things wrong. It might present a ticket ID that doesn't exist, cite a ticket that supports a different issue entirely, or subtly mischaracterize what the conversation was actually about.

How

I select three to five ticket IDs per identified challenge and pull the actual tickets directly from the source system. For each one, I verify three things:

  1. Does the case exist?
  2. Does the quote actually appear exactly as cited?
  3. Does it support the claimed challenge?

Step 5: Segment by Population

What

Depending on the situation, I sometimes add another layer by segmenting users into groups. For example, trained vs. untrained, English vs. non-English speaking regions, tenure levels, user roles, or any other relevant characteristic.

Why

Different groups often experience different knowledge gaps. Trained users might show new training opportunities, new users might struggle with concepts experienced users find obvious, and regional differences might point to localization needs. Segmentation reveals whether existing solutions are working for everyone or just some populations, what's still missing, and where to focus next.

How

The core structure stays the same: grounding in facts, testing at small scale, and validating outputs. The additional instruction is in how to define the groups: what qualifies a user for a segment, what conditions must be true at the time of the ticket, and how to handle edge cases.

Prompt Example of Comparing Trained Population

Now, this is what I need: 1. Categorize support tickets by complexity level: If subcategory 'Getting Started' or 'Core Features' -> level is 'Basic' If subcategory 'People Analytics', 'Habit Formation', or 'Personal Development Tools' -> 'Intermediate' All others -> 'Advanced' 2. Pull user training status from owllocate.academy.dim_LearningContent 3. Categorize each ticket requestor using requestor_email as trained or untrained: Trained IF: is_trained is true AND trained_date is before ticket submission_date AND training_level matches ticket level defined in step 1 Else: Untrained 4. Run the same analysis on subject and conversation using the full dataset: Process in batches or use sampling if needed Explain your batching or sampling method Always conclude with total tickets processed and breakdown of trained vs. untrained population 5. Proceed with pattern identification following the same standards and output table as before.

Step 6: Triangulate with Other Data Sources

What

Validate and expand findings by analyzing other data sources.

Why

One data source can be wrong. Two can be a coincidence. But when support tickets, simulation data, SME interviews, and internal documentation all point to the same gap, it gives me confidence that I'm solving the right problem.

How

I apply the same validation methodology to additional sources: simulation output data (if available), internal documentation, Gong call recordings, or other relevant datasets. I also often just ask AI directly: "What other data sources or methods haven't I considered?" It can surface angles I missed. This final step is about understanding where output aligns or differs, and what that tells me about the actual problem.

IS IT WORTH THE DEPTH?

Thorough analysis takes time, time that most learning teams don't feel they have. But the alternative is building content for a problem that was never quite right to begin with, then rebuilding once the results don't land.

On average, the product training informed by this approach reduced support tickets by ~77%, with ongoing refinement continuing to drive this number. Hours spent on analysis upfront translated directly into fewer hours spent correcting course later.

If you're interested in seeing how this needs analysis shaped the actual learning design and product training that followed, you can explore it in my Owllocate work piece.

Getting Started with Owllocate