Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
api-ai-botkit-facebook
Advanced tools
Readme
Utility lib for creating Facebook Messenger bots with Botkit and api.ai. Based off of the api-ai-botkit.
For usage sample code see examples/sample_bot.js
Install library from npm
npm install --save api-ai-botkit-facebook
Import Library
const apiaibotkit = require('api-ai-botkit-facebook');
Create apiai
object using token from http://api.ai website
const apiai = apiaibotkit(apiaiToken);
Use apiai
object in controller.hears
controller.hears('.*', 'message_received', function (bot, message) {
apiai.process(message, bot);
});
Implement different reactions to appropriate actions
apiai
.action('greetings', function (message, resp, bot) {
var responseText = resp.result.fulfillment.speech;
bot.reply(message, responseText);
})
.action('input.unknown', function (message, resp, bot) {
bot.reply(message, "Sorry, I don't understand");
});
FAQs
Utility lib for creating Facebook Messenger bots with Botkit and api.ai
We found that api-ai-botkit-facebook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).