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:
Creating Microsoft Teams bot app with the Developer Portal
Creating a bot for Microsoft Teams bot app
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.
Find and add Developer Portal to your Microsoft Teams.
Create a new app.
Click Apps at the top of the home page of Developer Portal.
Click New app.
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.
Click Add.
Specify the required values for your app, and click Save.
App name
Description
Privacy policy
Terms of use
Configure your app.
Navigate to Configure > App features.
Select Bot.
Locate your bot in Identify your bot section.
In the bot settings, choose Personal, Team and Group Chat for Scope to enable your bot app for various types of chats.
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.
Publish your app.
Navigate to Publish > App package.
Figure: App package
Click Download app package.
Figure: Download App package
Navigate to Apps. Click Manage your apps.
Figure: Manage Apps
Click Upload an app.
Figure: Upload App
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
Select Add to a team from the drop down menu.
Figure: Add to a team
Type or select a team to set up your bot.
Figure: Set up a bot
Optional: You can also choose to publish your app to your organization's app catalog, so that it is shareable within your organization.
Navigate to Apps > click Manager your apps.
Figure: Manage your Apps
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.
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.
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:
Click Tools.
Click Bot management to create your bot.
Click New bot.
Specify a name for your bot in the prompted dialog box. Click Add.
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
Log in to Myma Dashboard
Navigate to Settings -> Available Channels
Find Microsoft Teams and click on Connect
In the integration settings:
Add a user-friendly Integration Name
Add Client Id (Bot ID) from the previous step
Add Client Secret from the previous step
Navigate to Settings -> Connected Channels
Locate Microsoft Teams integration
Copy the Service Endpoint URL
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:
Launch and log in your Microsoft Teams client.
Go to Developer Portal and click Tools.
Click Bot management.
Choose the bot that you created and start editing your bot app.
Click Configure.
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:
Launch the Microsoft Azure portal at portal.azure.com.
Click All resources and select the bot that you created.
Navigate to Settings > click Configuration.
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.
Verify that the Enable Streaming Endpoint box is enabled.
Click Apply.












