Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

implement rasa middleware with botkit #29

Open
chhavvi opened this issue Feb 23, 2018 · 4 comments
Open

implement rasa middleware with botkit #29

chhavvi opened this issue Feb 23, 2018 · 4 comments

Comments

@chhavvi
Copy link

chhavvi commented Feb 23, 2018

i want to integrate rasa middleware in botkit-starter-web (the new functionality added) , i dont know how to do , plz help its urgent .

@Naktibalda
Copy link
Contributor

Look at https://github.com/howdyai/botkit-rasa

Remove all botkit studio stuff from bot.js

Register middleware somewhere between var controller = Botkit.socketbot(bot_options);
and controller.openSocketServer(controller.httpserver);
by adding this code

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

and use rasa.hears in your controller.hears calls as given in the example.

@peterswimm
Copy link

Ideally you should be able to integrate RASA AND use Studio, where rasa defined intents trigger Studio based scripts and threads.

@chhavvi
Copy link
Author

chhavvi commented Feb 27, 2018 via email

@Purus
Copy link

Purus commented Jun 1, 2018

You can refer the below repo for the sample integration. It works well.

https://github.com/matteoredaelli/botkit-starter-web-rasa-nlu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants