
This article is my opinion and my own experience. The three percentages I quote come from one example analysis, and everything else I describe is how the script and the process work.
When I wrote about the read-only PowerShell prompt report, the obvious next question was: now that you have the prompts, what do you actually do with them? Reading a few hundred of them one by one is slow and mostly pointless. The useful part is the pattern across all of them, and that is a good job for an AI assistant, as long as you handle the data carefully.
Here is the workflow I use: export, anonymise, analyse, then act. I have included the full set of prompts I give Grok Bot so you can run the same analysis yourself.
Why analyse prompts at all?
In my view, most Copilot training is guesswork. We teach tips and tricks, and we hope it helps. Prompt data replaces the guess with evidence. It shows what people really ask, which apps they use, what they repeat and what they leave out. That lets you aim a short training session at the real gap instead of the imagined one.
Here is an example result from one analysis: “These users already do two things well: they point Copilot at real files and emails, and they reuse prompts that work. The gap is in the brief. Only 7.5% say who the output is for, 15.1% say why they need it, and 8.1% say how they will know it is right. Fixing that, and turning the repeated prompts into shared templates, will lift quality faster than teaching anyone to ‘act as’ an expert.”
The last sentence is my interpretation, not a measured result, and it matches what I wrote in Are “act as this role” prompts still worth using?. Role prompts help with tone. A clear brief helps with the answer.
Step 1: export the prompts (read-only)
The ai-prompt-report.ps1 script reads prompts from the Microsoft Graph AI interaction history. It is read-only. It writes an HTML dashboard, a JSON file, a prompts-only CSV and a prompts-only text file, and it does not overwrite existing files. The documentation explains the setup and the permissions it needs, and my earlier post walks through it.
Pick the window with -Days (the script accepts 1 to 180 days) or with start and end dates. A few things are worth knowing:
- The prompts CSV has one row per prompt that has text, with the time, user, display name, app or host and the prompt itself.
- Copilot’s responses are not included unless you ask for them. For this analysis you do not need them, so leave them out.
- It can only return what the service still holds. A retention policy can delete prompts earlier, so an empty or short export is not always a fault.
- Prompts from agents built in Copilot Studio are not returned as text by this API.
In the exports I have looked at, some rows are not typed by a person at all. They are automated or agent-generated payloads. You should exclude those before you measure anything, and the first prompt below asks Grok Bot to flag them.
Step 2: anonymise before any AI sees it
This is the step that matters most. The raw CSV contains names, email addresses and whatever people typed, which can include customer names, file names and personal details. My rule is that the original export stays on your own machine, and only a cleaned copy goes anywhere else. My view is that you should also check your own policies, your clients’ agreements and the Australian privacy rules before you do this on a customer’s data. I covered the legal side in What Australian privacy law allows, and doesn’t, when you monitor a customer’s Microsoft 365 tenant. It is general information, not legal advice.
A good first pass does four things: replaces each person with a code like U001, drops the display name, keeps the day but not the exact time, and strips obvious identifiers from the prompt text. This PowerShell snippet does that locally. It works on the CSV columns the script produces:
$in = '.\ai-prompt-report-<stamp>-prompts.csv' # the export from the script
$out = '.\prompts-anonymised.csv'
$rows = Import-Csv -Path $in
$map = @{}; $n = 0
$clean = foreach ($r in $rows) {
if (-not $map.ContainsKey($r.User)) { $n++; $map[$r.User] = 'U{0:000}' -f $n }
$t = $r.Prompt
$t = [regex]::Replace($t, '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}', '[EMAIL]')
$t = [regex]::Replace($t, 'https?://\S+', '[URL]')
$t = [regex]::Replace($t, '[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}', '[GUID]')
$t = [regex]::Replace($t, '[\w\-]+\.(docx?|xlsx?|pptx?|pdf|csv|txt|msg|eml)\b', '[FILE]', 'IgnoreCase')
$t = [regex]::Replace($t, '\+?\d[\d\s().-]{7,}\d', '[NUMBER]')
[pscustomobject]@{ UserId = $map[$r.User]; Day = $r.DateTime.Substring(0,10); App = $r.'App/Host'; Prompt = $t }
}
$clean | Export-Csv -Path $out -NoTypeInformation -Encoding UTF8
Be realistic about what a pattern-based clean-up can and cannot do. It catches email addresses, links, GUIDs, one-word file names and long numbers. It does not catch a person’s name, a customer’s name, a project name or a file name with spaces in it. So the second half of the job is a manual skim of the cleaned file, and the first Grok Bot prompt below also scans for anything that slipped through. If you want a department breakdown, add a Group column yourself and remove the individual code entirely.
Step 3: analyse with Grok Bot
The approach is to use a simple rubric and to make the AI show its working. I score each prompt for eight things: task, context, grounding (does it point at a real file, email or meeting), audience, purpose, format, success criteria and role-play. Then I count. The AI classifies, and the arithmetic stays traceable so I can check it.
Three guardrails keep it honest. Tell the AI not to quote prompts, ask it to show you a random sample of its scoring so you can check its judgement, and require every percentage to come with a count and a denominator. If the sample is small, say so. A percentage from a handful of prompts is a hint, not a finding.
Attach your anonymised CSV to a Grok Bot chat and run these prompts in order. Each one builds on the previous result, so keep them in the same conversation.
Prompts you can copy and paste
PROMPT 1 - LOAD AND CHECK THE EXPORT
I am attaching a CSV of prompts that staff typed into Microsoft 365 Copilot. It has already been anonymised: people are shown as U001, U002 and so on, and emails, links, file names and long numbers are replaced with tags like [EMAIL] and [FILE].
Do the following and do not analyse anything yet:
1. Report the number of rows, the date range (Day column), the number of distinct UserIds and the count of rows per App.
2. Flag rows that look machine-generated rather than typed by a person (for example structured JSON, repeated system text, or identical text sent within seconds in several apps). List only their row numbers and a short reason. Do not quote them.
3. Scan the Prompt column for anything that still looks like personal or customer information (names, company names, project names, addresses, account numbers). Report row numbers and the type of data only. Never repeat the data itself.
4. Propose which rows to exclude from analysis and why, then wait for my confirmation.
Rules: do not invent anything, do not guess, and do not quote prompt text in your answer.
PROMPT 2 - CLASSIFY EACH PROMPT AGAINST A RUBRIC
Using only the rows I confirmed, classify every prompt against this rubric. Score each element 1 (clearly present) or 0 (absent or unclear):
- Task: it states what to produce or do.
- Context: it gives background about the situation.
- Grounding: it points Copilot at real material such as a file, email, meeting, chat, site or data set.
- Audience: it says who the output is for.
- Purpose: it says why the output is needed or what decision it supports.
- Format: it asks for a specific length, structure or layout.
- Success criteria: it says how the requester will know the result is right or good enough.
- Role-play: it uses an "act as" or "you are a" style instruction.
Work in batches of 50 rows. For each batch return a table with columns RowId, UserId, App, then one 0/1 column per element, plus a one-line neutral note of up to 12 words that describes the task type without quoting the prompt (for example "summarise a meeting" or "draft a customer reply").
When you finish all batches, show me 10 randomly chosen rows with your scores so I can check your judgement. Ask me for corrections before continuing. If a prompt is too short or ambiguous to score, mark it "unclear" instead of guessing.
PROMPT 3 - CALCULATE THE PERCENTAGES
Using the scored table, calculate for each rubric element:
- the number of prompts that scored 1
- the denominator (state exactly how many prompts were included and how many were excluded or unclear)
- the percentage to one decimal place
Also calculate:
- the percentage of prompts that have Task plus Grounding but none of Audience, Purpose and Success criteria
- the percentage that have all of Audience, Purpose and Success criteria
- the figures by App
Show the working as a table and show the formula for one example so I can verify it. Do not round up, do not estimate and do not state a figure that you cannot trace to counted rows. If a number is small (under 10 prompts), say so and warn me against over-reading it.
PROMPT 4 - FIND REPEATED PROMPTS AND TURN THEM INTO TEMPLATES
Find prompts that are repeated or near-repeated, meaning the same task phrased the same way, either by one user (U-number) over time or by several users. Cluster them by task type (for example meeting recap, email reply, document summary, report draft, research, data analysis).
For each cluster give me:
- a short neutral name
- how many prompts and how many distinct UserIds are in it
- what the typical prompt already does well
- which rubric elements are usually missing
- a generalised pattern with placeholders in square brackets, such as [FILE], [AUDIENCE] and [PURPOSE], that contains no real names, files, customers or projects
Do not quote any original prompt. Rank the clusters by how often they occur. Say clearly when a cluster is too small to be a reliable pattern.
PROMPT 5 - STRENGTHS, GAPS AND EXECUTIVE SUMMARY
From the results of the earlier steps, write:
A. Strengths: up to 3 behaviours the group already does well, each backed by a counted figure.
B. Gaps: up to 3 gaps in how prompts are written, each backed by a counted figure.
C. An executive summary of no more than 90 words for a business owner who is not technical. Use plain Australian English. Follow this shape:
"These users already do [strength 1] and [strength 2]. The gap is in the brief. Only [x]% say who the output is for, [y]% say why they need it, and [z]% say how they will know it is right. Fixing that, and turning the repeated prompts into shared templates, will lift quality [more/less] than [other option]."
Use only figures from the calculation step. If the data does not support a sentence, remove that sentence rather than inventing support for it. Label anything that is your interpretation, not a measured fact, as "Interpretation".
PROMPT 6 - TEMPLATES AND A TRAINING PLAN
Create:
1. Five to eight shared prompt templates for the biggest clusters. Each template must include a one-line description of when to use it, the template text with [PLACEHOLDERS], and a short "good" example built from fictional content (for example a fictional company called Contoso and a fictional person called Alex). Every template must ask for or include the audience, the purpose and the success criteria.
2. A one-page checklist titled "Before you press enter" with no more than 6 items.
3. A four-week training plan for a small organisation with weekly 30-minute sessions. For each week give the goal, the activity and one measure of success.
4. A way to re-measure in 90 days using the same rubric, so we can see whether the percentages for Audience, Purpose and Success criteria moved.
Keep everything practical and short enough to paste into Teams or SharePoint.
PROMPT 7 - OPTIONAL: BREAKDOWN BY GROUP WITHOUT NAMING PEOPLE
I have added a column called Group (for example Finance, Sales, Operations) in place of any individual identifier. Repeat the percentage calculation by Group.
Rules:
- Never show a Group with fewer than 5 users or fewer than 20 prompts. Merge small groups into "Other" instead.
- Do not show anything at user level.
- Do not rank groups as "best" or "worst". Describe what each group does well and where its prompts usually lack a brief, and suggest one targeted tip.
- Add a note that group results are a conversation starter, not a performance review.
PROMPT 8 - FINAL PRIVACY CHECK ON THE REPORT
Review the full report you have produced as if you were a privacy officer. List any sentence, table or example that could identify a person, customer, project or document, even indirectly. Check for names, company names, file names, unusual job titles, small group results and quoted prompt text. Suggest a rewrite for each item. Then confirm in one line whether the report is safe to share with the leadership team.
What the example findings mean
Take the example result at face value. Two strengths: people already ground Copilot in real files and emails, which is the habit that makes Microsoft 365 Copilot useful, and they reuse prompts that work. Both are good news. They mean the group is already using the product the way it was designed to be used.
The gap is the brief. Fewer than one in six prompts in the example said why the output was needed, and fewer than one in twelve said who it was for or what “right” looks like. In my experience that is when you get a polite, generic answer that someone then has to rework. It is the same problem a human assistant has when given a task with no context.
Opinion: this is a better target for training than any clever prompt trick. Teach three questions, which are who is this for, why do I need it and how will I know it is right, and attach them to the prompts people already reuse.
What to do next
- Turn the most repeated prompts into shared templates with the three brief elements built in, and store them somewhere everyone can find them, such as a SharePoint page or a Teams channel.
- Run a short 30-minute session on the three questions using fictional examples, not real client work.
- Add a “before you press enter” checklist next to the templates.
- Re-run the export in about 90 days, use the same rubric, and see whether the percentages for audience, purpose and success criteria moved.
- Keep the raw export locked down, delete it when you are done, and keep only the anonymised results.
For MSPs, this is a service worth offering: export, anonymise, analyse, then train the staff on what the data shows. It gives a client something concrete instead of a generic AI workshop, and it gives you a measurable before and after.
Script and documentation checked 6 December 2026. The percentages are from one example analysis and should not be taken as typical of any other organisation.