🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

botkit-middleware-bcrm

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botkit-middleware-bcrm

Integrate bCRM into Botkit to easily send broadcast messages to bot users

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Botkit bCRM Middleware

This Botkit plugin enables support for bCRM, a customer CRM tool that enables bot developers to send broadcast messages to users of their bot.

This plugin currently works with Slack and Facebook bots.

Install it

npm install --save botkit-middleware-bcrm

Enable Your Bot

  • Create a bCRM account and get your bCRM token and bCRM bot id.

  • Add the following lines to your Botkit application:

require('botkit-middleware-bcrm')({
    bcrm_token: 'my_bcrm_token',
    bcrm_bot: 'my_bcrm_bot',
    controller: controller    
});
  • To register new users with bCRM:

If using Slack, register a new team with your bot's application via the oauth flow. Note, this assumes you are using the built-in oauth support.

If using Facebook, click the "Get Started" or any other button that fires a facebook_postback or facebook_optin event. Note, your app must be set to subscribe to the postback and/or optin events inside Facebook's developer tool.

Security Note

In order to provide its service, this plugin sends information to bCRM that allows the bCRM software to access information and send messages on behalf of your bot. Before using this plugin, read bCRM's privacy policy, and make sure your own policies reflect the fact that you share information with them.

FAQs

Package last updated on 12 Dec 2016

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