This tutorial shows you how to enable and test your chatbot in Microsoft teams, but does not include information on adding the chatbot to teams and channels within Microsoft Teams. For more information on this, see Manage your apps in the Microsoft Teams admin center.
Step 1: Create Microsoft Azure account
-
Create a trial account at Microsoft Azure.
-
After creating a trial account, make sure your subscription is set up properly.
-
Go to the Microsoft Azure portal.
-
Click Subscriptions.
-
Click your subscription (mine was called Azure subscription 1
).
-
Click Resource Providers (menu on bottom left).
Make sure the microsoft.insights
is registered.
Step 2: Create Azure bot channel
-
Go to the Microsoft Azure portal.
-
Click Create a Resource.
-
Search for and then select Bot Channels Registration.
Click Create.
-
Fill in the registration form.
Field Name |
Input Value |
Bot Name |
A unique display name for the bot (which will appear in channels and directories – this can be changed later) |
Subscription |
Your Azure subscription (in my trial, I had only one) |
Resource Group |
Select a resource group. If you don’t have one – which you probably won’t have – then create a new one. |
Location |
Choose a location near where your bot is deployed |
Pricing Tier |
F0 (10K Premium Messages) |
Messaging endpoint |
This will be filled out later |
Application Insights |
On |
Application Insights Location |
Choose a location near where your bot is deployed |
Click Create.
It may take a few minutes for the registration to take effect and be listed in your resources list.
Step 3: Get your app ID and secret
-
Go to the Microsoft Azure portal, and then go to the Dashboard.
-
In the dashboard, click the resource you just created.
-
Click Settings, and scroll down.
-
Generate a Client Secret by clicking Manage, then New Client Secret, then Add.
-
Copy the Microsoft App ID and Client Secret, for use later.
Step 4: Connect bot to Azure
-
Go back to SAP Conversational AI.
-
Open your bot, and go to the Connect tab.
-
Click on the row for Skype and Teams, and in the popup, enter the app ID and client secret from Azure.
An endpoint will be created. Copy it.
-
Go back to your resource in Azure, and under Settings, paste the endpoint into the Messaging Endpoint field.
Click Save (at top).
Step 5: Test bot in Azure
-
Still in your resource in Azure, go to Test in Web Client.
At the bottom of the screen, there is a box for talking with your bot.
-
Test your bot.
Step 6: Test bot in Teams
-
Still in your resource in Azure, select Channels.
-
Click the Microsoft Teams icon.
-
Click Save.
-
Navigate back to the Channels main page (you may have to navigate away or refresh the page).
-
Click on Microsoft Teams to open the Teams application.
-
Test your bot in the Teams application.
Take It Further