Designing a Chatbot Application Using the Flask Framework and Rule-Based Algorithm

Abstract
This research aims to develop a website based chatbot application implemented at PT. International Hardware Indo using the Flask framework and Rule-Based algorithm. The application is designed to improve customer service efficiency by providing quick answers to frequently asked questions, reducing the workload of customer service, and addressing operational time constraints. The chatbot development process follows the Waterfall methodology, which includes requirements analysis, design, implementation, testing, and maintenance. The Rule-Based algorithm is employed to map user input to the company dataset through logical "IF-THEN" rules. The research results demonstrate a chatbot accuracy rate of 90%, as measured through black box testing, despite limitations in handling input outside the trained dataset. The chatbot is designed with hybrid navigation, a simple interface, and cross-platform device compatibility. This research contributes to the development of chatbot based information systems that are widely accessible to customers, thereby enhancing user experience and improving operational efficiency for the company.
Downloads
References
R. Parlika, S. I. Pradika, A. M. Hakim, and K. R. N. Manab, “Bot Whatsapp Sebagai Pemberi Data Statistik COVID-19 Menggunakan PHP, Flask, Dan MySQL,” J. Inform. dan Sist. Inf., vol. 1, no. 2 SE-Articles, pp. 282–293, 2020, [Online]. Available: http://jifosi.upnjatim.ac.id/index.php/jifosi/article/view/101
R. Z. Ramadhani, H. Rusdianto, and V. Yahya, “Rancang Bangun Aplikasi Pusat Informasi Sekolah Dengan Penerapan Chatbot Menggunakan Aiml Berbasis Android Pada Smk Otomotif Al Husna Tangerang,” JIKA (Jurnal Inform., vol. 3, no. 2, pp. 27–33, 2019, doi: 10.31000/jika.v3i2.2076.
S. Nurhayati and M. A. H, “Pembangunan Aplikasi Chatbot Midwify sebagai Media Pendukung Pembelajaran Ilmu Kebidanan Berbasis Android di Stikes Bhakti Kencana Bandung,” Komputika J. Sist. Komput., vol. 8, no. 1, pp. 45–52, 2019, doi: 10.34010/komputika.v8i1.1630.
A. Kedia and M. Rasu, Hands-On Python Natural Language Processing: Explore tools and techniques to analyze and process text with a view to building real-world NLP applications. Packt Publishing Ltd, 2020.
N. K. Wangsanegara and B. Subaeki, “Implementasi Natural Language Processing Dalam Pengukuran Ketepatan Ejaan Yang Disempurnakan (Eyd) Pada Abstrak Skripsi Menggunakan Algoritma Fuzzy Logic,” J. Tek. Inform., vol. 8, no. 2, 2015, doi: 10.15408/jti.v8i2.3185.
S. Vajjala, B. Majumder, A. Gupta, and H. Surana, Practical natural language processing: a comprehensive guide to building real-world NLP systems. O’Reilly Media, 2020.
F. Ishlakhuddin and A. SN, “Ontology-based Chatbot to Support Monitoring of Server Performance and Security By Rule-base,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 15, no. 2, p. 131, 2021, doi: 10.22146/ijccs.58588.
F. Saputra, R. M. Handoko, W. Putra, R. Priskila, and V. H. Pranatawijaya, “Chatbot Berbasis Whatsapp Teknik Informatika Universitas Palangkaraya: Rules Based System,” J. Teknol. Inform. dan Komput., vol. 10, no. 1, pp. 296–308, 2024, doi: 10.37012/jtik.v10i1.2111.
M. I. Ghozali, A. A. Riadi, D. A. Putra, and W. H. Sugiharto, “Pengembangan Sistem Sortir Otomatis untuk Jeruk Citrus: Integrasi Teknologi Sensor dan Algoritma Rule-Based,” vol. 4, no. 3, pp. 241–248, 2024, [Online]. Available: https://djournals.com/resolusi
N. I. Wijayanti, R. Yulianti, and B. Wijaya, “Perancangan Chat Bot Messenger Dengan Pendekatan User Centered Design (Studi Kasus : Perpustakaan Fakultas Teknik Universitas UGM),” Media Pustak., vol. 26, no. 4, pp. 254–267, 2019.
A. Lubis and I. Sumartono, “Implementasi Layanan Akademik Berbasis Chatbot untuk Meningkatkan Interaksi Mahasiswa,” Media Online, vol. 3, no. 5, pp. 397–403, 2023.
L. Hakim, S. Gustina, S. F. Putri, and S. U. Faudiah, “Perancangan Chatbot di Universitas Proklamasi 45,” Edumatic J. Pendidik. Inform., vol. 4, no. 1, pp. 91–100, 2020, doi: 10.29408/edumatic.v4i1.2157.
A. Dwi R, F. Imamah, Y. M. Andre S, and Andriansyah, “Aplikasi chatbot (milki bot) yang terintegrasi dengan web CMS untuk customer service pada UKM minsu,” J. Cendikia, vol. XVI, pp. 2–2, 2018.
Eka Yuniar and Heri Purnomo, “Implementasi Chatbot ‘Alitta’ Asisten Virtual Dari Balittas Sebagai Pusat Informasi Di Balittas,” Antivirus J. Ilm. Tek. Inform., vol. 13, no. 1, pp. 24–35, 2019, doi: 10.35457/antivirus.v13i1.714.
R. S. Wallace, “El programa Artificial Linguistic Internet Computer Entity (A.L.I.C.E.).,” Parsing Turing Test, pp. 181–210, 2009.
B. R. Ranoliya, N. Raghuwanshi, and S. Singh, “Chatbot for university related FAQs,” 2017 Int. Conf. Adv. Comput. Commun. Informatics, ICACCI 2017, vol. 2017-Janua, no. September 2017, pp. 1525–1530, 2017, doi: 10.1109/ICACCI.2017.8126057.
B. Rusmarasy, B. Priyambadha, and F. Pradana, “Pengembangan Chat Bot pada CoMa untuk Memberikan Motivasi Kepada Pengguna Menggunakan AIML,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 3, no. 5, pp. 4484–4490, 2019.
D. Suryani and E. L. Amalia, “Aplikasi Chatbot Objek Wisata Jawa Timur,” Smartics J., vol. 3, no. 2, pp. 47–54, 2017.
I. IHI, “Home Page.” Accessed: Nov. 25, 2024. [Online]. Available: https://www.ihi.co.id/
V. R. Prasetyo, N. Benarkah, and V. J. Chrisintha, “Implementasi Natural Language Processing Dalam Pembuatan Chatbot Pada Program Information Technology Universitas Surabaya,” Teknika, vol. 10, no. 2, pp. 114–121, 2021, doi: 10.34148/teknika.v10i2.370.
Elita Natalia Sugianto, Jessica Aurelia Sujangga, N. Delvia, Verdiana Ayustika, and Agus Cahyo Nugroho, “Pengembangan Chatbot ‘Ciovita’ Virtual Assistant Cioccolato Brownie Semarang Dengan Metode Waterfall,” J. Appl. Comput. Sci. Technol., vol. 3, no. 2, pp. 179–185, 2022, doi: 10.52158/jacost.v3i2.348.
F. Supandi and M. Sudir, “Analisis Resiko Pada Pengembangan Perangkat Lunak Yang Menggunakan Metode Waterfall Dan Prototyping,” in Seri Prosiding Seminar Nasional Dinamika Informatika, 2019.
A. Yulianto et al., “Development of an Integrated Chatbot on the Website Using IBM Watson Assistant,” pp. 217–232.
A. El Hayat Soumiya and M. Bahaj, “Converting UML class diagrams into temporal object relational database,” Int. J. Electr. Comput. Eng., vol. 7, no. 5, pp. 2823–2832, 2017, doi: 10.11591/ijece.v7i5.pp2823-2832.
D. Christianto, E. Siswanto, and R. Chaniago, “Penggunaan Named Entity Recognition dan Artificial Intelligence Markup Language untuk Penerapan Chatbot Berbasis Teks,” J. Telemat., vol. 10, no. 2, pp. 61–68, 2016, doi: 10.61769/telematika.v10i2.130.
B. Gunawan and M. Sidik, “Pembuatan Aplikasi Chatbot Kolektor Dengan Metode Extreme Programming Dan Strategi Forward Chaining,” J. Int., vol. 8, no. 2, pp. 293–302, 2021, doi: 10.25126/jtiik.202184298.
D. R. Lakshmi and S. S. Mallika, “A review on web application testing and its current research directions,” Int. J. Electr. Comput. Eng., vol. 7, no. 4, pp. 2132–2141, 2017, doi: 10.11591/ijece.v7i4.pp2132-2141.
D. K. Kim, “Development of mobile cloud applications using UML,” Int. J. Electr. Comput. Eng., vol. 8, no. 1, pp. 596–604, 2018, doi: 10.11591/ijece.v8i1.pp596-604.
P. Vogel, T. Klooster, V. Andrikopoulos, and M. Lungu, “A Low-Effort Analytics Platform for Visualizing Evolving Flask-Based Python Web Services,” Proc. - 2017 IEEE Work. Conf. Softw. Vis. Viss. 2017, vol. 2017-Octob, pp. 109–113, 2017, doi: 10.1109/VISSOFT.2017.13.
D. Ghimire, “Comparative study on Python web frameworks: Flask and Django,” Metrop. Univ. Appl. Sci., no. May, pp. 13–33, 2020.
A. Jolie, D. Dedrick, R. K. Sugeng, W. A. Lee, and A. Yulianto, “Aplikasi Sistem Manajemen Perpustakaan dengan Penerapan Pemrograman Berorientasi Objek,” Telcomatics, vol. 7, no. 2, pp. 61–69, 2022, doi: 10.37253/telcomatics.v7i2.7349.
. N., A. Ibrahim, and A. Ambarita, “Sistem Informasi Pengaduan Pelanggan Air Berbasis Website Pada Pdam Kota Ternate,” IJIS - Indones. J. Inf. Syst., vol. 3, no. 1, p. 10, 2018, doi: 10.36549/ijis.v3i1.37.
S. Nidhra, “Black Box and White Box Testing Techniques - A Literature Review,” Int. J. Embed. Syst. Appl., vol. 2, no. 2, pp. 29–50, 2012, doi: 10.5121/ijesa.2012.2204.

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under an Attribution 4.0 International (CC BY 4.0) that allows others to share — copy and redistribute the material in any medium or format and adapt — remix, transform, and build upon the material for any purpose, even commercially with an acknowledgment of the work's authorship and initial publication in this journal.