Skip to main content

Connect AI Chatbot to MS Teams

Adding a chatbot to Microsoft Teams lets you automate responses, streamline workflows, provide instant support, and integrate business tools — all within the familiar Teams environment, boosting productivity and reducing manual effort.

Written by Andy Dharmani

Integrate Myma Chatbot into Microsoft Teams channel by creating a bot app and a bot for Microsoft Teams and configuring the messaging endpoint.

To configure your Microsoft Teams for Myma Chatbot, perform the following steps:

  1. Creating Microsoft Teams bot app with the Developer Portal

  2. Creating a bot for Microsoft Teams bot app

  3. Configuring messaging endpoint for Microsoft Teams

Creating Microsoft Teams bot app with Developer Portal

Use the Microsoft Teams Developer Portal to set up a bot app for Microsoft Teams by creating a new app, select bot capabilities, set up the bot, add to your Microsoft Teams workspace.

Perform the following steps to build a Microsoft Teams bot app via the Microsoft Teams Developer Portal.

  1. Find and add Developer Portal to your Microsoft Teams.

    1. Launch and log in your Microsoft Teams client.

    2. Click the Apps icon at the bottom left of your Microsoft Teams window to open the Apps panel.

    3. Use the search bar to search for Developer Portal.

    4. Select Developer Portal.

    5. Click Add.


      You can see the home page of Developer Portal.
      ​​

  2. Create a new app.

    1. Click Apps at the top of the home page of Developer Portal.

    2. Click New app.​

    3. A dialog box prompts to specify a short name for your app that is used for configuration in Myma Chatbot as the bot username. Mention the name for the bot e.g. Digital Agent.

    4. Click Add.

    5. Specify the required values for your app, and click Save.

      • App name

      • Description

      • Privacy policy

      • Terms of use

  3. Configure your app.

    1. Navigate to Configure > App features.

    2. Select Bot.

    3. Locate your bot in Identify your bot section.

    4. In the bot settings, choose Personal, Team and Group Chat for Scope to enable your bot app for various types of chats.

    5. Save your settings and you can see your bot in the Bots panel.

      Note

      You need to create a bot if you don't have one. You can either create a bot with Microsoft Bot Framework or with Microsoft Azure. Creating a bot in Microsoft Bot Framework is explained in a later section of this article.

  4. Publish your app.

    1. Navigate to Publish > App package.


      Figure: App package

    2. Click Download app package.


      Figure: Download App package

    3. Navigate to Apps. Click Manage your apps.


      Figure: Manage Apps

    4. Click Upload an app.


      Figure: Upload App

    5. Select Upload a custom app to add the app to a team. Upload the app package that you downloaded in sub-step b.


      Figure: Upload custom App

    6. Select Add to a team from the drop down menu.


      Figure: Add to a team

    7. Type or select a team to set up your bot.


      Figure: Set up a bot

  5. Optional: You can also choose to publish your app to your organization's app catalog, so that it is shareable within your organization.

    1. Navigate to Apps > click Manager your apps.


      Figure: Manage your Apps

    2. Select Submit an app to your org to publish your app.


      Figure: Submit app

      Your app will appear on your Apps homepage after the IT admin of your organization approves.


      Figure: App Catalog

      Now, people in your tenant can see this app and can use it.

Creating a bot for Microsoft Teams bot app

Microsoft offers two methods for creating a bot. Microsoft Azure or Microsoft Bot Framework are the two options. Select any one of them as per the requirement.

  1. Creating a bot with Microsoft Bot Framework (Described below)
    You can create a Microsoft Bot Framework bot for your bot app using the Microsoft Developer Portal tool.

  2. Creating a bot with Microsoft Azure (Not explained in this document)
    You can use Microsoft Azure portal to create a resource using the Bot Channels Registration service, configure the resource, obtain the bot password, and setup channels in order to create a bot with Microsoft Azure.

Creating a bot with Microsoft Bot Framework

Use the Microsoft Developer Portal tool to create a bot with Microsoft Bot Framework. Then, set it up for your bot app.

To create a bot using Microsoft Bot Framework, perform the following steps:

  1. Click Tools.

  2. Click Bot management to create your bot.

  3. Click New bot.

  4. Specify a name for your bot in the prompted dialog box. Click Add.

  5. Select your bot.

6. Navigate to Client secrets > click Add a client secret for your bot to generate a client secret for your bot.​

8. Copy the new client secret.

Note: The client secret only appears once in this. Save the client secret for use in later steps. The client secret is required while configuring Microsoft Teams.

Create Microsoft Teams integration in Myma Dashboard

  1. Log in to Myma Dashboard

  2. Navigate to Settings -> Available Channels

  3. Find Microsoft Teams and click on Connect

In the integration settings:

  1. Add a user-friendly Integration Name

  2. Add Client Id (Bot ID) from the previous step

  3. Add Client Secret from the previous step

Navigate to Settings -> Connected Channels

  1. Locate Microsoft Teams integration

  2. Copy the Service Endpoint URL

  3. You will add this as a messaging endpoint for the Microsoft Bot Framework, as described in the next section

Configuring messaging endpoint for the Microsoft Bot Framework bot

Configure the messaging endpoint in Developer Portal by specifying the bot's endpoint address, if you are configuring your bot using the Microsoft Bot Framework.

To configure messaging endpoint for MS Bot Framework bot, perform the following steps:

  1. Launch and log in your Microsoft Teams client.

  2. Go to Developer Portal and click Tools.

  3. Click Bot management.

  4. Choose the bot that you created and start editing your bot app.​

  5. Click Configure.

  6. Specify the Bot endpoint address input box under Endpoint address with the Myma Chatbot web hook URL.

Configuring messaging endpoint for the Microsoft Azure bot

After creating your bot using Microsoft Azure, choose the messaging endpoint in the Microsoft Azure portal to finish the configuration.

To configure messaging endpoint for Microsoft Azure bot, perform the following steps:

    1. Launch the Microsoft Azure portal at portal.azure.com.

    2. Click All resources and select the bot that you created.

    3. Navigate to Settings > click Configuration.

    4. Specify the Messaging endpoint with the Myma Chatbot web hook URL if it is publicly accessible Otherwise, you must fill in with your public proxy URL that transmits network payload to Myma Chatbot web hook URL.

    5. Verify that the Enable Streaming Endpoint box is enabled.

    6. Click Apply.

Did this answer your question?