Overview
This Chatbot program could respond to user’s questions, store unknown questions to the database, and send them to admin. The purpose of building this program is to understand the core of a chatbot.
Architecture
- A frontend part for clients (Sender.java): this part sends questions from clients to backend part (Backend.java) and receives answers from Backend.java to reply to clients.
- A frontend part for admins (Admin.java): this part receives new questions from backend part (Server.java) and shows them to the admin.
- A backend part (Backend.java and Server.java): Backend.java will receive clients’ questions from Sender.java, retrieve answers from database (newQuestions.txt) and send them back to Sender.java. If the questions are unknown, it will add them into database. Server.java will check database (newQuestion.txt) and send unknown questions to Admin.java.