AI agents that work in Microsoft Teams

In companies that run on Microsoft 365, Teams is where requests arrive and decisions are made. The data behind those decisions sits in SharePoint, Dynamics, an ERP or a line-of-business app. Gepton builds custom AI agents that live in Teams chats and channels, built with the Teams SDK and Microsoft 365 Agents SDK and connected through Microsoft Graph and your own systems. They answer questions, collect approvals and follow up after meetings, under your Entra ID and Teams admin policies.

What we build in Microsoft Teams

Agents designed around how your team already works in Microsoft Teams, built and tested in a sandbox first.

  • Internal help desk in Teams

    Answers HR, IT and policy questions from approved SharePoint sites and systems, cites the source document, and raises a ticket when it cannot answer.

  • Approvals with Adaptive Cards

    Sends purchase, expense, leave or access requests as Adaptive Cards with the key details, records the decision and updates the system of record.

  • Meeting follow-ups

    After a meeting, drafts action items and owners from the transcript where policy allows, and creates tasks in Planner or your project tool for confirmation.

  • Request intake from channels

    Reads a requests channel, asks for missing details, classifies each request and creates a ticket in ServiceNow, Jira or your helpdesk.

  • Line-of-business lookups

    Answers questions about orders, stock, invoices or cases by querying your ERP or CRM, so staff do not switch to another app for a quick check.

  • Frontline shift and task updates

    Posts shift changes, task lists and safety notices to frontline teams and collects acknowledgements.

How it connects. Official APIs, the narrowest access.

Access is governed by Microsoft Entra ID: admins consent to the app's Graph permissions and control installation through Teams app policies. We design so that agents use delegated or resource-specific consent where possible, avoid tenant-wide application permissions unless clearly needed, and log every action they take in other systems. Content sent to a model is limited to the task. Your Microsoft 365 retention and compliance settings still apply. This page describes independent integration work on Microsoft's public APIs and does not imply a partnership with or endorsement by Microsoft.

Systems the agent uses (example)
4 systems
  • Microsoft TeamsInternal help desk in Teams
  • Google CalendarUsed by the meeting prep and follow-up agent
  • Salesforce CPQUsed by the deal desk quote assistant
  • SlackUsed by the HR policy helpdesk agent

From sandbox to your live Microsoft Teams

A fixed-scope plan first, then weekly releases you can test.

  1. 1

    Register the app in Entra ID

    We register the agent in Microsoft Entra ID with the least Microsoft Graph permissions needed, preferring delegated or resource-specific consent over broad application permissions.

  2. 2

    Build with the Teams SDK

    The agent is built with the Teams SDK or Microsoft 365 Agents SDK, hosted on Azure Bot Service or your infrastructure, and can call MCP servers for your own systems.

  3. 3

    Test in a developer tenant

    We test in a separate Microsoft 365 developer tenant or test team, run evaluation cases, and handle Graph throttling with retries and backoff.

  4. 4

    Publish through your admin

    Your Teams admin approves the app in the Teams admin center and controls who can install it. We roll out to a pilot group first.

How agents connect to Teams

A Teams agent is a Teams app with a bot. Microsoft's Teams SDK, formerly the Teams AI Library, is generally available for JavaScript and C# and in preview for Python, and it supports MCP and agent-to-agent communication. The Microsoft 365 Agents SDK lets the same agent run in Teams, Microsoft 365 Copilot and other channels. Adaptive Cards provide buttons and forms for approvals.

Data comes from Microsoft Graph for Teams, SharePoint, Outlook and OneDrive, and from your own systems through APIs or MCP servers. Graph permissions are either delegated, acting as the signed-in user, or application, acting as the app. Resource-specific consent lets a team owner grant an app access to one team or chat instead of the whole tenant, which is often the right choice for agents.

Throttling

Microsoft Graph applies service-specific throttling limits, and Teams messaging endpoints are among the tighter ones. When a limit is reached, Graph returns HTTP 429 with a Retry-After header. We design agents to respond to change notifications instead of polling, batch requests, and back off correctly. Bots that post messages are also rate limited per conversation, so agents that notify many people use a queue rather than sending everything at once.

What stays read-only

By default the agent reads the chats and channels it is installed in and the SharePoint sites you approve, and writes messages and cards. Actions in other systems are logged. Reading mail or files across the tenant, changing team membership or deleting content are out of scope unless there is a specific, approved need.

How this fits with Microsoft Copilot

Microsoft 365 Copilot and Copilot Studio are Microsoft's own AI tools. Copilot works across a user's Microsoft 365 content, and Copilot Studio lets teams build agents with low-code tools and connectors. Microsoft's Agent 365, generally available since May 2026, gives IT a way to manage agents and their MCP connections. If you use these, a custom agent complements them: it handles processes that need your own systems, code or models, and it can be published so that Copilot and Agent 365 can see and govern it. Access governance is covered in agent access governance.

AI agents and Microsoft Teams in depth

The parts of a Teams agent

A Teams agent is made of pieces that live in different places, and knowing which is which helps when your IT team reviews it. The app package is a manifest plus icons that your Teams admin uploads or approves; it declares the bot, any message extensions and the permissions requested. The bot registration in Azure Bot Service connects Teams to your bot's messaging endpoint. The Entra ID app registration gives the agent an identity for calling Microsoft Graph. The agent service itself, which holds the logic, model calls, tools and logs, runs in your Azure subscription or another environment you choose.

Messages from users reach the bot through the Bot Framework protocol. Data about files, sites, calendars or channel messages comes from Microsoft Graph. Data from your ERP, CRM or helpdesk comes through their own APIs or MCP servers, each with separate credentials held in Azure Key Vault or your secrets manager.

Graph permissions are where most security reviews focus, so we document every one with the reason it is needed.

Permission modelActs asWhen we use it
DelegatedThe signed-in userAnswering a user from files and sites that user can already open
Resource-specific consentThe app, within one team or chatReading messages in a requests channel the team owner approved
ApplicationThe app, across the tenantRarely; only with a written reason and admin consent

Where an application permission is unavoidable, such as reading one SharePoint site in the background, Graph's selected-sites permissions can limit the app to named sites instead of all of them. Authentication to Entra ID uses a certificate or a managed identity rather than a client secret where your setup allows it, because certificates and managed identities are harder to leak and easier to rotate.

A worked example: expense approvals with Adaptive Cards

Example: an employee uploads a receipt in a chat with the agent.

  1. The agent extracts vendor, date, amount and GST details from the receipt and asks the employee to confirm them in an Adaptive Card.
  2. It checks the claim against your expense policy and the employee's cost center, and notes anything unusual.
  3. It sends a proactive message to the manager with an Adaptive Card showing the claim, the policy check and Approve or Reject actions.
  4. The manager's choice comes back to the bot as an action from an identified user. The agent checks that this user is the right approver and records the decision.
  5. Only after approval does the agent create the claim in your finance system and update the card for both people so nobody approves it twice.

Proactive messages need the app to be installed for the recipient, so the rollout plan includes installing the app for approvers through Teams app setup policies.

Audit logging across Teams and your systems

Microsoft Purview's audit log records many Teams and Graph activities, such as app installs, consent grants and file access, depending on your licensing and audit settings. The agent's own log adds the parts Purview cannot see: what the user asked, which tools the agent called, what it proposed and who approved. We include correlation IDs in both, so a security analyst can follow a single request from the Teams message to the record created in your ERP. Logs go to your Log Analytics workspace or SIEM, with retention you set.

Throttling, change notifications and reliability

Instead of polling a channel or a mailbox, the agent subscribes to Graph change notifications. Subscriptions expire and must be renewed, and notifications can arrive more than once or out of order, so the agent renews on a schedule, tracks what it has processed and reads the current state before acting. When Graph throttles a request, it responds with a Retry-After value, and the agent waits exactly that long. Graph's JSON batching groups several reads into one request, which reduces round trips for agents that gather context from many sources.

Testing in a developer tenant and rolling out

We test in a separate Microsoft 365 developer or test tenant where possible, uploading the app as a custom app so it never appears in your production catalog early. Test users cover requesters, approvers, delegates and people outside the pilot group, so we can confirm the agent refuses requests it should not handle. The evaluation set includes vague questions, policy edge cases and documents the user should not be able to see.

For production, your Teams admin publishes the app to the org catalog and uses permission and setup policies to limit it to a pilot group. We widen in stages, with an owner on your side and a short weekly review of answers and approvals. Have ready: a Global or Application Administrator for consent, a Teams administrator, the SharePoint sites and systems the agent may use, and approval rules in writing. Related pages: HR agents, IT help desk agents and the Slack version for teams on Slack.

Questions about AI agents and Microsoft Teams

Something else? Send us your question and an engineer replies with next steps.

Should we build this in Copilot Studio instead?

Copilot Studio is a good fit for simpler agents built on Microsoft connectors. A custom agent built with the Teams SDK or Agents SDK suits work that needs your own code, systems without connectors, or specific models. We help you decide during discovery.

What Graph permissions will the agent need?

Only what the task requires. We prefer delegated permissions and resource-specific consent. Any application permission is listed with a reason so your admin can review it before consenting.

Do we need Microsoft 365 Copilot licenses?

No, a Teams agent works without them. If you have Copilot, the agent can also be made available there through the Agents SDK.

Where does the agent run?

Usually in your Azure subscription on Azure Bot Service and your own compute, or in another cloud you choose. Credentials and logs stay in your environment.

Can it read meeting transcripts?

Only where your policies allow transcription and the app has the right consent. We check this with your compliance team before building any meeting feature.

Can a Teams agent send a message to someone who has never chatted with it?

Only if the app is installed for that person or in a team they belong to. Teams requires an installation before a bot can start a conversation. For approval flows, we ask your Teams admin to install the app for approvers through an app setup policy, so the agent can reach them when a request arrives. We then store the conversation reference needed to message them later.

How do you limit a Teams agent to specific SharePoint sites?

We prefer delegated access, so the agent sees only what the signed-in user can open. Where the agent must read in the background, Microsoft Graph's selected-sites permissions let an admin grant the app access to named sites only, rather than every site in the tenant. We list each site and the reason for access in the documentation your admin reviews.

Will the agent's activity show up in Microsoft Purview?

Many Teams and Graph actions, such as app installs, consent grants and file access, appear in the Purview audit log depending on your licensing and audit settings. The agent also keeps its own log of questions, tool calls, proposals and approvals, with correlation IDs that match its Graph calls, so your security team can trace one request end to end.

Do we need Azure to run the agent?

Azure Bot Service is the usual way to register a Teams bot, and it is simplest to run the agent in your Azure subscription. The agent's code can run elsewhere, such as another cloud or your own servers, as long as Teams can reach its messaging endpoint securely. We discuss the trade-offs, including where logs and model calls are processed, during discovery.

Jump to

↑↓ to move↵ to open