RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
39.84k stars 10.24k forks source link

Bot platform adapter for Rasa #10457

Open timkinnane opened 6 years ago

timkinnane commented 6 years ago

The recent release of our Node.js SDK with a platform agnostic driver for building bots on Rocket.Chat should unlock potential for this issue. We're hoping to make progress from upcoming Google Summer of Code projects but also encourage any interested community members to check out the SDK and start building for their preferred platform.

Get the SDK

See examples implementation in Hubot adapter

Lucioric2000 commented 4 years ago

I would want to contribute heavily for this bot integration to mature, but I would ask if someone can sponsor me to do so.

dudanogueira commented 4 years ago

There is a nice, working implementation here, from the rasa-ptbr-boilerplate, but looks like it uses an old version of the Rocket Chat Sdk (https://github.com/RocketChat/Rocket.Chat.py.SDK)

https://github.com/lappis-unb/rasa-ptbr-boilerplate/blob/master/bot/connector.py

The advantages of this approach, from the user point of view, is that: 1) The Bot looks online 2) It updates the "is typing" while the bot is about to answer the dialogue.

Those 2 advantages can't be achieved if using the options as in: https://rasa.com/docs/rasa/user-guide/connectors/rocketchat/

The disavantages, as is implemented, you need to tie the channel from the rasa runtime on the code (note sure how to do that from CLI), and as is implemented, it probably ignores the Rasa Tracker Store eventually configured under endpoints.yaml