Lesson 1 of 3 Agents in Microsoft 365 and Foundry

Designing Agents in Microsoft 365 Copilot

This lesson explains the anatomy, authoring tools and design decisions for Microsoft 365 Copilot agents.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the parts of a declarative agent.
  • Choose an authoring tool for a builder and purpose.
  • Identify design decisions for scope, knowledge, actions and distribution.

Anatomy of a Microsoft 365 Copilot agent

A declarative agent for Microsoft 365 Copilot is defined by configuration that the platform reads at run time. The configuration has four parts: identity and behaviour (a name, description, instructions, conversation starters and constraints), knowledge (Microsoft 365 sources such as SharePoint sites and files, Teams messages, email and Copilot connectors, plus scoped web search over Bing-indexed content), capabilities (built-in capabilities such as code interpreter, custom skills in preview, and actions from MCP servers or REST APIs, and delegation to connected agents), and host and distribution metadata, which decides where the agent appears and who can install it.

The agent runs on Copilot's orchestrator and models, inherits Microsoft 365 security and compliance, and answers each user from content that user can access. A declarative agent therefore cannot reveal a document to a user who could not open it, but it will surface every document the user can open, which makes permission hygiene in SharePoint a prerequisite.

Choosing the authoring tool

Three tools create Microsoft 365 Copilot agents, aimed at different builders. The following table compares them.

ToolBuilderTypical agent
Agent Builder in Microsoft 365 CopilotBusiness usersA personal or team agent over a few SharePoint sites with instructions
Copilot StudioMakersAn agent with connectors, agent flows, broader knowledge and ALM through solutions
Microsoft 365 Agents ToolkitProfessional developersAn agent with API or MCP actions, defined in code and deployed through a pipeline

Agents created with Agent Builder suit individual and small-team needs and are quick to make, but they are not managed through Power Platform ALM. An agent intended for a whole department, with defined ownership, testing and release, is better built in Copilot Studio or the Agents Toolkit.

Design decisions

A design for a Microsoft 365 Copilot agent should settle the following questions.

  • Scope: which tasks the agent supports, expressed in its description and instructions, so that users and Copilot can tell when to use it.
  • Knowledge: the specific sites, libraries and connectors, chosen for quality and reviewed for oversharing.
  • Actions: which APIs or MCP servers the agent calls, with authentication that preserves user permissions.
  • Distribution: whether the agent is shared with specific users, published to the organization through the agent catalogue after administrator approval, or kept personal.
  • Governance: ownership, review and lifecycle, with administrators able to see and manage agents in the Microsoft 365 admin center and in Microsoft Agent 365.
Worked example

An agent for contract managers

A legal department of 40 contract managers, all with Microsoft 365 Copilot licences, wants an agent that answers questions from the department's approved clause library in SharePoint and creates a contract review request in the department's matter management system, which has a REST API. The agent must be tested and released under the company's change process. What should you recommend?

A declarative agent fits, because the users are licensed employees working in Microsoft 365 and Copilot's reasoning is sufficient for clause questions. Because the agent needs an API action and a controlled release, it should be built in Copilot Studio or with the Agents Toolkit rather than Agent Builder. Knowledge is limited to the approved clause library, the matter system is reached through an API action with each user's credentials, and the agent is distributed to the legal department after administrator approval.

Check yourself

Which authoring tool suits a business user creating a quick team agent over a few SharePoint sites?

Show answer

Agent Builder in Microsoft 365 Copilot. Copilot Studio and the Agents Toolkit suit managed, department-wide agents.

Exam Tips

Remember for the exam

  • Declarative agents combine identity and behaviour, knowledge, capabilities and distribution metadata.
  • Agent Builder suits business users; Copilot Studio and the Agents Toolkit suit managed, department-wide agents.
  • Agents answer from what each user can access, so permission hygiene is a prerequisite.
  • Administrators manage agents in the Microsoft 365 admin center and Agent 365.