Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This article contains Microsoft Copilot Studio preview documentation and is subject to change.
Preview features aren't meant for production use and may have restricted functionality. These features are available before an official release so that you can get early access and provide feedback.
If you're building a production-ready agent, see Microsoft Copilot Studio Overview.
Success criteria describe the outcomes you expect an agent to achieve. In a Microsoft Copilot Studio workflow powered by the Microsoft Copilot harness, you can define one or more criteria for an agent. The agent's work is automatically evaluated against them at the end of each run to help you understand whether the agent meets your objectives.
Note
The harness used to build this agent uses usage-based billing. Using, building, testing, and evaluating agents might consume Copilot Credits. Learn more in Overview of usage-based billing.
For example, an agent that drafts replies to order inquiries might need to include the order number, provide a delivery date, and link to the return policy. Define these expectations as criteria, then review the results for an individual run in Activity or track the agent's pass rate across runs in Monitor.
Success criteria measure the quality of an agent's work, not just whether it ran without an error. A workflow run can succeed even when an agent fails a success criterion. Use the agent's instructions to describe what it should do and success criteria to check the result. These checks aren't a substitute for workflow conditions or approval steps.
Note
Success criteria are available in early release cycle environments for inline agents (agents created directly within a workflow). Support for existing agents is coming soon.
Define success criteria for an agent
Configure criteria separately for each agent node whose outcomes you want to measure.
- In Copilot Studio, select Workflows, and then open your workflow.
- Select Build, and then select the agent node.
- In the node's Configure tab, select Success criteria.
- Enter a specific outcome in the first criterion field.
- To check another outcome, select Add criteria and enter its text. Repeat for each outcome you want to check.
- Select Close.
- Save the workflow to keep your changes, and publish it before running it with the updated criteria.
To edit criteria, reopen Success criteria from the agent node.
Note
To temporarily stop checking criteria at the end of each run without deleting them, turn off Check success criteria in the dialog. Select Close, then save and publish the workflow. Turn the setting back on when you want to resume checks.
Write specific, measurable criteria
Write each criterion as one specific outcome that you can verify from the agent's run record. In the success criteria dialog, expand Writing tips for examples.
The following examples reflect the writing tips in the product.
| Write a measurable outcome | Avoid a vague expectation |
|---|---|
| The proposal has all five required sections. | The proposal is complete. |
| The reply includes the order number and a delivery date. | The reply includes all the information the customer needs. |
| The summary is four lines or shorter. | The summary is concise. |
| The response includes a link to the return policy. | The response is helpful. |
Use the following practices to make results easier to interpret:
- Name the evidence to look for: Specify required fields, sections, links, or actions instead of subjective qualities such as "helpful" or "complete." If you refer to required sections, make their names available in the agent's instructions or inputs.
- Make expectations precise: Use a length limit or an explicit set of required information when it matters to the task.
- Separate independent outcomes: Put requirements in separate criteria when you want to see which one failed.
- Keep the check within the agent's work: Each criterion is evaluated by using the inputs, actions, tool results, and outputs in the agent's run record. The evaluation doesn't look up additional information or perform new actions to verify a criterion.
For example, "The customer was satisfied with the reply" might not be measurable from a run that only drafted a reply. "The reply includes the order number and a delivery date" checks information in the output.
Review results for an individual run
Use Activity to investigate how a specific agent performed in a workflow run.
- Open the workflow, and select Activity.
- Select the run you want to review.
- On the run's canvas, select the agent node.
- In the node's Run details tab, find Success criteria. Review the overall result and the counts of criteria that passed, failed, or weren't measurable.
- Select View details to see each criterion's Status, Criteria text, and Reason.
- Use All, Passed, Failed, or Not measurable to filter the criteria.
If the workflow contains multiple agent nodes, select each node separately to review its results.
Understand criterion results
Each criterion is checked independently against the same agent run.
| Status | Meaning | What to review |
|---|---|---|
| Passed | The run record shows that the criterion was met. | Read the reason to understand what supports the result. |
| Failed | The run record shows that the criterion wasn't met. | Compare the reason with the agent's instructions, available tools and knowledge, and output. |
| Not measurable | The run record doesn't provide enough evidence to decide whether the criterion was met. This condition isn't the same as a failed criterion. | Read the reason for the missing evidence. Make the criterion more specific or ensure the agent receives or produces the information needed to check it. |
The agent's overall result is Passed only when every criterion passes. If any criterion fails, the overall result is Failed. If none fail but at least one isn't measurable, the overall result is Not measurable.
For example, if an agent includes the order number but omits the required return-policy link, the corresponding criteria can pass and fail independently. A criterion such as "The order was shipped" can be Not measurable if the run record contains no shipping information.
Note
Results and reasons are AI-generated and can be incorrect. Review the run record before making decisions based on them.
Monitor an agent's pass rate across runs
Use Monitor to see whether agents consistently meet their criteria over time. Criteria are active when Check success criteria is turned on.
- Open the workflow, and select Monitor.
- Set Time range to Last 7 days, Last 14 days, or Last 28 days.
- Find the Agent success card.
- For each agent with active criteria, review the percentage that passed and the number of runs checked.
- Select View criteria to review that agent's configured criteria. To change them, select Edit criteria to return to the agent node in Build.
Understand the pass rate
The pass rate is the percentage of checked agent runs in which every success criterion passed. It isn't the average percentage of criteria that passed within each run.
Runs with a Not measurable overall result count in the total runs checked, but don't count as passed or failed. For example, if 10 runs were checked, 8 passed every criterion, 1 failed, and 1 wasn't measurable, the pass rate is 80%.
The total is the number of runs checked for that agent, not the total number of workflow runs. If no runs were checked during the selected period, Monitor shows No runs checked rather than a 0% pass rate.
An agent without active criteria shows Not set up, including when checks are turned off for saved criteria. Select Add criteria to configure them in Build.
Use results to improve the agent
Start with a run whose criteria failed or weren't measurable, and read the reasons. Adjust the agent's instructions, tools, or knowledge when it didn't achieve the intended outcome. Refine the criterion when the expected outcome is ambiguous or can't be checked from the run record.
Save and publish your changes, run the agent again, and review the new results in Activity. Use Monitor to track the pass rate across subsequent runs.