webchat-cli
CLI tool for webchat
Install webchat CLI
$ sudo npm i -g webchat-cli
Set controlled webchat api url
$ webchat init
Get current webchat config
$ webchat list
Set webchat config
Config api endpoint is protected by OAuth2, setting values is two step process:
- ### Obtain webchat access token
$ webchat login
- ### Set Business Hours probability
$ webchat set valve.businessHours 0.2
or
Override current value
$ webchat set valve.overrideCurrent " -1"
delete webchat config
Config api endpoint is protected by OAuth2, deleting values is two step process:
- ### Obtain webchat access token
$ webchat login
- ### Delete Business Hours probability
$ webchat delete valve.businessHours
Setting up for development (locally)
$ git clone$ cd webchat-cli$ npm install$ node ./bin/webchat.js