AI Integration With Microsoft 365 and Teams: Agents That Work Where Your Staff Already Are
If your staff spend much of the day in Teams chats, Outlook and SharePoint, an AI assistant in a separate browser tab with its own login has a problem. Some of them may never open it. That is the idea behind AI integration with Microsoft Teams and Microsoft 365: put the agent where the work already happens.
The good news is that Microsoft now gives you several ways to do this. The catch is that each one comes with different trade-offs on control, cost, licensing and security. This guide explains the options in plain English, using Microsoft’s own documentation as of November 2026, and ends with a rollout plan you can actually follow.
What AI integration with Microsoft Teams and 365 actually means
“Adding AI to Teams” can mean three quite different things:
- Using Microsoft 365 Copilot as it comes. Copilot is Microsoft’s own AI assistant. It works across apps like Copilot Chat, Outlook, Teams and Word, using your company data through Microsoft Graph, the service that connects Microsoft 365 data such as emails, chats and documents.
- Building an agent that extends Copilot. You give Copilot extra instructions, knowledge and actions for one job, such as answering HR policy questions.
- Bringing your own agent into Teams. You build the agent with your own logic and model, then make it available inside Teams and other Microsoft 365 apps.
Microsoft calls an agent a specialised AI assistant for a specific domain (our AI agent glossary entry explains the idea in more depth). In its words, agents “can retrieve information, summarize data, or even take actions like sending emails or updating records.” The rest of this guide is about choosing between options 2 and 3, because that is where most of the design decisions sit.
The two ways to build an agent for Microsoft 365
Microsoft’s guide to agents for Microsoft 365 Copilot describes two approaches. Both can appear inside Teams, but they are built and run very differently.
Declarative agents: configure Copilot for one job
A declarative agent is Copilot with a job description. You provide custom instructions, custom knowledge (such as SharePoint, OneDrive or Teams messages) and custom actions that call your other systems through their APIs. Copilot’s own orchestrator (the part that decides what to do next) and its own models do the rest.
Because it runs on Copilot’s infrastructure, Microsoft says a declarative agent needs “no additional hosting.” It also inherits Microsoft 365’s security, compliance and Responsible AI standards. Declarative agents run in Microsoft 365 Copilot and in apps like Teams, Word, Excel and Outlook.
Custom engine agents: bring your own brain
A custom engine agent uses your own orchestration and your own choice of model. Microsoft lists foundation large language models, small language models, fine-tuned models and industry-specific models as options. You get full control over the workflow and the logic.
The trade-off is responsibility. Custom engine agents usually need hosting outside Microsoft 365, typically on a cloud service such as Azure, “at an additional cost.” You must also make sure the agent is compliant, secure and follows responsible AI practices yourself.
Declarative vs custom engine agents: side by side
This table condenses Microsoft’s own comparison.
| Declarative agent | Custom engine agent | |
|---|---|---|
| Best for | Focused scenarios inside Microsoft 365 | Complex workflows or advanced integrations |
| Model and orchestration | Copilot’s own | Your choice |
| Hosting | Hosted in Microsoft 365 | Your own cloud, or Microsoft 365 with Copilot Studio |
| Who uses it | Designed for individuals | Individuals and group collaboration |
| Proactive messages | Not supported | Supported |
| Channels | Microsoft 365 apps | Microsoft 365 and external apps |
| Compliance and security | Inherits Microsoft 365 standards | Your responsibility |
Two rows matter more than they look. Proactive messages means the agent can start a conversation or trigger a workflow without someone asking it first, such as posting a morning alert. Group collaboration means several people can work with the same agent in a Teams channel or meeting. Microsoft lists both as custom engine strengths: declarative agents don’t support proactive messages, and they’re designed for individual use rather than group collaboration.
Which one fits your use case?
Microsoft’s guidance gives clear examples. Here is how we would read them.
Choose a declarative agent when
- The work happens inside Microsoft 365 apps, and people want to stay in them. Microsoft’s example is “an IT helpdesk agent that responds to @mentions in Teams.”
- You want a faster build, with low-code tools or a streamlined pro-code option.
- You want the agent to stay inside Copilot’s security and compliance boundary.
- The job is mainly answering questions from approved company knowledge, with a few simple actions.
Choose a custom engine agent when
- The rules are strict. Microsoft’s example is a loan approval agent with specific business rules and several credit check systems to consult.
- You need your own model, for example a domain-specific or multimodal model.
- The agent serves a whole team in a Teams channel or meeting, not one person at a time.
- It needs to act on its own, with proactive messages and triggers.
- You already have an assistant outside Microsoft 365 and want to bring it into Teams, or you also need it outside Microsoft 365.
A simple test: if you can describe the job as “answer questions about X from these documents, and occasionally do Y,” start with a declarative agent. If the description includes “always check A before B,” “post to the channel when C happens,” or “use our own model,” you are in custom engine territory. Before building anything, it is also worth checking whether an agent your organisation has already approved can do the job.
Licensing and cost: what to check first
Licensing decides who can use the agent and what you pay, so check it before you build. This is how Microsoft’s licensing and cost guide describes it as of November 2026. Microsoft changes licensing often, so confirm current terms with your Microsoft account team or licensing partner.
- Two licence options. Microsoft 365 Copilot Chat is included in your Microsoft 365 subscription “at no additional charge.” The Microsoft 365 Copilot add-on licence adds the embedded Copilot features in Word, Excel, Outlook and Teams.
- Declarative agents need users to have either the Copilot add-on licence or access to Copilot Chat through an eligible Microsoft 365 licence. For users without a Copilot licence, where usage-based billing is turned on, agents that only use instructions or public websites don’t incur extra costs. Agents that read shared company data, such as SharePoint, generate usage-based charges, metered in Copilot Credits.
- Custom engine agents don’t require users to have a Copilot licence to use them in Copilot Chat. Usage charges can still apply for users without one if the agent reads shared company data. Hosting usually costs extra, for example on Azure, though agents built in Copilot Studio are included for users with the Copilot add-on licence.
In our view, the cost question to ask is not “which agent type is cheaper?” but “how many people will use it, and which licences do they already have?” For example, an agent for 20 managers who already have Copilot licences and one for 2,000 frontline staff on basic licences can have very different bills.
Security and permissions: the part to get right first
Here is the most important sentence in Microsoft’s Copilot privacy documentation: Copilot “only surfaces organizational data to which individual users have at least view permissions.”
That is good news and a warning at the same time. Copilot won’t show anyone a document they couldn’t already open. But if a salary spreadsheet was shared with “everyone in the company” years ago, an AI assistant can surface it much faster than a curious employee would. Microsoft itself says it is important to use the permission models in services like SharePoint so the right people have access to the right content.
Fix the permissions before you add the agent. In practice that means a short clean-up project on your most sensitive SharePoint sites and Teams before launch. A few other points from the same documentation are worth knowing:
- Prompts, responses and data accessed through Microsoft Graph “aren’t used to train foundation LLMs.”
- Admins can see the permissions and data access each agent needs in the Microsoft 365 admin center, and they choose which agents are allowed in the organisation.
- Copilot honours the usage rights on content encrypted with Microsoft Purview Information Protection, such as files with sensitivity labels.
With a custom engine agent, these protections don’t come for free. Your agent must check what each user is allowed to see, keep data inside the right boundary and log what it does. That is real engineering work, and it should be in the plan and the budget from day one.
Building a custom agent for Teams: what the Agents SDK does
If you take the custom engine route, Microsoft’s main developer tool is the Microsoft 365 Agents SDK. Microsoft describes it as “the plumbing layer” between a user sending a message and the logic you built to answer it.
It solves three practical problems:
- One agent, many places. You write the agent logic once, and the SDK handles each channel’s message format, whether that is Teams, Microsoft Copilot, a website or a non-Microsoft tool like Slack.
- No lock-in to one AI service. The SDK is “AI-agnostic by design.” You plug in whichever model or orchestration library you prefer, so changing AI provider later doesn’t mean rewriting how the agent talks to Teams.
- Conversation memory. It tracks state across turns, so the agent can handle follow-up questions and conversations that pause and resume.
It supports C#, JavaScript and Python. What it isn’t matters just as much: Microsoft says it “isn’t an AI model, an orchestration engine, or a no-code builder.” The intelligence, the business rules and the connections to your other systems are still yours to design and build. In our view, that is where most of the effort in a custom agent goes, and it is the part our AI agent development service focuses on.
A practical rollout plan
Here is how we would approach a first Microsoft 365 or Teams agent. It is guidance, not a fixed recipe.
- Pick one workflow. Choose a frequent, well-understood job, such as IT helpdesk questions or a sales team’s pricing questions. Write down what a good answer looks like.
- Check the data and permissions. List the SharePoint sites, Teams and systems the agent will use. Fix oversharing before anything else.
- Check the licences. Who will use it, and which licences do they already have? This often decides the agent type.
- Start declarative if it fits. If the job is mostly “answer from these sources,” a declarative agent is the fastest way to learn what users actually ask.
- Move to a custom engine when you hit a wall, such as strict business rules, group use in a channel, proactive alerts or your own model.
- Launch to a pilot group. Get admin approval, give it to one team first, and review a sample of real conversations each week.
- Measure and widen. Track whether people use it, whether answers are correct and whether the job gets faster. Widen access only when those hold.
Mistakes we would avoid
- Launching to everyone on day one. One wrong answer in a company-wide channel costs more trust than a month of pilot testing.
- Skipping the permissions clean-up. The agent is only as safe as the sharing settings underneath it.
- Building custom when declarative would do. A custom engine adds hosting, security and maintenance work. Use it when you need it, not by default.
- Forgetting the systems outside Microsoft 365. The useful answers often live in your ERP, CRM or databases. Plan those connections early; our enterprise AI integration guide covers the common patterns.
Frequently asked questions
Do all users need a Microsoft 365 Copilot licence?
Not always. As of November 2026, declarative agents need either the Copilot add-on licence or Copilot Chat access through an eligible Microsoft 365 licence. Custom engine agents don’t require a Copilot licence, though usage charges can apply for unlicensed users when the agent reads shared company data. Check current terms with Microsoft before you commit.
Can we use our own AI model in Teams?
Yes, with a custom engine agent. Microsoft lists foundation, small, fine-tuned and industry-specific models as options, and the Agents SDK lets you plug in whichever AI service you prefer.
Can an agent post in a Teams channel without being asked?
Only a custom engine agent. Microsoft’s comparison says declarative agents don’t support proactive interactions and rely on users to start the conversation.
Will the agent see documents a user isn’t allowed to open?
Copilot only shows each user data they already have permission to view, and declarative agents run on Copilot’s infrastructure. A custom engine agent has to enforce this itself, so make it a requirement in the design.
Does the same agent work in Outlook and Word?
Both agent types can run in Microsoft 365 apps beyond Teams. Microsoft lists Teams, Word, Excel and Outlook for declarative agents. Test the agent in each app you plan to support, because the experience can differ.
Where to start
Pick the one question your staff ask most often in Teams, the one that pulls someone away from their work to answer. That question, and the documents and systems behind it, is your first agent.
AINinza is the AI practice of Aeologic Technologies, backed by 10+ years of engineering at Aeologic. Our AI integration and deployment services help you choose the right route, connect the systems behind it and roll it out safely. If you would like a second opinion on your Microsoft 365 plans, talk to us.

