Article :A Step-by-Step Guide for integrating Microsoft Teams and enabling Proactive notifications

This article provides a detailed guide on MS Teams integration with Kore.ai and enabling Proactive Notifications.

NOTE: To enable MS teams, users should have a valid Azure account with admin access.

  1. Login to the Azure portal and click on “All resources”.

  1. Click on “Create”

  1. Search for “Azure bot“ and choose “Azure bot“ from the search results.

  1. Select “Azure bot“ widget and click on “Create“.

  1. Edit all the required fields and click on “Review + create“

  1. Click on “Create

  1. After creating the Azure Bot you will see that “Your deployment is complete“.
    Then click on “Go to resource

  1. Go to the Botbuilder and Click on the configurations tab of the Microsoft Teams channel as shown below. Copy the Webhook URL in the configurations tab.

  1. Now go to the Azure portal and click on Configurations tab on the left side as shown below.

  1. Paste that Webhook URL in the Messaging endpoint field.

  1. Click on the Manage Password link which is located beside “Microsoft App ID“ field.

  1. Create a New Client secret by clicking on “New client secret“ button as shown below.

  1. After creating the client secret, copy that value and paste that in the “App Password“ field of the MS teams configurations in the bot builder.

  1. Copy the Microsoft App ID and paste that value in the App ID field of the Microsoft teams configurations in the bot builder as shown below.

  1. Copy the Webhook URL and paste it in the Messaging endpoint field as shown below and click on Apply.

  1. Save the Microsoft teams configurations in the Bot builder by clicking the Save button.

  1. Click on “Channels“ settings and click on Microsoft Teams option as shown below.

  1. Select the option as shown below and click on “Agree

  1. Click on “Apply“

  1. Publish your bot and then you can talk to your bot through the MS Teams Channel.

Configuring the Proactive Notifications

What are Proactive Notifications ?

Proactive notifications/alerts are a series of messages that can be pre-programmed by a company to regularly communicate with customers.

Ex: Banking – Server maintenance message

  1. Click on the toggle button and Enable the Proactive Notifications Option as shown below.

  1. Go to the Teams Developer portal.

  1. Click on “Apps“ section and define a name for your app and click on “Add“ button as shown below.

  1. Add the Basic information as shown below.

  1. Go to the Bot Builder and copy the App ID and paste that in the Application (client) ID and click on Save.

  1. Copy and paste the App ID and App Password and paste those values in Application (client) ID and Client secret.

  1. Click on the “Configuration“ settings in the Azure portal and click on “Manage Password“ link as shown below.

  1. Go to API Permissions then add a permission by clicking the “Add a Permission“ button and select Microsoft Graph option.

  1. Select Application Permission option

  1. Search for “teamsapp“ and enable “TeamsAppInstallation.ReadWriteForUsers.All“ and “User.ReadAll“ permissions as shown below.

  1. Click on Grant admin consent and select Yes.

  1. Now go to the Overview section and copy the Directory (tenant) ID value

  2. Paste that value in the Directory (tenant) Id field of the MS Teams configurations as shown below.

  3. Copy the App ID value in the Bot Builder.

  1. Go to the “App features” section in the Teams developer portal and select “Bot“ option as shown below.

  1. Paste the App ID value which was copied before in the “Enter a Bot ID“ field and modify the fields with your desired values as shown below and click on save.

  1. Enable your desired permissions and click on save as shown below.

  1. Select “Publish to your org“ option.

  1. Click on ”Publish your app”

  1. Open admin.microsoft.com URL and go to “Manage apps“ and search for your MS Teams app that you created before and select that.

  1. Copy the App ID and paste that value in “App Id of the MS Teams App“ field of the Bot Builder as shown below.

  1. Click on Publish Button to publish your MS Teams App.

  1. After making the changes publish your bot.

  1. Now you can be able to send the Proactive Notifications to your Bot by using the Proactive Notifications API.

Content Credit: @hariraj.gandepalli @neharikha.karumajji

Hello Srujan,

Thanks for the detailed steps, I am able to send message through Postman but the response is not visible on the Team’s app

I have uploaded the screenshot for the same.

Hello @jitin.nair,

  • Could you please check if you are giving the correct bot-id (stream-id) value in the API endpoint URL?
  • Are you able to interact with the bot through the MS Teams channel?
  • Kindly share the screen recording while replicating the issue for our reference.