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.
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
- Install the middleware using npm
- Instantiate it in your code with two environment variables:
BOTMETRICS_BOT_IDthat uniquely identifies this bot.
BOTMETRICS_API_KEYthat ensures that only you can send metrics for your bot.
botkit-middleware-botmetrics and use the middleware in your bot like so:
Part 2: Connect Your Bot Metrics account to your bot
- Sign Up for Botmetrics with one click!
- Setup you Facebook bot by adding your bot’s “Facebook Page Access Token” to Botmetrics.
3. Now, finally, set the
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!