Skip to content

Lesson 20 ยท Agents and Copilot Studio

Copilot Studio Basics

Meet Copilot Studio: agents, workflows, agent flows, harnesses, topics, knowledge and tools, and learn to design a first agent that takes safe, checked actions.

Microsoft Copilot Studio is a graphical, low-code studio for building and managing agents and workflows. Use it when you need more than Agent Builder offers: tools that act in other systems, designed conversations, more publishing channels or stronger lifecycle control. It is a separate web app with its own licensing and billing, so check with your admin first.

Copilot Studio changes quickly. The facts here match Microsoft Learn as of December 2026, and preview features may change or disappear.

The building blocks

Block What it is
Agent An assistant that handles conversations and completes tasks using instructions, knowledge and tools
Workflow A drag-and-drop automation whose steps can combine agents, tools and logic, with testing and human-in-the-loop controls
Agent flow The established flow format, similar to Power Automate; it runs on its own or attaches to an agent as a tool

Microsoft also lists an app creation experience that is in preview.

Harnesses

A harness is the engine that carries out what you build. Microsoft says the choice affects how it reasons, what it can do and how it is billed. As of December 2026, the documentation lists three:

  • the Microsoft Copilot harness, for reasoning-heavy, multistep work and business processes;
  • the Customer Conversation harness, for agents that help customers by voice and chat;
  • the standard harness, for rule-based agents and structured conversations.

In the standard harness you design topics: portions of a conversation with connected steps, questions and conditions. When a request falls outside your topics, the agent can still generate an answer from its connected knowledge. Compare billing and features in the official pages before you choose, because moving later may cost effort.

Knowledge and tools

Knowledge sources can include files, websites, Dataverse data and non-Microsoft apps. Tools let agents act, for example through prebuilt or custom connectors, agent flows, MCP servers or REST API calls. If MCP is new to you, see Model Context Protocol.

Every tool is a power you give away. Before you add one, write this down:

TEXT
Tool name:
Reads or writes?
What can go wrong?
Who may trigger it?
Needs human approval?  yes / no
How to undo:
Where is it logged?

Design a first agent

Pick a small, low-risk job, such as "answer IT questions and prepare a ticket". Plan the flow before you build:

flowchart TD
  A["User asks"] --> B{"Can knowledge answer?"}
  B -- yes --> C["Answer with source"]
  B -- no --> D["Collect ticket details"]
  D --> E["Show draft to user"]
  E --> F{"User confirms?"}
  F -- yes --> G["Create ticket"]
  F -- no --> D

Nothing is written to the ticket system until the user confirms.

A stand-in: confirm before writing

This simulation shows the pattern: collect fields, show a summary and act only after an explicit "yes". It is not Copilot Studio code. Real agents are configured in the studio's designers.

Python Stand-in: ask for confirmation before creating a ticket

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Only one ticket is created. Invalid input and an unclear confirmation both stop the action. Put important validation in the tool or flow, not only in instructions, because a model can misread a request.

Instructions and tool descriptions

The writing rules from Agent Builder apply here: purpose, tasks, tools and when to use them, format, limits and failure behavior. Name tools clearly and describe when to call them, because an agent selects tools partly from their descriptions. See designing good tools.

TEXT
Tool: create_ticket
Use only after the user has seen the draft and answered "yes".
Do not use it to answer questions.
Inputs: summary (required), priority (low, normal or high).

Environments and teamwork

Copilot Studio work lives in Power Platform environments, which have their own settings and policies. Ask your admin which environment to use for learning. Do not experiment in a production environment with real customer data. For larger work, plan who may edit, how you keep versions and how changes move from test to production.

Identity and permissions

Decide whose permissions each tool uses. A tool that runs with each user's sign-in can respect their access. A shared connection may give every user the maker's access. Microsoft documents Microsoft Entra authentication as a default for some channels, and says that with no authentication the agent cannot use tools with user credentials. Review these choices with your security team before you publish.

Conversation design

Good agents guide a conversation without trapping the user. Plan for these moments:

  • Unclear requests: ask one specific question, not five at once.
  • Missing details: say which detail you need and why.
  • Corrections: let the user change an earlier answer before an action runs.
  • Dead ends: offer a person or another route.
  • Out of scope: say so plainly and point to the right place.

Write short sample conversations before you build. Include one where the user is vague, one where the user changes their mind and one where the system the tool calls is unavailable. Each sample becomes a test later.

When a tool fails

Real systems fail. A connector may time out or return an error. Decide what the agent says then. It should not claim success. A good message is honest and useful:

TEXT
I could not create the ticket because the ticket system did not respond.
Nothing was saved. Please try again later or use the support form.

Also think about repeated attempts. If a request times out, the ticket may still have been created. A flow that blindly tries again could create two. Ask the owner of the target system how to detect duplicates before you let an agent retry any action that changes data.

The classic mistake is testing an agent with your own admin rights and assuming that users will see the same results. Test with an account that has ordinary permissions.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. What is a harness in Copilot Studio?

    Microsoft says the harness shapes reasoning, features and billing.
  2. 2. Where should important validation for a ticket tool live?

    Flows and tools can enforce rules, while instructions are guidance.
  3. 3. Why test with an ordinary user account?

    Testing with admin rights can hide access problems.

Summary

  • Copilot Studio builds agents, workflows and agent flows in a low-code studio.
  • The harness choice affects features and billing.
  • Tools let agents act, so document risk, approval and undo.
  • Confirm before writing, and validate in the tool or flow.
  • Check identity, environment and permissions.

Next: Testing, Publishing and Governing Agents

Your progress is saved in this browser. No account needed.