Implementation of Naive Bayes with TF-IDF Weighting for Intent Classification in the DALTO Gym Customer Service Chatbot
DOI:
https://doi.org/10.62411/tc.v25i4.17616Abstract
This study develops a WhatsApp-based customer service chatbot for Dalto Gym by combining Term Frequency–Inverse Document Frequency (TF-IDF) weighting with the Multinomial Naive Bayes algorithm to classify customer inquiry intents. The system addresses delays in manual customer service and the difficulty of interpreting informal, non-standard, and abbreviation-rich customer messages. A dataset of 313 customer inquiries was classified into six intent labels and processed through case folding, tokenizing, stopword removal, and stemming using PySastrawi. The processed text was transformed into TF-IDF features and classified using Multinomial Naive Bayes. The chatbot was implemented using the Flask framework, integrated with the Fonnte WhatsApp Gateway, and supported by a MySQL database. Experimental results showed an accuracy of 86.89%, a weighted F1-score of 0.86, an average local server processing time of 53.31 ms per message (excluding Fonnte network latency), and a 100% success rate in black-box testing. These results indicate that the system can provide fast and continuously available responses while reducing the administrative workload associated with repetitive customer inquiries. Keywords - Naive Bayes; TF-IDF; Intent Classification; Chatbot; WhatsApp GatewayDownloads
Published
Issue
Section
License
Copyright (c) 2026 Muhamad Hendry Irawan Ramadhan, Gina Purnama Insany, Lusiana Sani Parwati

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License Terms
All articles published in Techno.COM Journal are licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). This means:
1. Attribution
Readers and users are free to:
-
Share – Copy and redistribute the material in any medium or format.
-
Adapt – Remix, transform, and build upon the material.
As long as proper credit is given to the original work by citing the author(s) and the journal.
2. Non-Commercial Use
-
The material cannot be used for commercial purposes.
-
Commercial use includes selling the content, using it in commercial advertising, or integrating it into products/services for profit.
3. Rights of Authors
-
Authors retain copyright and grant Techno.COM Journal the right to publish the article.
-
Authors can distribute their work (e.g., in institutional repositories or personal websites) with proper acknowledgment of the journal.
4. No Additional Restrictions
-
The journal cannot apply legal terms or technological measures that restrict others from using the material in ways allowed by the license.
5. Disclaimer
-
The journal is not responsible for how the published content is used by third parties.
-
The opinions expressed in the articles are solely those of the authors.
For more details, visit the Creative Commons License Page:
? https://creativecommons.org/licenses/by-nc/4.0/









