Enabling Microsoft Teams in a chatbot application by registering inline with Microsoft App Studio
As an administrator in BMC Helix Virtual Agent 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 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.
- (Deprecated) By registering the chatbot application inline with Microsoft App Studio—Follow the instructions in this topic to enable Microsoft Teams by using this method.
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 Virtual Agent 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 Virtual Agent Microsoft Teams package
You can leverage the BMC Helix Virtual Agent 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 Virtual Agent icon.png
- manifest.json
- BMC Helix Virtual Agent outline.png
Download the BMC Helix Virtual Agent Microsoft Teams sample package.
Before you begin
Ensure that you have completed the following tasks:
Subscribed to Microsoft Office 365.
In Microsoft Teams, allow interaction with custom apps, as shown in the Microsoft documentation.
Installed Microsoft App Studio.
- 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 Virtual Agent 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:
Task 1: To create the chatbot application package for Microsoft Teams
- Log in to Microsoft Teams.
- From the Store, open Microsoft Teams App Studio.
- On the App Studio page, 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 Virtual Agent 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.
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.
Task 2: To register your chatbot application in Microsoft App Studio
- 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.
To enable the uploading and downloading of files, 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.- (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 Test and distribute 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.
Related topics
Formatting-chatbot-responses-to-be-displayed-in-communication-channels