api-ai-botkit
Utility lib for creating bots. So far only tested with Slack.
For usage sample code see examples/sample_bot.js
Steps for using lib
Install library from npm
npm install --save api-ai-botkit
Import Library
const apiaibotkit = ;
Create apiai
object using token from http://api.ai website
const apiai = ;
Use apiai
object in controller.hears
controller;
Implement different reactions to appropriate actions
apiai action'smalltalk.greetings' { var responseText = respresultfulfillmentspeech; bot; } action'input.unknown' { bot; };