Microsoft Teams

People in your organization chat with an agent inside Teams, in a one-on-one chat, a group chat, or a team.

Updated

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:

  1. 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.
  2. 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.”
  3. 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

Connect Microsoft Teams

Bot details

Application (client) ID00000000-0000-0000-0000-000000000000
Directory (tenant) ID00000000-0000-0000-0000-000000000000

Organization links

Organization websitehttps://yourcompany.com
Privacy policyhttps://yourcompany.com/privacy
Terms of usehttps://yourcompany.com/terms

In AgentOS

NameMicrosoft Teams · Help desk
Agent that handles it (optional)Help desk
Who it servesOnly people in the organizationAnyone
Channel enabledOn
CancelConnect
  • 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:

  1. 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.
  2. 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.”
  3. 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.

↑ ↓ to move · Enter to open · Esc to close