Microsoft Bot Builder

First, install botmeter-logger:

npm install --save botmeter-logger

We provide a middleware that you can easily plug to Microsoft bot builder (see right pane).

See our sample bot

const BotmeterLogger = require('botmeter-logger');
const builder = require('botbuilder');
const restify = require('restify');

// Create a server
const server = restify.createServer();
server.listen(process.env.PORT || 3978, function() {
  console.log('%s listening to %s',, server.url);

// Instantiate the Bot builder connector and bot
const connector = new builder.ChatConnector({
  // can be left undefined when testing with emulator
  appId: process.env.MICROSOFT_APP_ID,
  // can be left undefined when testing with emulator
  appPassword: process.env.MICROSOFT_APP_PASSWORD,

const bot = new builder.UniversalBot(connector);

// Instantiate Bot builder logger
const builderLogger = new BotmeterLogger({
  appId: '<APP_ID>',
  appKey: '<APP_KEY>',

// Plug it'/api/messages', connector.listen());


bot.dialog('/', session => session.send('Hello World'));