a plugin to connect Botkit to the rasa NLU api
Switch branches/tags
Nothing to show
Clone or download
benbrown Merge pull request #2 from sohlex/master
Middleware compatible with Rasa NLU >= 0.8.x
Latest commit 278b0b4 Jul 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix for Rasa >= 0.8 Jun 19, 2017
.gitignore updated .gitignore Jun 19, 2017
package.json fix for Rasa >= 0.8 Jun 19, 2017
readme.md Initial commit Dec 16, 2016

readme.md

Botkit / rasa NLU plugin

This plugin provides Botkit developers a way to use the rasa NLU open source, self hosted natural language API.

var rasa = require('botkit-rasa')({rasa_uri: 'http://localhost:5000'});
controller.middleware.receive.use(rasa.receive);

controller.hears(['my_intent'],'message_received', rasa.hears, function(bot, message) {

    console.log('Intent:', message.intent);
    console.log('Entities:', message.entities);    

});