The chatbot UI is intended to be a small chatbot user interface which can be used to interact with chatbots.
It uses wwebsockets for communication with a back end.
You can find a demo here:
http://176.34.128.143:8082/index.html
Make sure you have node 18+ installed.
Then run:
npm install
Please run this command to install the pre-commit hook
npx husky install
to install the libraries.
Please run the following command to start the UI in development mode
yarn run dev
Name | Description | Optional |
---|---|---|
"connect" | Fired when the connection to the server is established | |
"disconnect" | Fired when the connection to the server is stopped | |
"connect_error" | Fired when there is a connection error | Yes |
"connect_failed" | Fired when the connection fails | Yes |
"server_message" | Fired when a new token is sent from the server | No |
"stopstreaming" | Fired when there is an error | No |
Name | Description | Optional |
---|---|---|
"client_message" | Fired when the connection from the user is received | |
"stop_stream" | Fired when the clients decided that it wants to stop the stream |