botkit-middleware-bcrm
v0.0.4
Published
Integrate bCRM into Botkit to easily send broadcast messages to bot users
Downloads
3
Readme
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 bCRMbot 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.