Before you begin
Complete the following tasks in Microsoft before you create the channel connection in Artemis. You need administrator access to the Azure Portal, the Microsoft Teams Developer Portal, and the Teams Admin Center.1
Create an Azure Bot
- Sign in to the Azure Portal and search for Azure Bot in Marketplace.
- Select Create and complete the bot registration.
- When the deployment completes, select Go to resource under Next steps.
2
Create a client secret and copy the IDs
- In the Azure Bot resource, go to Settings -> Configuration.
- Select the Manage password link beside the Microsoft App ID. This opens the app registration’s Certificates & secrets page.
- Select + New client secret and create the secret.
- Copy the secret value immediately and store it securely.
- Go to the app registration’s Overview page and copy the Application (client) ID. This is your Microsoft App ID, also called the Enterprise App ID later in this article.
- Copy the Directory (tenant) ID from the same page.
3
Configure supported account types
- In the app registration, go to Authentication (Preview) -> Supported accounts.
- Select Multiple Entra ID tenants, choose Allow all tenants, and save.
4
Enable the Microsoft Teams and Microsoft 365 channels
- Return to the Azure Bot resource and go to Settings -> Channels.
- Enable Microsoft Teams and Microsoft 365.
5
Create or import the Teams application
- Sign in to the Microsoft Teams Developer Portal.
- Create a new application or import an existing manifest.
- Go to Configure -> Basic information, enter the Short name and Long name, and set the Application (client) ID to the Microsoft App ID you copied in step 2.
6
Configure the bot, commands, and scopes
- Go to Configure -> App features and select Bot.
- Enter the Enterprise App ID as the bot ID.
- Add the project commands, utterances, and descriptions.
- Select the Personal, Team, and Group Chat scopes.
7
Update the app package
- Go to App package editor -> Actions -> Edit to open
manifest.json. - Update the Web App ID (
webApplicationInfo.id) and the Copilot/Agents ID (copilotAgents.customEngineAgents.id) to the Enterprise App ID in both locations. - To support file attachments, set
bots[0].supportsFilestotrue. - Select Update and confirm.
Attachment ingestion currently supports personal chat scope only.
8
Publish the application
- In the Teams Developer Portal, go to Publish -> Publish to org, select Get started, and publish the application.
- Open the Teams Admin Center and go to Teams apps -> Manage apps.
- Search for the application, open it, and publish it.
Create the channel connection in Artemis
1
Enter the connection details
Open Artemis, select the required project, and go to Deployments -> Channels -> MESSAGING -> Microsoft Teams -> + New. On the New Microsoft Teams Connection dialog, provide the following fields.
Select Create.
2
Configure the messaging endpoint
- Open the connection you created and copy the Webhook URL from the Overview tab.
- In the Azure Portal, open the Azure Bot resource and go to Configuration.
- Paste the Webhook URL into the Messaging endpoint field.
- Enable the Streaming Endpoint and select Apply.
3
Test the agent in Teams and Copilot
- Open Teams and go to Apps.
- Search for the published application, open it, and select Add. To test in Copilot, select Open with Copilot.
- Trigger the configured queries and verify the Artemis response.
Key values reference
Manage the channel connection
Opening a channel from Deployments -> Channels -> MESSAGING -> Microsoft Teams shows four tabs: Overview, Credentials, Configuration, and Deployment.- Overview
- Credentials
- Configuration
- Deployment
The Connection Summary shows these fields.
Under Setup Instructions, the tab shows the Webhook URL to set as the bot’s messaging endpoint in Azure, the Bot App ID for reference, and the Require verified Teams identity toggle.