Microsoft Teams
People in your organization chat with an agent inside Teams, in a one-on-one chat, a group chat, or a team.
On this page
With the Microsoft Teams channel, people in your organization chat with an agent without leaving Teams: in a one-on-one chat, a group chat, or a team, where it answers when mentioned. Each agent is a bot of your organization.
| Part | How often | Who |
|---|---|---|
| The bot in Microsoft | Once per agent | An admin of Entra ID and of an Azure subscription |
| The channel in AgentOS | Once per agent | An AgentOS admin |
| The agent in Teams | Once per agent | A Microsoft 365 admin |
Before you start: you need an Azure subscription (the bot's free plan works: Teams is a standard channel), and each person who chats with the agent needs a license that includes Teams.
1. Register the bot in Microsoft#
Once per agent, in the Microsoft Entra admin center and the Azure portal:
- Register the bot's app in Entra ID: “App registrations” › “New registration,” with “Single tenant only.” It's the bot's identity: it needs no permissions or secrets. Microsoft's guide: Register an application.
- Create the Azure bot: an “Azure Bot” resource with “Single Tenant” under “Type of App,” “Use existing app registration” under “Creation type,” and the registration's IDs in “App ID” and “App tenant ID.”
- Add the Teams channel: on the bot, under “Channels,” choose “Microsoft Teams,” accept its terms with “Agree,” and select “Apply.” Microsoft's guide: Connect a bot to Teams.
2. Connect the channel in AgentOS#
In AgentOSIntegrationsConnect a serviceMicrosoft TeamsConnect
Bot details
Organization links
In AgentOS
- Who it serves: with Only people in the organization, each person chats as themselves, with their permissions and in private; AgentOS recognizes them by the verified email on their AgentOS account. With Anyone, it serves every account in your directory, and those conversations belong to the organization.
- Notify an unlinked account and Notify if a response fails send a notice through Teams; left empty, they use the default text in your language.
- The three organization links go into the Teams app, which shows them to people.
AgentOS doesn't ask for a secret: it creates the bot's certificate, and its private key never leaves AgentOS.
3. Finish in Microsoft#
When you connect, AgentOS shows the three remaining steps:
- Upload the certificate to Entra ID: Download certificate and upload it to the bot's registration under “Certificates & secrets” › “Certificates.” On the channel's page, Test connection checks the bot and its certificate with Microsoft.
- Register the channel's address on the Azure bot: copy it with Copy address and paste it on the bot under “Configuration” › “Messaging endpoint”; select “Apply.”
- Add the app to Teams: Download Teams package and upload it in the Microsoft 365 admin center under “Agents” › “All agents,” with “Add agent”; publish it to the people who will use it. Microsoft's guide: Manage agents in Microsoft 365.
If the agent, its name, or the links change, download a new package and, in “All agents,” open the agent and update it in the Agent Store: the same agent is updated.
4. Chat with the agent#
Each person finds the agent in the Teams store, adds it, and writes to it. In AgentOS, the conversation lands in their space, marked “Received via Microsoft Teams,” and its runs say “Channel · Microsoft Teams.”
When the agent is about to do something that needs approval, it leaves the Approval pending card in the Teams chat, with what it's going to do and the Approve and Reject buttons. The same decision is in Pending approvals.