-
Node.js version 10.14.1 or higher
# determine node version node --version
-
Install modules
npm install
-
Start the bot
npm start
Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.
- Install the Bot Framework Emulator version 4.3.0 or greater from here
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of
http://localhost:3978/api/messages
- Create and configure an azure resource.
- Create a bot services resource 2.Global Location
- Multi tenant type
- Within the certificates and secrets screen create a new secret and copy the unique value
- Within the configuration screen, put the end-point of our nodejs server /api/messages in the connection point
- On the channels screen add Microsoft teams.
- Then click on get codes to insert bot and copy the bot id.
- Inside our nodejs project write the values inside .env. The values we need are:
- MicrosoftAppType=Microsoft.BotService/botServices
- MicrosoftAppId= application id
- MicrosoftAppPassword=secret value 4.MicrosoftAppTenantId=
- Create a developer account in Microsoft 365 and create a Microsoft Teams work environment.
- Visit the Microsoft Teams developer portal and create a Microsoft Teams app. We can configure it to use it only in our company
- Inside our newly created application, we visit basic info and enter our application client id and put our azure resource id.
- We can modify our bot permissions as we wish
- Post.
- Within Microsoft teams we search the store for our newly created app.