Skip to content

A lightweight Chatbot UI framework

License

Notifications You must be signed in to change notification settings

annalihan/chatbot-ui

 
 

Repository files navigation

A lightweight Chatbot UI

PC

image

Mobile

image

Project Description

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

Configuration

  • Optional configuration based on API mode or self-defined data
    • For self-definition mode, data structure can be modified from chatRoomDefaultStartModel in Config.ts. ChatbotDefaultStartModel is default model.
    • For API mode, chatStartApiUrl should be provided in Config.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.

Related "Model" and "Interface"

  • Related model could be change in Model directory
  • Chatroom related function is wrapped in ChatBotServer.

How to run in dev mode and mock response

Building for production

  • npm run build

Reference

About

A lightweight Chatbot UI framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.3%
  • CSS 8.4%
  • JavaScript 8.0%
  • HTML 3.3%