Add ability to switch/handoff conversation between two Rasa endpoints#150
Add ability to switch/handoff conversation between two Rasa endpoints#150rgstephens wants to merge 7 commits into
Conversation
|
|
|
What is the purpose of this PR? Looks like you just copied the Rasa fork? Why not use that directly? |
|
I'd like to extend this code and think it is a valuable addition to the original project. |
hotzenklotz
left a comment
There was a problem hiding this comment.
The PR is a bit tacky as is. Please clean up any changes that were introduced by the Rasa fork that should not affect the current behavior.
Also, I would appreciate it if the Readme was clearer on what this features does. It is a handoff from one Rasa bot backend to another Rasa bot backend. (and not to any other third party service)
You will also need to sign our community contributor license agreement. (see bot message above)
| @@ -1,3 +1,8 @@ | |||
| > This fork is under development to enable handing off from one bot to another. | |||
|
|
||
| ## Usage | ||
| 1. Embed the `chatroom.js` in the HTML of your website and configure it to connect to your Rasa bot. Either use the S3 hosted version or build it yourself. (see below) | ||
| 1. Embed the `chatroom.js` in the HTML of your website and configure it to connect to your Rasa bot. Either use the S3 hosted version or build it yourself. (see below) You will have to build it yourself to use the handoff capability |
| ```html | ||
| <head> | ||
| <link rel="stylesheet" href="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.css" /> | ||
| <link rel="stylesheet" href="http://127.0.0.1:8080/dist/Chatroom.css" /> |
| <div class="chat-container"></div> | ||
|
|
||
| <script src="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.js"/></script> | ||
| <script src="http://127.0.0.1:8080/dist/Chatroom.js"/></script> |
| speechRecognition: "en-US", | ||
| welcomeMessage: "Hallo! How can I help you?", | ||
| host: "http://localhost:5005" | ||
| // speechRecognition: "en-US", |
There was a problem hiding this comment.
Undo, speechRecognition comment
| voiceLang: "en-US" | ||
| welcomeMessage: "Hallo! How can I help you?", | ||
| host: "http://localhost:5005" | ||
| // speechRecognition: "en-US", |
There is an implementation and description of this feature in the Rasa helpdesk example bot docs here.