In this article, you will learn how to integrate Microsoft Teams into the Botmaker platform.
Microsoft Teams is a unified communication and collaboration platform. It combines chat and video conferencing capabilities with file storage and collaborative work, as well as app integration. Native integration on the Botmaker platform allows you to:
How to integrate?
To integrate, go to Menu > Settings > Channels (https://go.botmaker.com/#/integrations/channels) and select Microsoft Teams.
Then click "Connect" to start the integration tutorial. You will see the following screen, where you should click "Start."
Remember, to connect a bot to Microsoft Teams, you need to meet the following requirements:
To enable custom apps, go to https://admin.teams.microsoft.com. After logging in, navigate to Teams Apps > Setup Policies.
Under Manage policies, select Global and Upload custom apps moving the button to the ON position, as shown in the image.
Then click the Save button at the bottom of the screen.
Note: After completing each step of the tutorial, click Next to proceed with the integration.
To create a Teams application, log in to your Teams account through the Teams app. Then, navigate to the Apps section from the sidebar. Use the search function to find the Developer Portal app. Download or open it.
Next, open the Developer Portal app, click on "Apps," and then click on "Create a new app" or "+ New App" if you already have other apps created. Choose a name and click to add it.
In the "App details" section, you will need to complete a series of steps with data about your app:
Once everything is filled out, click Save.
Continue the interaction by following these steps:
Note: Once the bot is created, you will see its name and ID. Copy both pieces of information and paste them into a notepad, as you will need them for the last step.
En la barra lateral, vaya a Secreto del cliente y haga clic en Add a client secret for your bot ,verás un código. Cópialo y pégalo en un bloc de notas, porque lo necesitarás en el paso final.
In the sidebar, navigate to "Client secrets" and click on Add a client secret for your bot , You will see a code generated. Copy it and paste it into a notepad, as you will need it for the final step.
Return to the Apps tab and select your application. Go to Configure/App features, then select the Bot feature.
In Identify your bot, choose:
Under What can your bot do? select:
In Select the scopes in which people can use this command, choose:
Then click Save.
You can publish your bot through the app or the site by following the steps below:
On the screen that opens, you will see an app pending approval. Look for it by the name you gave it in the list below. Click on the application.
Note: Copy and paste the number shown, as you will need it in the final step.
Then click the Publish button, and when the confirmation message appears, click Publish again.
To grant permissions to the bot, you need to log in to the Azure Portal using this link: https://aad.portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
Once logged in to Azure, select your application.
Navigate to Manage/API permissions and click on +Add a permission.
Choose Microsoft Graph API and select Application permissions. Here, you need to individually search for and add the following permissions:
Finally, select the option:
Paste the data you copied into your notepad from the previous steps:
Finally, click on + Connect Microsoft Teams.
To view the integration details of your connected Teams, go to https://go.botmaker.com/#/integrations/channels, select Microsoft Teams, and click Configure.
Done! You have integrated MS Teams with Botmaker to enhance team collaboration and communication! Remember to visit our Help Center for more information.
Written by: Botmaker Team
Updated: 07/01/2024