An AI-based chatbot that provides information related to Indonesia's UU ITE Law.
Designed to contribute to SDG 16: Peace, Justice, and Strong Institutions by promoting access to legal information and supporting the rule of law in Indonesia.
HukumBot helps users understand their rights and responsibilities under the law, ensuring transparency, reducing legal barriers, and fostering justice through accessible legal information. By providing easy access to legal knowledge, it supports stronger institutions and promotes peace through informed decision-making.
- Answers questions related to UU ITE law.
- Provides legal summaries using Retrieval-Augmented Generation (RAG).
- Web interface built with Laravel and MySql as the database.
Retrieval-Augmented Generation (RAG) is a method that enhances the chatbot’s ability to provide accurate and context-aware responses. It combines information retrieval and text generation to deliver high-quality, relevant answers.

Image Source: CodingScape
- Python 3.8 or higher
- Laravel 11.x
- Node 21.7.1 or higher
- Clone the repository:
git clone https://github.com/axelkrnwn/Web-Prog.git
- Navigate to the project directory:
cd lawchatapp - Install Laravel dependencies:
composer install
- Back to root and locate model file
cd ../model - Install Python dependencies:
pip install -r requirements.txt
Navigate to the model directory and run the AI model:
- Run the AI model:
python app.py
Navigate to the lawchatapp directory and follow these steps:
- Compile Bootstrap assets for the frontend:
npm run dev
- Run database migrations (this will reset the database):
php artisan migrate:fresh
- Start the Laravel backend server:
php artisan serve
- Open the application in your browser:
http://localhost:8080
The home page introduces the application and allows users to navigate to the login/register page.
Users can log in or register to access the chatbot functionalities.
Once logged in, users can interact with the chatbot to get information about the law.
To try the application live, visit:
Live Application
Feel free to explore the different features of the app by logging in and using the chat functionalities.
Explanation:
- User: Stores user information such as login credentials.
- Chatroom: Stores chat logs, representing individual chat sessions or histories.
- Chat: Contains the individual messages within each Chatroom, including the legal summaries and information provided by the chatbot.
- Github: Frederick Chandra's Github
Frederick contributed to AI development and assisted with the design of the application.
- Github: Axel Kurniawan's Github
Axel was responsible for developing the chat interface and implementing its core functionality.
- Github: Bryan Jo's Github
Bryan handled the implementation of user authentication, including the login and registration features.
- Github: Eugene's Github
Eugene was responsible for the overall design of the application, including the UI/UX and user-facing interface.




