Implementation of a WhatsApp-based Canteen Menu Chatbot using TF–IDF and cosine similarity: A case study of employees at Matahari Department Store, Sunrise Mall and Mojokerto
DOI:
https://doi.org/10.24036/jptk.v9i1.48523Keywords:
WhatsApp Chatbot, TF–IDF, cosine similarity, information retrieval, workplace information service, canteen menuAbstract
This study addresses the limitations of traditional workplace canteen menu information sharing, such as noticeboards and verbal announcements, which can cause delays in shift-based settings. A WhatsApp-based canteen menu chatbot was designed, implemented, and evaluated for Matahari Department Store Sunrise Mall Mojokerto (Indonesia) using Cosine Similarity for text matching. The system integrates WhatsApp messaging via the WhatsApp API with an application server and an admin web panel built on Laravel–MySQL, enabling the management of daily menus, canteen schedules, FAQ patterns, user access, and conversation logs. User queries and stored question patterns were preprocessed (lowercasing, cleaning, tokenization), vectorized using TF–IDF, and matched using Cosine Similarity with a 0.6 acceptance threshold to route responses into three classes (Static, Menu, or Schedule) or a fallback reply. Functional verification through black-box testing confirmed the correct operation of core modules and end-to-end message handling. Similarity computation was validated against a manual example (0.816 vs. 0.8165). Robustness testing on 50 employee questions (25 standard and 25 informal/misspelled) achieved 92% accuracy (46/50); retrieval effectiveness measured as micro-F1 across the three response classes was approximately 0.95, with four queries treated as unmatched. A baseline comparison showed that Cosine Similarity was more tolerant to paraphrasing than SQL keyword matching. The case study ran from August to November 2025, and conversation logs were used during the maintenance phase to refine FAQ patterns and improve coverage. Overall, the chatbot offers a lightweight and deployable solution for routine, time-sensitive internal information services in retail workplaces.
Downloads
References
Adu-Gyamfi, M., He, Z., Nyame, G., Boahen, S., & Frempong, M. F. (2021). Effects of internal csr activities on social performance: the employee perspective. Sustainability (Switzerland), 13(11), 1–28. https://doi.org/10.3390/su13116235
Alateeg, S., & Alhammadi, A. (2024). The Impact of Organizational Culture on Organizational Innovation with mediation role of Strategic Leadership in Saudi Arabia. Journal of Statistics Applications and Probability, 13(2), 843–858. https://doi.org/10.18576/jsap/130220
Amrit, C., & Narayanappa, A. K. (2025). An analysis of the challenges in the adoption of MLOps. Journal of Innovation and Knowledge, 10(1), 100637. https://doi.org/10.1016/j.jik.2024.100637
Andrade, I. M. De, & Tumelero, C. (2022). Increasing customer service efficiency through artificial intelligence chatbot. Revista de Gestao, 29(3), 238–251. https://doi.org/10.1108/REGE-07-2021-0120
Aristovnik, A., Ravšelj, D., & Murko, E. (2024). Decoding the Digital Landscape: An Empirically Validated Model for Assessing Digitalisation across Public Administration Levels. Administrative Sciences, 14(3), 1–22. https://doi.org/10.3390/admsci14030041
Attigeri, G., Agrawal, A., & Kolekar, S. V. (2024). Advanced NLP Models for Technical University Information Chatbots: Development and Comparative Analysis. IEEE Access, 12, 29633–29647. https://doi.org/10.1109/ACCESS.2024.3368382
Blagoev, B., Hernes, T., Kunisch, S., & Schultz, M. (2024). Time as a Research Lens: A Conceptual Review and Research Agenda. Journal of Management, 50(6), 2152–2196. https://doi.org/10.1177/01492063231215032
Branda, F., Stella, M., Ceccarelli, C., Cabitza, F., Ceccarelli, G., Maruotti, A., Ciccozzi, M., & Scarpa, F. (2025). The Role of AI-Based Chatbots in Public Health Emergencies: A Narrative Review. Future Internet, 17(4), 1–32. https://doi.org/10.3390/fi17040145
Breathnach, S., Llewellyn, C. H., Koutoukidis, D. A., van Rugge, C. R., Sutherland, A., & Lally, P. (2020). Experience of using an online pre-ordering system for a workplace canteen that offers lower-energy swaps: A think-aloud study. Nutrients, 12(12), 1–26. https://doi.org/10.3390/nu12123878
Cedergren, A., & Hassel, H. (2024). Building organizational adaptive capacity in the face of crisis: Lessons from a public sector case study. International Journal of Disaster Risk Reduction, 100, 104235. https://doi.org/10.1016/j.ijdrr.2023.104235
Chen, T., Gascó-Hernandez, M., & Esteve, M. (2024). The Adoption and Implementation of Artificial Intelligence Chatbots in Public Organizations: Evidence from U.S. State Governments. American Review of Public Administration, 54(3), 255–270. https://doi.org/10.1177/02750740231200522
Dwivedi, Y. K., Ismagilova, E., Hughes, D. L., Carlson, J., Filieri, R., Jacobson, J., Jain, V., Karjaluoto, H., Kefi, H., Krishen, A. S., Kumar, V., Rahman, M. M., Raman, R., Rauschnabel, P. A., Rowley, J., Salo, J., Tran, G. A., & Wang, Y. (2021). Setting the future of digital and social media marketing research: Perspectives and research propositions. International Journal of Information Management, 59, 102168. https://doi.org/10.1016/j.ijinfomgt.2020.102168
Elciyar, K. (2025). Users’ privacy behaviors in response to WhatsApp policy changes. Information and Computer Security, 33(4), 573–589. https://doi.org/10.1108/ICS-04-2024-0096
Hayati, C. (2019). Shopping Motivations and Their Influence on Shopping Experience in Sunrise Mall Mojokerto. Media Mahardhika, 17(2), 264. https://doi.org/10.29062/mahardika.v17i2.83
He, W., Zhang, Z. (Justin), & Li, W. (2021). Information technology solutions, challenges, and suggestions for tackling the COVID-19 pandemic. International Journal of Information Management, 57, 102287. https://doi.org/10.1016/j.ijinfomgt.2020.102287
Himpong, M. D., Waleleng, G. J., & Warouw, D. M. D. (2023). The Function of Whatsapp Group as a Medium of Communication Government and People in Sinisir Village South Minahasa Regency. Journal La Sociale, 4(5), 301–110. https://doi.org/10.37899/journal-la-sociale.v4i5.900
Kernan Freire, S., He, T., Wang, C., Niforatos, E., & Bozzon, A. (2025). Factory operators’ perspectives on cognitive assistants for knowledge sharing: challenges, risks, and impact on work. Behaviour and Information Technology, 1–27. https://doi.org/10.1080/0144929X.2025.2574373
Laymouna, M., Ma, Y., Lessard, D., Schuster, T., Engler, K., & Lebouché, B. (2024). Roles, Users, Benefits, and Limitations of Chatbots in Health Care: Rapid Review. Journal of Medical Internet Research, 26, 1–28. https://doi.org/10.2196/56930
Liu, H., Chen, X., & Liu, X. (2022). A Study of the Application of Weight Distributing Method Combining Sentiment Dictionary and TF-IDF for Text Sentiment Analysis. IEEE Access, 10, 32280–32289. https://doi.org/10.1109/ACCESS.2022.3160172
Lokman, A. S., Ameedeen, M. A., & Ghani, N. A. (2020). A Conceptual IR Chatbot Framework with Automated Keywords-based Vector Representation Generation. IOP Conference Series: Materials Science and Engineering, 769, 1–9. https://doi.org/10.1088/1757-899X/769/1/012020
Moganadas, S. R., & Goh, G. G. G. (2022). Digital Employee Experience Constructs and Measurement Framework: A Review and Synthesis. International Journal of Technology, 13(5), 999–1012. https://doi.org/10.14716/ijtech.v13i5.5830
Mohamad Suhaili, S., Salim, N., & Jambli, M. N. (2021). Service chatbots: A systematic review. Expert Systems with Applications, 184(July), 115461. https://doi.org/10.1016/j.eswa.2021.115461
Nidhra, S. (2012). Black Box and White Box Testing Techniques - A Literature Review. International Journal of Embedded Systems and Applications, 2(2), 29–50. https://doi.org/10.5121/ijesa.2012.2204
Oyewale, C. T., Osei, E., Gyasi, S. K., Boahene, U. O., & Adeyemi, F. A. (2026). A Descriptive Analysis of WhatsApp Usage: Media Sharing, Storage Practices, and Sustainability Implications. Proceedings of Fifth International Conference on Computing and Communication Networks, 329–343. https://doi.org/10.1007/978-3-032-14197-2_29
P, T. S., & G, K. (2024). Systematic review on utilization of WhatsApp in education. E-Learning and Digital Media, 1–14. https://doi.org/10.1177/20427530241239424
Paul, J., Ueno, A., Dennis, C., Alamanos, E., Curtis, L., Foroudi, P., Kacprzak, A., Kunz, W. H., Liu, J., Marvi, R., Nair, S. L. S., Ozdemir, O., Pantano, E., Papadopoulos, T., Petit, O., Tyagi, S., & Wirtz, J. (2024). Digital transformation: A multidisciplinary perspective and future research agenda. International Journal of Consumer Studies, 48(2), 1–28. https://doi.org/10.1111/ijcs.13015
Petersen, K., Wohlin, C., & Baca, D. (2009). The Waterfall Model in Large-Scale Development. Product-Focused Software Process Improvement, 386–400. https://doi.org/10.1007/978-3-642-02152-7_29
Sachdeva, A., Kim, A., & Dennis, A. R. (2024). Taking the Chat out of Chatbot? Collecting User Reviews with Chatbots and Web Forms. Journal of Management Information Systems, 41(1), 146–177. https://doi.org/10.1080/07421222.2023.2301175
Saravanos, A., & Curinga, M. X. (2023). Simulating the Software Development Lifecycle: The Waterfall Model. Applied System Innovation, 6(6), 1–19. https://doi.org/10.3390/asi6060108
Setiawan, G. H., & Adnyana, I. M. B. (2023). Improving Helpdesk Chatbot Performance with Term Frequency-Inverse Document Frequency (TF-IDF) and Cosine Similarity Models. Journal of Applied Informatics and Computing, 7(2), 252–257. https://doi.org/10.30871/jaic.v7i2.6527
Shrivastava, R., Pujahari, A., Singh, S. P., & Bhowmik, T. (2022). Efficient Question Answering in Chatbot Using TF-IDF and Cosine Similarity. Innovations in Information and Communication Technologies, 25–31. https://doi.org/10.1007/978-981-19-3796-5_3
Shrivastava, R., Pujahari, A., Singh, S. P., & Bhowmik, T. (2023). Efficient Question Answering in Chatbot Using TF-IDF and Cosine Similarity. Innovations in Information and Communication Technologies, 25–31. https://doi.org/10.1007/978-981-19-3796-5_3
Skuridin, A., & Wynn, M. (2024). Chatbot Design and Implementation: Towards an Operational Model for Chatbots. Information (Switzerland), 15(4), 1–28. https://doi.org/10.3390/info15040226
Sofyani, H., Riyadh, H. A., & Fahlevi, H. (2020). Improving service quality, accountability and transparency of local government: The intervening role of information technology governance. Cogent Business and Management, 7(1), 1–20. https://doi.org/10.1080/23311975.2020.1735690
Taylor, T. K., Das, R., Mueller, K. L., Pransky, G. S., Harber, P., McLellan, R. K., Hartenbaum, N. P., Behrman, A. J., Roy, D. R., Blink, R. C., & Dreger, M. (2021). Safely Returning America to Work Part II Industry-Specific Guidance. Journal of Occupational and Environmental Medicine, 63(6), E373–E391. https://doi.org/10.1097/JOM.0000000000002206
Wang, W. T., & Wu, S. Y. (2021). Knowledge management based on information technology in response to COVID-19 crisis. Knowledge Management Research and Practice, 19(4), 468–474. https://doi.org/10.1080/14778238.2020.1860665
Zhang, L. (2025). Features extraction based on Naïve Bayes algorithm and TF-IDF for news classification. Plos One, 20, 1–17. https://doi.org/10.1371/journal.pone.0327347
Zhang, W., Yoshida, T., & Tang, X. (2011). A comparative study of TF*IDF, LSI and multi-words for text classification. Expert Systems with Applications, 38(3), 2758–2765. https://doi.org/10.1016/j.eswa.2010.08.066
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Ramadhani Handika Saputra, Hadi Sucipto

This work is licensed under a Creative Commons Attribution 4.0 International License.


