Skip to content

Very simple chatbot UI that communicates via websockets with a server

Notifications You must be signed in to change notification settings

onepointconsulting/chatbot-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot UI

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.

Demo

You can find a demo here:

http://176.34.128.143:8082/index.html

Installation

Make sure you have node 18+ installed.

Then run:

npm install

Husky pre-commit hook

Please run this command to install the pre-commit hook

npx husky install

to install the libraries.

Running

Please run the following command to start the UI in development mode

yarn run dev

Websocket API

Incoming messages

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

Outgoing messages

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

About

Very simple chatbot UI that communicates via websockets with a server

Resources

Stars

Watchers

Forks

Packages

No packages published