arun thampi  /  writing  / 

is it still time to build?

Enterprise Grade Bot Metrics Free with Botkit

Originally posted on Medium

Botkit has arguably been the best way to build bots on multiple platforms, ever since it’s launch. With over 125 contributors and tens of 1000’s of bot-makers using Botkit to power their bots, it has become synonymous with the bot revolution.

As a bot maker, the next step after you’ve built your bot is find out how many users you’re getting each day, what they’re are saying to your bot, and to see how many of them are reaching the “conversion point” in your Bot’s flow.

Enter Botmetrics

Botmetrics is a conversational intelligence platform that instantly gives you answers to these questions with minimal setup for bots built with Botkit.

If this sounds like something your bot can’t live with out — let’s get started!

Part 1: Adding Analytics Middleware to your Botkit bot

  1. Install the middleware using npm
  2. Instantiate it in your code with two environment variables:
  • BOTMETRICS_BOT_ID that uniquely identifies this bot.
  • BOTMETRICS_API_KEY that ensures that only you can send metrics for your bot.

3. Require botkit-middleware-botmetrics and use the middleware in your bot like so:

A more detailed example for Slack is available here. (Facebook Messenger here!)

Part 2: Connect Your Bot Metrics account to your bot

  1. Sign Up for Botmetrics with one click!
  2. Setup you Facebook bot by adding your bot’s “Facebook Page Access Token” to Botmetrics.

3. Now, finally, set the BOTMETRICS_API_KEYand BOTMETRICS_BOT_IDenvironment variables in your Bot’s environment based on the values in the settings page and restart your bot!

Restart your bot and you can now instantly see detailed metrics about your customers such as new and active user growth, demographic and geographic distributions, and user action attributes.

In addition, with no engineering effort you will also have the ability to segment users based on these characteristics and send them targeted smart time-zone aware notifications. Plus other great features such as path analysis, link tracking and much more.

Sign Up Today for Botmetrics and get smart about your Botkit bot’s interactions!