Microsoft Teams Agent Installation
Overview
This guide explains how to connect a Magnet AI Agent to Microsoft Teams. A Teams-enabled agent listens to conversations through the Azure Bot Service messaging endpoint, sends adaptive-card responses, and keeps feedback in sync with Magnet AI.
All URLs in this document are relative to your AI Bridge instance. Replace {AI_BRIDGE_BASE} with that origin when configuring external systems.
Capabilities
- Sends adaptive-card replies.
- Supports commands typed by the user:
/welcometo get welcome message,/restartto start the new conversation in Magnet AI, and/get_conversation_info. - Presents action confirmations with Confirm/Reject buttons when needed.
- Collects message feedback (Like/Dislike with reason and optional comment).
- Sends a typing indicator while Magnet AI prepares the response.
- No group chats supported.
Prerequisites
- An existing Magnet AI agent.
- An Azure tenant with Azure Bot Service configured.
- A packaged Microsoft Teams App already uploaded to Teams Admin Center.
- An externally reachable AI Bridge deployment (
https://{AI_BRIDGE_BASE}).
Step 1 – Update the Azure Bot Service
Under Configuration, set the Messaging endpoint to:
https://{AI_BRIDGE_BASE}/api/user/agents/teams/messagesRecord these values:
- Microsoft App ID → becomes the Magnet Client ID.
- Tenant ID from the linked Azure AD app registration.
- A new Client secret (under App Registration → Certificates & secrets → New client secret). Copy the secret value immediately; Azure hides it after you leave the page.
Step 2 – Configure the agent in Magnet AI
- Navigate to Agents → {your agent} → Channels in the Magnet admin panel.
- Enable Ms Teams.
- Populate the fields:
- Client ID – Microsoft App ID from Azure Bot Service.
- Tenant ID – Tenant ID associated with the Azure Bot Service.
- Secret value – the client secret you created for App Registration used by Azure Bot Service.
- Click Save to persist the changes. The secret value is encrypted at rest.
Verification & Testing
- Send
/welcometo verify the welcome adaptive card renders. - Ask a question the agent can answer; confirm that a response card is displayed and that feedback buttons work.