Enabling Microsoft Teams in a chatbot application by registering inline with Microsoft App Studio
As an administrator in BMC Helix Chatbot and Microsoft Office 365 (Teams), you can use Microsoft Office 365 Teams as a communication channel for your chatbot application.
You can enable Microsoft Teams in the following ways:
By registering the chatbot application inline with Microsoft App Studio—Follow the instructions in this topic to enable Microsoft Teams by using this method.
We recommend that you enable Microsoft Teams by using the Microsoft App Studio method.
- By using the Microsoft Azure Portal—Use this method if you want to troubleshoot the issues in your chatbot application by using Microsoft Azure Portal. For more information, see Enabling Microsoft Teams in a chatbot application by using Microsoft Azure Portal.
Supported and unsupported features with Microsoft Teams
- End users can use Microsoft Teams only for one-to-one instant messaging.
- Features that are supported by BMC Helix Chatbot such as localized chatbot messages and live chat are available in Microsoft Teams.
- Other features such as group conversations and conference calls are not supported.
Sample BMC Helix Chatbot Microsoft Teams package
You can leverage the BMC Helix Chatbot Microsoft Teams sample package to build and test your chatbot application package for Microsoft Teams. The sample .zip package includes the following files:
- BMC Helix Chatbot icon.png
- BMC Helix Chatbot outline.png
Download the BMC Helix Chatbot Microsoft Teams sample package.
Before you begin
Ensure that you have completed the following tasks:
- Subscribed to .
In Microsoft Teams, , as shown in the Microsoft documentation.
- Installed .
- Created the chatbot application that you want to configure to work with Microsoft Teams. For more information, see To create a chatbot.
- Configured the IBM Watson service credentials. For more information, see To configure the Skill ID for a chatbot.
- You have the endpoint URL of your chatbot application. To get the URL, log in to navigate to BMC Helix Innovation Studio, select the chatbot application and select Channels > Office 365 > Webhook URL.
- If you want to use the colors and icons provided by BMC for branding your chatbot, ensure that you have downloaded the BMC Helix Chatbot Microsoft Teams sample package.
Process for enabling Microsoft Teams by inline registration
The process of enabling Microsoft Teams for a chatbot application comprises of the following tasks:
If you want to use the BMC Helix Chatbot Microsoft Teams sample package, start your process from uploading the Microsoft Teams application package for the end users (Task 4).
Task 1: To create the chatbot application package for Microsoft Teams
- Log in to Microsoft Teams.
- From the Store, open Microsoft Teams App Studio.
- In the App Studiopage, click Open.
- In the App Studio is now available for you page, click Open corresponding to Bot option.
- Click Manifest Editor, and perform one of the following actions:
- If you want to use the BMC Helix Chatbot Microsoft Teams sample package, click Import an existing app.
- If you do not want to use the sample package, click Create a new app.
- (Only if you imported an existing app), click Edit on the chatbot application.
- In Short name, provide a meaningful name for your bot.
Example: HR Bot
In App ID, click Generate.
If you imported the BMC Helix Chatbot Microsoft Teams sample package in the earlier step, the application ID is populated automatically. You must still generate a new App ID.
A unique identifier is automatically generated as shown in the following example:
In the Branding section, if you want to use BMC branding colors and icons, upload the icons and colors from the sample package.
Your settings are saved.
application in Microsoft App StudioTask 2: To register your chatbot
- In Microsoft App Studio, select Manifest Editor > Capabilities > Bots.
- Click Setup and perform one of the following actions:
- If you want to register your chatbot inline (without registering on the Microsoft Azure Portal), click New bot and enter a name for the chatbot.
- If you have registered your chatbot with Microsoft Azure Portal, click Existing bot.
- (If you have registered your chatbot with Microsoft Azure Portal) In Bot ID, if you have registered your chatbot in Microsoft Azure Portal, select Connect to a different id and enter the Microsoft Application ID that you received after registering your chatbot with Azure Bot Service.
- In the Messaging bot section, select the check box corresponding to My bot supports uploading and downloading files.
In Scope, select Personal.
The Personal option implies that end users can use Microsoft Teams for one-to-one instant messaging only and not for group conversations.Example of registering a new botExample of registering an existing bot
- (For New bot) Click Create bot.
In the Bots page, the Bot ID is populated automatically. Note down this Bot ID for future reference.
The following image is an example of the Bots page:
- (If you are creating a new bot or registering inline) In App passwords, click Generate new password and note it down for future reference.
- (If you are creating a new bot or registering inline) In Bot endpoint address, enter the Webhook URL as described in the Before you begin section.
Task 3: To download the Microsoft Teams application package
- In Microsoft Teams App Studio, select Manifest Editor > Finish > Test and distribute.
- Click Download, as shown in the following example:
The Microsoft Teams application package is downloaded as appname.zip in the default download directory. For more information, see in Microsoft documentation.
Task 4: To upload the Microsoft Teams application package
- Log in to Microsoft Teams and navigate to Store.
- Click Upload a custom app.
- Select Upload for enterprise name, and upload the application package, as shown in the following example:
- Click Install.
Task 5: To configure a chatbot application
- Log in to BMC Helix Innovation Studio.
- On the Workspace tab, click the application in which you want to configure a chatbot to work with Microsoft Teams.
Click the Chatbots tab, and click the chatbot that you want to enable for Microsoft Teams.
- Click the Channels tab and select New > Office 365.
In the Office 365 Settings section, enter values for the following fields, and click Save.
Field Description Description Enter the description that provides details about the setting. Microsoft App ID Enter the Bot Id that is generated after you register your chatbot with Microsoft App Studio. Note: Do not enter the App ID in which chatbot is created. Microsoft App Password Enter the Microsoft application password that is generated after you register your chatbot with Microsoft App Studio. Webhook URL (Information only) This field is populated automatically.
Webhook URL is the messaging endpoint URL that you provide when you register a chatbot with App Studio.
The process to configure your chatbot application to work with Microsoft Teams is now complete.
To ensure that end users can chat by using Microsoft Teams, from Microsoft Apps Studio, each end user must add the chatbot application for self.
To update the chatbot version
After you make changes to the chatbot in Microsoft Apps Studio, ensure that you update the version by performing the following steps:
- Log in to Microsoft Teams.
- Open Microsoft Teams App Studio and click Manifest Editor.
- On the App details page, in Version, enter the appropriate version number of the chatbot application, as shown in the following example:
- Download the updated version of the Microsoft Application package, as described in To download the Microsoft Teams application package.
- In Microsoft App Store, click the chatbot that you want to update, and click Update, as shown in the following example:
- Upload the updated version of the chatbot.