Botkit analytics, powered by Keen IO Open-source middleware to track bot metrics with Keen IO – and read about the motivation below 🚀 check it out here This post is part of a series of open source projects that I’ll be releasing in the next while, as described . previously here Bot Analytics One of the things that we had to deal with when we were building was that the traditional “session”-based analytics systems (like Google Analytics) didn’t really work. Even the pure “event”-based analytics systems (like Mixpanel) were too prescriptive for a new medium like chat interfaces. Suto We wanted to answer slightly complicated questions like “What type of questions are these set of users asking?” or “How many times are these users starting conversations with us?” without having to do too much work to get those answers on a dashboard. We definitely didn’t want to build our own analytics stack, since I knew that it takes a small village to get it right given my experience at . Taplytics So we decided to outsource this task to , a flexible and scalable analytics platform that I had used before. It turned out to work out very well – we were able to put together a great dashboard together in about a day and as we grew to other channels (like Email and Facebook Messenger), we were able to track everything in one place. Keen IO So today, I’m open-sourcing a small library that I originally built to pass data from to Keen IO. It enabled us to have a decent view of the usage of our bot (which we decided to shut down a few weeks ago, a story for another time) in the hope that it helps others :) Botkit Keen IO Botkit Middleware I’ve become a big fan of Howdy’s framework. It’s a great abstraction over the different ways you can create a bot and gives you enough customization capabilities to make things easier. Botkit A great example of this is their functionality that lets you listen (and/or modify) the incoming and outgoing messages. Which is exactly what I used to track messages going in and out for our bot. middleware I’ve abstracted this in an open source library called . keen-botkit I’ve been hesitant to share it since we’re no longer working on our bot, but Keen graciously offered to maintain the project (which is why it’s ), so I feel comfortable with having others use it and take advantage of having better analytics for their bots. on their Github now If you already have a bot or are about to work on one, check out and start tracking its usage right away ⚒️ Keen IO for Botkit If you’d like to keep up with my open-source releases over the next while, be sure to follow my posts or subscribe . here
Share Your Thoughts