Creating a Microsoft Teams channel

Michelli Silva Updated by Michelli Silva

Building an Application in Azure

  1. To create your bot application, go to you will need to create an account, if you don't have one.
  2. After logging into your account, select Create a Resource.
  3. Search for Azure Bot in the search box.
  4. Select Azure bot in marketplace.
  1. Select Create.
  2. Enter the identifying name for the bot in the identification field.
  3. Select your signature from the list, by default it will already look like a created signature.
  4. Select your resource group or create a new one.
    • If you want to create a resource group, select Create New, enter the resource name, select OK, and select the required location from the New Resource Group Location drop-down list.
  5. Select the application type, multi-tenant is recommended. After that, select Review + Create.
  1. Select Create, if validation is approved. It takes a few moments for your bot service to be provisioned.
  1. Select Go to resource. Now your application is created!

To create the client secret

  1. From Settings, select Configuration. Save the Microsoft application ID (client ID) for future reference.
  1. Select Manage next to Microsoft App ID.
  1. In the Client Secrets section, select New Client Secret. The Add a Client Secret window appears.
  1. Enter a Description and a period for the expiration of the secret, then select Add.
  1. Select Copy to clipboard in the Value column and save the client secret ID for future reference.

  1. You need to search for one more piece of data that you will need for the creation of the channel on the Weni Platform, to do this, go back to Home and select your bot. Go to Overview on the left menu, then select JSON View. A json will open with some information about your application, look for tenant id and save the value.

To add Microsoft Teams channel

  1. Go to Home.
  2. In the Recent Resources section, open your bot.
  3. Select Channels from the left panel and select Microsoft Teams from the list of available channels.

Set up bot profile

  1. If you want you can set up the bot profile, to do this, in your bot go to Bot Profile in the menu on the left and set it up as you wish. You can add profile pictures and other information.

To add the Microsoft Teams channel to your bot

  1. Select the check box to accept the terms of service and select Agree.
  1. Select Save.

Creating a Channel on the Weni Platform

  1. After you login to the platform, choose your organization and project, go to Settings.
  2. Select Add Channel.
  3. From the channel list, select Teams.
  4. To connect a channel, you will need the information about the app you created earlier (Bot name, Bot id, App id, App password and Tenant id)
  5. Enter the name you gave your bot when creating the application in the Bot name field.
  6. In Bot id enter the Application ID that you saved earlier when creating the application.
  7. In App id enter the Application ID again.
  8. In App password enter the Client Secret you created earlier.
  9. In Tenant id enter the tenant id value you saved earlier.
  10. Now click Submit.
  1. Now your channel is created!
  2. On the channel page that you will be sent to right after you click Submit, you will have the ID of that channel, we will need that value. To get it you can copy the large ID that you will have at the end of the URL of this page. After the read/ copy all this id made up of numbers, letters, and dashes. Save it.

Set Up Endpoint in Application

  1. Go back to Azure, under Home select your bot in Recent Resources, after that go to Settings in the left menu.
  2. At **Endpoint ** add the url below, at [CHANNEL ID] add the ID you saved in the previous step.

Setup bot in Teams

  1. In the lower left corner select Apps.
  2. Use the search bar on the left and search for App Studio. Select it and install it, then click open.
  3. Select Create a new App.
  4. Under App Details, enter all the data you already have such as name.
  5. Under Identification enter the App ID, under Package name enter a name that references your app e.g.:
  6. For version, use something like v1.0.0
  7. In Description enter a description for your application, tell what it does and who it does it for, for example.
  8. Under Developer Info enter your company data, such as name and website.
  9. In App URLs enter the url of your company's privacy terms and in terms of use enter the url of your terms.
  10. In Branding, you update the profile images you want your bot to have, click update and choose your images.
  11. In step 2 under Capabilities, you can set some specifications for your bot, this step is not required for your bot to work together with our platform, so we will skip this step.
  12. Now in step 3 of the left menu click on Domains and Permissions.
  13. In Valid Domains enter the domain of our platform so that your bot can integrate with us ( and click Add.
  14. In AAD App ID enter your Tenant ID that you saved earlier.
  15. Now for the last step, click Test and Distribute in step 3 in the left menu.
  16. You can publish your bot in your organization's catalog, so everyone who participates in your organization can add your bot and send messages to it. To do this, click on Publish app in my organization's catalog and click on Submit.
Important: for your app to be published in your organization's catalog, will have to be accepted by your organization's IT administrator. Once accepted your bot will be available for installation in your company's catalog for all employees that are part of it.

How did we do?

Adding a Viber channel (RapidPro)