Skip to content

Lesson 18 ยท Agents and Copilot Studio

What Are Copilot Agents?

Understand Copilot agents, declarative agents, Agent Builder and Copilot Studio, what instructions, knowledge and tools do, and when you really need an agent.

An agent is a focused assistant built for a particular job. Instead of explaining your rules and attaching your documents in every chat, you set them up once: instructions, knowledge and sometimes tools. Other people can then use the same helper. Microsoft describes agents as scoped or focused versions of Copilot that act as assistants and can automate business processes.

The general ideas behind agents appear in what are tools and the AI agents course.

The parts of an agent

Parts of an agent

Instructions How to behave
Knowledge What to read
Tools What it may do
Audience Who may use it
1 / 2
  • Instructions describe the job, rules, tone and what to do when unsure.
  • Knowledge is the material the agent can use, such as websites, SharePoint content or uploaded files.
  • Tools or actions let it do things, such as call a connector or run a workflow.
  • Audience is who can use it. Sharing changes the risk.

Two main ways to build

Agent Builder Copilot Studio
Where Inside the Copilot app A separate low-code web studio
Style Describe or configure Designers for agents and workflows
Good for Focused question-and-answer and drafting helpers Richer logic, actions and channels
Actions that call outside services Not authored here Added through tools

Microsoft calls agents made in Agent Builder declarative agents. You declare the instructions, knowledge and capabilities, and Copilot's own orchestration and models do the reasoning. If you outgrow Agent Builder, Microsoft documents copying an agent to Copilot Studio.

Microsoft also provides ready-made agents, such as Researcher and Analyst. Developers have further code-based options that this tutorial does not cover.

Licensing and billing

Agent access varies by license. As of December 2026, Microsoft says Copilot Chat includes declarative agents that are grounded in instructions and public websites, and that access to other custom agents is pay-as-you-go. The Premium license includes agents that use web and work data. Copilot Studio has its own billing, which depends on how you build. Check Microsoft's licensing pages and ask your admin before you share an agent with many people.

Do you need an agent?

Work through this list and stop at the first option that works:

  1. A normal prompt, for a one-off task.
  2. A saved prompt or template, when you repeat a task.
  3. A Notebook, for one project with a fixed set of sources.
  4. An agent, when many people ask similar questions from the same sources, or a job repeats with a clear pattern.
  5. Ordinary automation or software, when the rules are exact, such as "move files older than 90 days".

If you can write a rule exactly, a normal workflow is more predictable than a model.

A stand-in: an agent as data

Seeing an agent as a configuration helps you design it. This Python version is a pretend agent that routes by keywords. It shows the structure only, not how Copilot behaves.

Python Stand-in: an agent with instructions, knowledge and limits

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.

Notice three outcomes: it answers from knowledge, refuses an action and admits a gap. A real agent should handle all three well.

Risk grows with power

A read-only agent can give wrong answers. An agent with actions can do wrong things: send messages, change records or spend money. Add:

  • the fewest permissions possible;
  • human approval before meaningful actions;
  • logs that someone actually reviews;
  • an easy way to stop the agent.

This is the idea of human in the loop and permissions.

Write the job description first

Before you open any builder, fill in this page:

TEXT
Name:
Users:
Jobs it does (3 at most):
Jobs it refuses:
Sources, owner and update frequency:
What it says when unsure:
Who to contact:
Success measure:
Who reviews it, and when:

If you cannot fill in sources, owner and update frequency, the agent will slowly become wrong.

What an agent cannot fix

An agent does not make bad content good. If two policy documents conflict, the agent has no way to know which one your organization intends unless you tell it. If nobody owns a process, an agent will not create an owner. Fix the process and the documents first, then add an agent on top.

A worked decision

A team lead says: "We need an agent for holiday requests." Ask what people actually struggle with. If they cannot find the policy, a clear page or a read-only question-and-answer agent may be enough. If they need to submit requests, an existing HR system form is probably better than a new agent. If managers need a reminder about pending requests, ordinary automation can send it.

You might end with a small read-only agent that explains the policy and links to the HR form. It solves the real problem with the least risk, and you can add more later if evidence shows a need.

Write down why you chose that option, so that you can revisit the decision when needs change.

A decision not to build an agent is a perfectly good result of this exercise.

A common mistake is building an agent that "does everything". A narrow agent with clear sources is easier to test, trust and fix.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. What is a declarative agent in this lesson?

    You declare behavior and sources, and Copilot provides the reasoning.
  2. 2. Your rule is 'move files older than 90 days to an archive'. What is likely best?

    Exact rules are more predictable with normal automation.
  3. 3. What changes most when an agent gains actions?

    Actions change real things, so risk and oversight grow.

Summary

  • Agents combine instructions, knowledge, optional tools and an audience.
  • Agent Builder creates declarative agents; Copilot Studio supports richer solutions.
  • Licensing and billing differ, so check before you roll out.
  • Choose the simplest option that works.
  • Write the agent's job description and limits first.

Next: Building Agents in Agent Builder

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