Connect an AI Agent to Microsoft Teams
Connect Teams to an existing AI Agent so users can ask questions and invoke its configured skills without leaving their conversation. The Teams bot carries messages; the AI Agent supplies the model, knowledge and skill configuration.
Before you connect
Prepare an AI Agent in AI Agent Composer, test it in Playground, and have an Azure Bot and Teams app available in your organisation. You also need permission to configure that bot and install or distribute the Teams app. If these do not exist, complete Set up a Teams bot first.
Use the channel's generated webhook for this route. A generic webhook-triggered Hyperflow used to test a bot is a separate backend; do not accidentally leave Azure pointing to that test flow when enabling the AI Agent.
Configure the channel
Open the intended agent in AI Agent Composer.
Open Channels and select Microsoft Teams.
Copy the displayed Webhook URL. Preserve the complete generated value, including any authentication parameters. Treat it as a credential where it contains a key; do not put it in public documentation or a chat message.
In the Azure Bot resource, open Configuration and set Messaging Endpoint to that URL. Save, then reopen the field to confirm the saved value.
Return to the channel setup and select an existing Microsoft Teams credential or create one. Use the bot's Tenant ID, App ID and Client Secret through the credential configuration, as described in the bot setup guide.
Complete the channel configuration and install the Teams app for your test user using the approved organisational route.
Test the complete conversation
Start with a simple message to confirm a response travels through the connected agent. Next, ask for a known knowledge item. Finally test one explicitly permitted skill against a test record.
For each test, check the AI Agent response, any associated Hyperflow run and the target system's result. A friendly response is not proof that the correct agent, credential or record was used. Keep the first write small and inspect its returned identifier.
If the assistant is meant to act for the signed-in user, validate how the Teams identity maps to the application's user. Installing a Teams bot does not automatically configure delegated access in ServiceNow, Xurrent or another system.
Diagnose common connection problems
App is unavailable in Teams
Teams app installation/availability policy and the app's selected scopes.
Messages reach a test reply instead of the AI Agent
The Azure messaging endpoint may still point at a generic test Hyperflow.
No reply after sending a message
Saved endpoint, credential selection, bot App ID and Teams channel configuration.
Agent replies but its skill fails
Inspect the Hyperflow action log and downstream credential/permissions.
User can retrieve the wrong person's data
Review identity mapping, skill input validation and target-system filtering.
Use the ServiceNow, Xurrent or ServiceDesk Plus example to define the first useful support journey.
Was this helpful?

