For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate with Platform: Microsoft Teams

Pre-Connection Checklist

  • An "AI Assistant" has been created on the MaiAgent platform

  • You have a Microsoft 365 account (Enterprise or Education edition)

  • You have an Microsoft Azure Portal account with admin permissions

  • You have application registration permissions in Microsoft Entra ID (formerly Azure AD)


Step 1: Create a Bot Resource in Azure

1. Create an Azure Bot

Sign in to the Azure Portal, search for AI Foundry (or Bot Services), find Azure Bot, and click Create.

2. Fill in the Bot Creation Form

Field
Description

Bot handle

Enter a unique Bot name (e.g., MaiAgentTeamsBot)

Subscription

Select your Azure subscription

Resource group

Select an existing or create a new resource group

Pricing tier

F0 (Free) is recommended

Microsoft App ID

Select "Create new Microsoft App ID" or use an existing one

Click Review + create, then confirm and click Create.


Step 2: Obtain the App ID and Password

1. Obtain the Microsoft App ID

After creation, go to the Azure Bot resource and click Configuration to find the Microsoft App ID. Copy it for later use.

2. Create a Client Secret

Click Certificates & secrets (or find the corresponding App in Microsoft Entra ID → App registrations), click New client secret, set the description and expiration, then click Add.


Step 3: Configure API Permissions

1. Go to App Registrations

Search for Microsoft Entra ID in the Azure Portal, go to App registrations, and find the application corresponding to the Bot.

2. Add API Permissions

Click API permissions in the left menu, then click Add a permission.

3. Select Microsoft Graph

Select Microsoft GraphApplication permissions, search for User.Read.All, check it, and click Add permissions.

Return to the API permissions page and click Grant admin consent for {Organization Name}.


Step 4: Create a Teams Chat Platform in MaiAgent

1. Go to Connect Chat Platform

Click Chat Platforms in the MaiAgent left menu, click Connect Chat Platform, and select Azure Bot (i.e., Microsoft Teams).

2. Enter Basic Settings

Field
Description

Name

Give this connection a name (required)

AI Assistant

Select the AI Assistant to bind

Microsoft App ID

Paste the Application ID obtained in Step 2 (required)

Microsoft App Password

Paste the client secret obtained in Step 2 (required)

3. Save and Obtain the Webhook URL

Click Connect Chat Platform to complete the setup. The system will generate a Webhook URL — copy it for later use.


Step 5: Return to Azure to Configure the Messaging Endpoint and Channel

1. Configure the Messaging Endpoint

Return to the Azure Bot resource, go to Bot profile (Configuration), paste the Webhook URL generated by MaiAgent into the Messaging endpoint field, and click Apply.

2. Enable the Microsoft Teams Channel

Click Channels in the left menu and confirm that the Microsoft Teams channel is enabled and the status is Healthy.


Step 6: Install the Bot in Teams

Method 1: Upload via Teams Admin Center

To make the Bot available to all users in the organization, upload the App Manifest through the Teams Admin Center:

  1. Sign in to the Teams Admin Center and go to Manage apps

  2. Click Upload new app and upload the Teams App Manifest (.zip file)

Download the Teams App Manifest template from Google Drive. You need to replace the Bot ID with your Microsoft App ID.

Method 2: Search in Teams Apps

  1. Open Microsoft Teams and click Apps in the left menu

  2. Search for your Bot name

  3. Click Open or Add to install the Bot


Getting Started

After installation, find the Bot in the Teams chat list and send a message to start interacting with the AI Assistant.


Important Notes

Last updated

Was this helpful?