Optimizing Solutions with Agents in Teams and SharePoint
This lesson explains SharePoint agents and agents in Teams, and how they simplify solution designs.
Learning outcomes
After completing this lesson, you will be able to:
- Describe SharePoint agents and their scope.
- Describe where agents work in Teams.
- Choose the lightest Microsoft 365 agent option for a need.
SharePoint agents
Every SharePoint site can have agents scoped to its content. A site's ready-made agent answers questions about that site, and users with the appropriate licence can create agents scoped to selected sites, libraries, folders or files, with their own instructions. These agents are stored as files in the site, can be shared with colleagues and in Teams chats, and site owners can designate approved agents for their site. Because a SharePoint agent's knowledge is exactly the content it is scoped to, it is the simplest way to give a team a focused assistant over its documents.
SharePoint agents are well suited to knowledge that already lives in a well-maintained site, such as a project site, a policy library or a product documentation library. They are less suited to tasks that need actions in other systems or content spread across many sources, which call for a declarative agent or a Copilot Studio agent.
Agents in Teams
Teams is a channel for most agent types. Copilot Studio agents and declarative agents can be published to Teams for one-to-one chat. Some agents work in group contexts: agents can be added to group chats and channels, and Microsoft provides agents for meetings, such as an agent that takes notes and tracks action items during a meeting. Custom engine agents built with the Microsoft 365 Agents SDK or Copilot Studio can take part in group conversations and send proactive messages, which declarative agents cannot.
Designing for Teams means deciding where in Teams the agent is most useful. An agent that a whole project team uses together belongs in the team's channel; an agent that helps individuals with personal tasks belongs in one-to-one chat; an agent that supports meetings belongs in the meeting experience.
Optimizing a design with Microsoft 365 agents
Using Microsoft 365 agents can simplify a solution: instead of building a custom portal, the agent appears where people already collaborate, and it inherits permissions from Microsoft 365. The following table shows how common needs map to the lightest suitable option.
| Need | Lightest suitable option |
|---|---|
| A team wants answers from its own project site | The site's SharePoint agent or a SharePoint agent scoped to key libraries |
| A department wants a focused assistant over several sites with instructions | Declarative agent |
| A project channel needs an agent that posts daily risk updates | Custom engine agent with proactive messaging, published to the channel |
| Meetings need notes and action items | Microsoft's meeting agent |
| Employees need help that combines HR documents and actions in the HR system | Copilot Studio agent published to Teams and Microsoft 365 Copilot |
Licensing and oversharing apply throughout: SharePoint and declarative agents depend on users' Microsoft 365 Copilot licences or on pay-as-you-go billing, and every agent over SharePoint content exposes any overshared files, so a permissions review should precede broad rollout.
A construction project team
A construction company runs each project in a Teams team with a SharePoint site holding drawings, specifications and meeting minutes. Project members ask the same questions about specifications repeatedly, and the project manager wants a summary of open safety issues posted to the channel every Monday from the safety system. What should you recommend?
The specification questions are answered best by a SharePoint agent scoped to the specifications and minutes libraries, shared in the project channel, because the content already lives in the site. The weekly safety summary needs proactive behaviour and data from the safety system, which a SharePoint or declarative agent cannot provide, so it should be a custom engine agent, for example a Copilot Studio agent with a scheduled trigger and a connector to the safety system, posting to the channel. Before rollout, the project site's permissions should be reviewed so that commercially sensitive files are not exposed to all members.
Can a SharePoint agent post a summary to a Teams channel every Monday on its own?
Show answer
No. Proactive, scheduled messages need a custom engine agent, such as a Copilot Studio agent with a scheduled trigger.
Exam Tips
Remember for the exam
- SharePoint agents are scoped to site content and are the simplest focused assistant over documents.
- Agents can work in Teams chats, channels and meetings; proactive messages need a custom engine agent.
- Place the agent where the work happens: channel for teams, chat for individuals, meetings for meetings.
- Review SharePoint permissions before broad rollout of any agent over its content.