ProductAssistBot is a chatbot application built using Java, Spring Boot, and OpenAI's GPT-3 API. It provides an interface for users to chat with the bot and receive information about various products.
- Responds to user messages with pre-defined answers.
- Can be trained on new data to improve its responses.
│ ├── main/
│ │ ├── java/
│ │ │ ├── org/
│ │ │ │ ├── productx/
│ │ │ │ │ ├── ProductAssistBotApplication.java # main class
│ │ │ │ │ ├── controller/
│ │ │ │ │ │ ├──ProductController.java # controller class
│ │ │ │ │ ├── service/
│ │ │ │ │ │ ├──ChatbotService.java # service class
│ │ ├── resources/
│ │ │ ├── application.properties # configuration file
│ │ │ └── static/
│ │ │ ├── index.html # HTML file for chat page
│ ├── test/
│ │ └── java/
│ │ └── org/
│ │ └── productx/
├── build.gradle # Gradle configuration file
├── settings.gradle # Gradle settings file
To install ProductAssistBot, follow these steps:
- Clone the repository:
git clone https://github.com/KavidiDeSilva/ProductAssistBot.git
- Register for an API key on the OpenAI website
- Build the project:
./gradlew clean build
- Update the API_KEY value in
ChatbotService.java
andapplication.properties
to your own OpenAI API key. - Start the application:
java -jar ProductAssistBot.jar
- Open a web browser and navigate to
http://localhost:8080/
Enter a message in the chat interface and press Enter to receive a response from the chatbot. The chatbot will use the GPT-3 API to generate a response based on the user's input.
Please follow the contribution guidelines when submitting code changes.
Thank you for using ProductAssistBot!