AI & prompting

What Is the Purpose of Agents in Copilot? Types and Examples

The purpose of agents in Microsoft Copilot is to extend Copilot for a specific job: an agent is a specialized AI assistant that you give instructions, knowledge sources and actions, so it can answer questions or complete tasks that general Copilot isn't set up for. In Microsoft's words, agents "extend the functionality of Copilot by acting as specialized AI assistants tailored to specific domains."

That is the short version. The rest of this article explains what an agent adds on top of ordinary Copilot, what it is made of, the two kinds Microsoft documents, and when you would use one. It reflects Microsoft Learn documentation as of November 2026. Product names and features change often in this area, so check the linked pages if something looks different on your screen. For background on the assistant itself, see how Microsoft Copilot works.

What is the purpose of agents in Copilot?

Microsoft 365 Copilot works across apps such as Outlook, Teams and Word, using your organization's data through Microsoft Graph. Microsoft's own documentation says that, although Copilot has strong built-in capabilities, organizations "often need to integrate additional knowledge, data sources, or applications to address specific use cases." Agents are how that gap gets filled.

The same page lists three reasons to build one:

  • Extend Copilot's knowledge by connecting third-party systems and data sources.
  • Automate complex, multi-step workflows across Microsoft 365 and external applications.
  • Deliver tailored user experiences that appear where people already work, such as Teams chats, Outlook or SharePoint.

Put plainly, general Copilot is built to help with almost anything in your Microsoft 365 tenant, and an agent is narrowed to one purpose. An IT helpdesk agent that answers @mentions in Teams, or a document summarization agent used in SharePoint, are the examples Microsoft gives. Because the agent is limited to a defined domain and a defined set of knowledge and tools, its behavior is easier to predict than that of an open-ended assistant.

Agents can do more than answer. Microsoft says they can "retrieve information, summarize data, or even take actions like sending emails or updating records." Its example is the Sales Agent, which can turn contacts into sales leads in Dynamics or Salesforce, set up meetings and contact customers, while accessing Microsoft 365 and enterprise data.

What an agent is made of

Microsoft describes two core components in every agent:

  • Knowledge: specialized instructions and data sources that shape the agent's answers.
  • Actions: actions, triggers and workflows that automate business processes.

Three layers sit around those components. The orchestrator is the central engine that manages how the agent uses knowledge, skills and autonomy. The foundation models provide the reasoning, language understanding and response generation. The user experience layer places the agent inside Microsoft 365 apps or external platforms.

This lines up with the general idea of an AI agent as a model with instructions and tools running in a loop. If that is new to you, what an AI agent is covers the concept without any Microsoft specifics.

The two types of Copilot agents

Microsoft documents two ways to build agents for Microsoft 365 Copilot. The choice decides who runs the orchestrator and models, and how much you control.

Declarative agents

A declarative agent configures Copilot itself for a scenario. You supply three things: custom instructions, custom knowledge (for example Teams messages, SharePoint, OneDrive or external data through Microsoft 365 Copilot connectors) and custom actions that call APIs on external systems in real time. The agent uses Copilot's orchestrator and model, so no extra hosting is needed, and Microsoft says it follows Microsoft 365 security, compliance and Responsible AI requirements. Low-code tools such as Agent Builder in Microsoft 365 Copilot can create one.

Custom engine agents

A custom engine agent brings its own orchestrator and models. Microsoft describes these as fully customized AI assistants for complex workflows, orchestration or specific language models. They need hosting outside Microsoft 365, typically on a cloud service such as Azure at extra cost, and you are responsible for compliance, security and Responsible AI practices. In return they support proactive behavior and agent-to-agent communication, where agents delegate tasks to each other.

Declarative vs custom engine agents

The table below condenses Microsoft's own comparison.

FeatureDeclarative agentCustom engine agent
Orchestrator and modelsCopilot's ownYour choice
HostingHosted in Microsoft 365In Microsoft 365 with Copilot Studio, or external, such as Azure
Proactive actions without a user messageNot supportedSupported
Typical audienceIndividualsIndividuals or groups
Where it runsMicrosoft 365 appsMicrosoft 365 and external apps
Compliance and securityInherits Microsoft 365 standardsYou must provide your own

How Copilot Studio fits in

Copilot Studio is Microsoft's low-code studio for building and managing agents. Its documentation defines an agent as "an AI assistant that handles conversations and completes tasks": it follows your instructions, draws on the knowledge sources you connect and uses tools to take action. You can create one by describing it in plain language and test it before publishing. Agents built there can be published to channels such as Microsoft Teams, Microsoft Copilot, websites and mobile apps.

Copilot Studio also separates agents from workflows. A workflow is an automation built in a drag-and-drop designer, and the two can work together, for example a workflow calling an agent to complete one step. Everything you build runs on a "harness", the engine that carries out the work, and the harness you pick affects how it reasons, what it can do and how it is billed. The documentation lists the Microsoft Copilot harness, the Customer Conversation harness and the standard harness.

When should you use an agent instead of plain Copilot?

Use plain Copilot when the task is general: summarizing a meeting, drafting an email, asking about a document. Consider an agent when one of these applies:

  • The same specialized job comes up repeatedly, and you want fixed instructions and a fixed set of sources behind it.
  • The answer lives in a system Copilot does not read by default, and you need a connector or an action to reach it.
  • The work spans several steps or several applications and you want it automated.
  • You want a consistent assistant for a team, surfaced in Teams or SharePoint.

Microsoft's guidance is to build a declarative agent when you want to stay inside Copilot's orchestration and models for consistent security and compliance, want a faster build with little or no code, and your users work inside Microsoft 365 apps. Build a custom engine agent when you need custom orchestration, your own models, group collaboration in a Teams channel or meeting, proactive messaging, or availability outside Microsoft 365. Microsoft gives a loan approval agent with specific business rules and several credit check systems as an example of the second case.

Limits and costs to know about

An agent can only use the knowledge and actions you give it, so its quality depends on those inputs. Instructions that are vague, or knowledge sources that are out of date, produce vague or outdated answers. Agents that take actions, such as sending email or updating records, deserve the same caution as any tool with write access: grant only the permissions the job needs. Language models can also produce wrong answers with confidence, which is covered in why AI hallucinates.

Cost differs by type. Declarative agents need no extra hosting, while Microsoft says custom engine agents typically require hosting such as Azure at additional cost. Copilot Studio billing depends on the harness, and Microsoft points to its licensing pages for details, so check those for your own tenant before planning a rollout.

Frequently asked questions

Do I need to build agents to use Copilot?
No. Copilot works on its own without any agent. Microsoft's documentation says Microsoft and its partners offer prebuilt agents, and that you can also build your own with low-code or pro-code tools. Agents are an optional layer for jobs that general Copilot does not cover well, such as a team-specific workflow or a connection to an outside system.
What is the difference between a declarative agent and a custom engine agent?
A declarative agent runs on Copilot's own orchestrator and models, and you configure it with instructions, knowledge and actions. A custom engine agent brings its own orchestrator and models, needs its own hosting, and can act proactively without a user message. The first is quicker to build and inherits Microsoft 365 compliance. The second is fully customizable.
Can a Copilot agent act without me asking it?
It depends on the type. Microsoft's comparison table says declarative agents do not support proactive interactions and rely on user-initiated requests. Custom engine agents can trigger actions automatically, even without direct user input. Copilot Studio also says some agents can be given their own account so they can work proactively on tasks.
Where do Copilot agents run?
Declarative agents run in Microsoft 365 Copilot and in Microsoft 365 apps such as Teams, Word, Excel and Outlook. Custom engine agents can also run in Microsoft 365 apps, and they can be made available outside Microsoft 365 as well. Copilot Studio agents can be published to channels such as Teams, websites and mobile apps.

Sources