Welcome to the Chat Application! This is a simple chatbot application built using Java Swing. It allows users to interact with a chatbot, send messages, and receive replies.
In the project Swings library is used for the Interface, GSON library is used to serialize and deserialize json object and finally a custom Google Bard Api is used for integrating the power of Google Bard in the project.
The Discord chatbot extension of this project is currently in development and the source code is avaialaible in the following link [https://github.com/kiaririka/HealthDiscordBotMaven] will be deployed soon.
- User-friendly graphical user interface (GUI) built with Java Swing.
- Chat area to display messages between the user and the chatbot.
- Input field for users to enter messages and send them to the chatbot.
- Messages are displayed in a conversation-like format, with a sender label for each message.
- The chatbot responds to specific commands you can look for specific questions to ask by writing "what can i ask you?" or just ask anything to increas you knowledge
To run the Chat Application locally on your machine, follow these steps:
- git clone this repositry.
- Open the project in your preferred Java IDE.
- Build the project and resolve any dependencies (preferred maven with intellij)
- It uses JDK,swings library,GSON dependency. Be sure to add the dependencies before building.
- Run the ChatApplication class.
- The Chat Application GUI will open, and you can start interacting with the chatbot.
- Once the application starts, be a little patient as it takes some time for Bard to fetch the responses for reply.
Enter your message in the input field at the bottom of the application. Press the "Send" button or press Enter to send the message. The chatbot will process your message and provide a response. You can use the following commands:
- /about: Get information about the chatbot.
- /help: Display a list of available commands.
Feel free to customize and enhance the Chat Application to fit your needs. Here are a few ideas:
- Implement additional chatbot commands and functionalities.
- Improve the user interface by adding icons, colors, or themes.
- Connect the chatbot to external APIs or databases for more advanced interactions. Implement data persistence to save chat histories or user preferences.
The chatbot uses a custom Google Bard API to generate responses. The API integration is handled in the PostRequest class.
The project consists of the following files:
- PostRequest.java: Contains the code for making HTTP POST requests to the Google Bard API.
- ChatApplication.java: Implements the chat application GUI and handles user interactions.
- README.md: Documentation file explaining the project and how to use it.
An extension of the Chat Application is being developed to create a Discord chatbot. The Discord chatbot will provide the same functionalities as the Chat Application but will be accessible within a Discord server.
Specifications for the Discord chatbot extension:
- Platform: Discord
- Programming Language: Java (using Discord Java Api)
- Features: Real-time chat interaction, command-based communication, integration with the Google Bard API for responses.
The Discord chatbot extension is currently in development and is avaialaible in the following link [https://github.com/kiaririka/HealthDiscordBotMaven] will be deployed soon.