Chatbot UI project based on React framework, Node 16+, with following functionality
- PC and Mobile supported
- Greeting message
- Showing example question
- Send and recieve messages
- Positive and Negative review
- Optional configuration based on API mode or self-defined data
- For self-definition mode, data structure can be modified from
chatRoomDefaultStartModel
inConfig.ts
.ChatbotDefaultStartModel
is default model. - For API mode,
chatStartApiUrl
should be provided inConfig.ts
file based on the project API URL. Notice that in this mode, the URL list below should also be provided.- Config.chatMessageSendApi:The API url that performs the message sending.
- Config.chatMessageEvaluateApi: The API url that performs the action when user click like/dislike review.
- For self-definition mode, data structure can be modified from
- Related model could be change in
Model
directory - Chatroom related function is wrapped in
ChatBotServer
.
- npm run start
- For response mocking,start up Mockoon, load and config
chatbot_management_mock.json
file - Open http://localhost:3000/?chatbot_id=xxx, chatbot_id should be provided
- npm run build