Microsoft Bot Framework

** This is the documentation for Microsoft Bot Framework v3. We recommend you use v4 if possible.

Install Dashbot via NPM

npm install --save dashbot

Include Dashbot

Since MS Bot Framework allows you to deploy the same bot to multiple platforms, you should configure it using all of the API Keys that you created above.

If you are using this integration, do NOT choose “microsoft” for your platform when you create your bot on Dashbot.

For Facebook bots, we need your Facebook Page Token to be set too.

const dashbotApiMap = {
universal: process.env.DASHBOT_API_KEY_UNIVERSAL,
facebook: process.env.DASHBOT_API_KEY_FACEBOOK,
slack: process.env.DASHBOT_API_KEY_SLACK,
kik: process.env.DASHBOT_API_KEY_KIK,
webchat: process.env.DASHBOT_API_KEY_UNIVERSAL,
skype: process.env.DASHBOT_API_KEY_UNIVERSAL
}
const dashbot = require('dashbot')(dashbotApiMap).microsoftDeprecated;

Include the following line only if supporting a Facebook bot

dashbot.setFacebookToken(process.env.FACEBOOK_PAGE_TOKEN)

Use Dashbot Middleware for MS Bot Framework

bot.use(dashbot);
Close Menu