Dashbot offers Botkit middleware to make plugging into your facebook bot easy.
Each bot needs its own API key for tracking.
Create a bot to get an API key.
npm install --save dashbot
Use the API key created above.
const dashbot = require('dashbot')(<strong>process.env.DASHBOT_API_KEY</strong>).facebook;
const controller = Botkit.facebookbot(...);
// Add the dashbot middleware
<strong>controller.middleware.receive.use(dashbot.receive);</strong>
<strong>controller.middleware.send.use(dashbot.send);</strong>
View a complete example.