To create a Microsoft Teams chatbot first install the App Studio application in the application store, then open the app and switch to the tab “Manifest editor” then “Create a new app”.

You will need to fill all required fiels to create the application manifest, but before doing that, create your inbound link. Microsoft Teams requires a public link to send the incoming messages to, we’ll use ngrok to create a https tunnel for our local Node-RED instance. Install it, then open a shell window and run

ngrok http 127.0.0.1:1880

You should get something like

ngrok

ngrok

Grab the https address you get, something like https://123123.ngrok.io, this is the base url that points back to your Node-RED instance.

The callback is

<http://youraddress.ngrok.io/redbot/msteams>

Now let’s get back to the manifest page and fill in all the required fields in the section “App details”, click on the “Generate” button to create an appId (it will be used in the bot configuration in RedBot). Then switch to the tab “Bots” and click on “Set up” (this will add the chatbot functionality to the application): select “My Bot supports uploading and downloading file” and all scopes (“Personal”, “Team”, “Group Chat”), then click on “Create Bot”.

Create Bot

Create Bot

Now grab the bot appId just below the name of the chatbot (note that is not the same appId of the manifest file). In the messaging point set the ngrok callback you have create before (be sure to hit “Enter” and that a small green validation mark appears)