Implementasi Chatbot Cuaca Berbasis SBERT dan LLM Gemini Menggunakan OpenWeather API
Original Full-Text Article
Download published version for reading and archivingAbstract
This study discusses the development of a Natural Language Processing (NLP)-based weather chatbot dashboard capable of receiving natural Indonesian language queries and displaying weather information interactively. The system combines Sentence-BERT (SBERT) paraphrase-multilingual-MiniLM-L12-v2 as a text similarity engine, Gemini 2.5-flash Large Language Model (LLM) as a natural language summary generator, and the OpenWeather API as a real-time weather data source. A zero-shot semantic similarity approach is used without fine-tuning, with intent determination based on cosine similarity and a threshold of 0.5 optimized through testing several threshold values. The development method used is the Waterfall model with stages of requirements analysis, architectural design, NLP module implementation and API integration, React dashboard frontend development, as well as functional black-box testing and performance metric evaluation. The test results show that SBERT with a threshold of 0.5 produces an intent classification accuracy of 90% in 20 test scenarios, which increases to 100% after being combined with rule-based auto-adjust and fallback mechanisms. City entity extraction with a 1–3 word sliding window against city.list.json achieved 100% accuracy on 15 city-based queries, while macro metrics yielded a precision of 0.9286, a recall of 0.90, and an F1‑score of 0.8958. The integration of the OpenWeather API and Gemini enables the presentation of natural, informative weather summaries and visualization of real-time weather data in the form of interactive graphs on a React-based dashboard.
Author Biographies
Program Studi Teknik Informatika, Fakultas Ilmu Komputer, Universitas Mercu Buana, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta, Indonesia.
Program Studi Teknik Informatika, Fakultas Ilmu Komputer, Universitas Mercu Buana, Kota Jakarta Barat, Daerah Khusus Ibukota Jakarta, Indonesia.
How to Cite
This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License .
- Share: You are free to copy, distribute, and transmit the work in any medium or format.
- Adapt: You are free to remix, transform, and build upon the work for any purpose, even commercially.
- Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
References
Total: 16 References- Abdul, M., Fathuddin, H., Prakarsa Mandyartha, E., & Nurlaili, A. L. (2025). Penerapan Sentence-BERT dan cosine similarity untuk pencarian semantik dokumen skripsi dalam format PDF. R2J, 8(1). https://doi.org/10.38035/rrj.v8i1.
- Amur, Z. H., Kwang Hooi, Y., Bhanbhro, H., Dahri, K., & Soomro, G. M. (2023). Short-text semantic similarity (STSS): Techniques, challenges and future perspectives. Applied Sciences (Switzerland), 13(6). MDPI. https://doi.org/10.3390/app13063911.
- Bharath, D., Dolok Lauro Sitorus, M., Teknologi Informasi, F., & Tarumanagara, U. (2024). Perancangan dashboard sebagai perbandingan visualisasi data iklim BMKG di Jakarta. Journal of Information Technology and Computer Science (INTECOMS), 7(6).
- Hardiman, J. P. W., Thio, D. C., Zakiyyah, A. Y., & Meiliana. (2024). AI-powered dialogues and quests generation in role-playing games using Google’s Gemini and Sentence-BERT framework. Procedia Computer Science, 245(C), 1111–1119. https://doi.org/10.1016/j.procs.2024.10.340.
- Holis, R. M., Utomo, P. E. P., & Hutabarat, B. F. (2025). Semantic FAQ chatbot using SBERT (Sentence-BERT) and cosine similarity for academic services. Brilliance: Research of Artificial Intelligence, 5(2), 915–922. https://doi.org/10.47709/brilliance.v5i2.7027.
Similar Articles
Articles sharing related keywords and machine learning classifications: