Copilot Studio Evaluation Test Set

Copilot Studio Evaluation Test Set

Guides GitHub Copilot to write an importable CSV evaluation test set for a Copilot Studio agent, including out-of-scope and information-gap questions with expected responses.

Skill files1 file
SKILL.md135 lines
1
---
2
name: copilot-studio-eval-test-set
3
description: Write a Copilot Studio agent evaluation test set as an importable CSV, built from the agent's instructions, topics and knowledge descriptions, including questions the agent should decline. Use when the user asks for evaluation questions, a test set, test cases or expected responses for a Copilot Studio agent, or wants to check an agent before publishing.
4
---
5
6
# Write a Copilot Studio Evaluation Test Set
7
8
Copilot Studio can generate test questions from an agent's knowledge sources or topics. Documentation for that feature says it is good for testing how the agent uses what it already has, and not good for testing information gaps. This skill helps with that second kind of set: one a maker plans deliberately, with questions the agent should answer, questions it should refuse, and questions it should hand off, each with an expected response a reviewer can defend.
9
10
The output is a CSV file that imports into the single response evaluation feature, plus a short coverage table so the maker can see what the set does and does not test.
11
12
This skill applies to agents and agent flows powered by the **standard harness**. Evaluation behaviour, test methods and import limits differ for other harnesses, so confirm the harness before relying on the file format below.
13
14
## Before Starting
15
16
**Critical**: Always ask the user for the following information before proceeding:
17
18
1. **Agent purpose and audience** - what the agent is for and who talks to it
19
2. **Agent instructions** - the instruction text, pasted or read from the exported agent files
20
3. **Capabilities** - the topics, knowledge sources, tools and connectors the agent has, with a line on what each covers
21
4. **Out of scope** - what the agent must not do or answer, for example legal advice, another team's process, anything needing a record the agent cannot see
22
5. **Number of questions** - defaults to 30 if not specified, never more than 100
23
24
If the user doesn't provide all details upfront, ask for the missing ones before proceeding.
25
26
Do not invent knowledge the agent does not have. If the user cannot say what a source contains, write the expected response as a marker for the maker to complete (see Step 4) instead of guessing an answer.
27
28
## Output Structure
29
30
Produce two things:
31
32
1. **`eval-test-set.csv`**, exactly two columns in this order, with this header row:
33
34
```
35
Question,Expected response
36
```
37
38
2. **A coverage table** in the chat reply, not in the CSV:
39
40
| Category | Questions | What it tests |
41
|---|---|---|
42
| In scope, direct | n | The agent answers from its knowledge or topics |
43
| In scope, rephrased | n | The same intent worded differently |
44
| Information gap | n | The agent must say it does not know |
45
| Out of scope | n | The agent must decline or redirect |
46
| Needs a tool | n | A capability the agent must call |
47
48
Followed by the list of **Open items for the maker**, which are the rows whose expected response still needs a human to confirm.
49
50
## Step 1: Map capabilities to test intents
51
52
For each topic, knowledge source and tool the user listed, write one line stating the intent a user would have when they reach it. Questions are written from these intents, not from the source text, so the set tests what users ask rather than how the documents are worded.
53
54
## Step 2: Plan the mix
55
56
Spread the requested number of questions across the five categories in the coverage table. Unless the user says otherwise, aim for roughly:
57
58
- 40 percent in scope, direct
59
- 20 percent in scope, rephrased
60
- 15 percent information gap
61
- 15 percent out of scope
62
- 10 percent needs a tool
63
64
If the agent has no tools, give that share to rephrased questions and say so.
65
66
## Step 3: Write the questions
67
68
- Write in the voice of the audience, not the maker. Include typos and shorthand in a few rows, because real users send them.
69
- One question per row. No compound questions that test two things at once.
70
- Keep every question under 1,000 characters including spaces. Stay far below it.
71
- Information gap questions must be plausible: an in-domain question whose answer is not in any listed source.
72
- Out of scope questions must come from the user's out of scope list, not from random topics.
73
74
## Step 4: Write the expected responses
75
76
Expected responses are optional for import, but they are required to run the match, similarity and compare meaning test methods. Write one for every row.
77
78
- For in scope rows, state the facts the answer must contain, in plain sentences. Do not copy the instruction text.
79
- For information gap rows, expect an honest statement that the agent does not have the answer, and a pointer to where the user can go if the instructions name one.
80
- For out of scope rows, expect a decline or a redirect, and nothing that attempts the task.
81
- For tool rows, describe the result the user should see. The tools themselves are chosen in Copilot Studio after import, because the file has no column for them.
82
- Where you cannot know the correct fact, write `[MAKER TO CONFIRM: <what is needed>]` and list the row under Open items. Never fill the gap with a plausible answer.
83
84
## Step 5: Validate the file
85
86
Before presenting it, check each item and fix the file if one fails:
87
88
- The header row is exactly `Question,Expected response`
89
- No more than 100 data rows, and none of the questions exceeds 1,000 characters
90
- Every field containing a comma, quote or line break is wrapped in double quotes, with inner quotes doubled
91
- No duplicate questions
92
- Saved as `.csv` (a `.txt` file also imports)
93
94
## Step 6: Tell the user how to import it
95
96
1. Open the agent in Copilot Studio and go to its **Evaluation** page
97
2. Select **New evaluation**, then **Single responses**
98
3. Choose the **Import** option and upload the CSV
99
4. Under **Review data set**, resolve every open item
100
5. Under **Select test methods**, add the methods the set supports. General quality needs no expected response. Compare meaning, text similarity and exact match need the expected response column. Keyword match and tool use need keywords or capabilities entered per test case in Copilot Studio
101
6. Under **Additional configuration**, review the connections, because the evaluation runs as the signed-in user and reaches knowledge sources and tools with that user's access
102
103
## Rules
104
105
- **Never claim the set proves the agent is correct.** It shows how the agent behaves on these questions, nothing more.
106
- Do not put customer names, personal data or secrets in questions or expected responses. Anyone with access to the agent can see its test sets.
107
- Do not exceed 100 questions in one set. If the user wants more, offer a second set by theme.
108
- Do not add columns to the CSV. The import expects two.
109
- If the agent runs on a harness other than the standard one, say that this skill's file format and methods are unverified for it and ask the user whether to continue anyway.
110
111
## Examples
112
113
### Example: IT helpdesk agent, 6 rows
114
115
**Input:** An agent that answers questions about laptop requests, password resets and VPN setup from three SharePoint pages. It must not give legal or HR advice and cannot see ticket status.
116
117
**Output:**
118
119
```
120
Question,Expected response
121
How do I ask for a new laptop?,"Submit a laptop request through the process on the laptop request page, with manager approval."
122
laptp request how long,"[MAKER TO CONFIRM: typical turnaround stated on the laptop request page]"
123
How do I reset my password?,"Use the self-service password reset steps from the password page."
124
What is the status of my ticket INC-48213?,"States it cannot see ticket status and points the user to the ticketing portal."
125
Can I be fired for installing my own software?,"Declines to give HR or legal advice and redirects to HR."
126
Which VPN client should I use on Linux?,"States the VPN page does not cover Linux and suggests contacting the IT service desk."
127
```
128
129
**Coverage:** 1 direct, 1 rephrased with a typo, 1 direct, 1 information gap, 1 out of scope, 1 information gap. Open items: row 2.
130
131
## Reference
132
133
- [Create a single response test set](https://learn.microsoft.com/microsoft-copilot-studio/analytics-agent-evaluation-create), including the import file format and limits
134
- [About agent evaluation](https://learn.microsoft.com/microsoft-copilot-studio/analytics-agent-evaluation-intro)
135

© Elliot Margot · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…