Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botkit-middleware-convo-analytics

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botkit-middleware-convo-analytics

A middleware for using convo.analytics in a Botkit-powered bot.

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

Botkit Middleware for convo.analytics service

Track, Analyse and Structure your chatbot conversations.

Installation

API Key

We are providing a lightweight web application to track, analyse and structure the conversations of all bots you have currently out there.

Create an account and retrieve an API key here ->

Add your API key to your environment variables. (e.g. in .env)

CONVO_ANALYTICS_API_KEY=XXXAAAAPPPIIIIXXXXX

Install npm package

npm install botkit-middleware-convo-analytics

Adding middleware

Add middleware to your botkit controller.

// Adding convo-analytics middleware
var convoAnalyticsMiddleware = require('botkit-middleware-convo-analytics')({
  token: process.env.CONVO_ANALYTICS_API_KEY,
});

Track receive

controller.middleware.receive.use(async(bot, message, next) => {
  
  convoAnalyticsMiddleware.receive(bot, message, next);

  next();
});

Track send

controller.middleware.send.use(async(bot, message, next) => {
  
  convoAnalyticsMiddleware.send(bot, message, next);

  next();
});

It is important to track both send AND receive. Otherwise you will not see your bots answers.

Keywords

FAQs

Package last updated on 11 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc