Prototype of AI-Integrated Chatbot for Shallot Price Forecasting and Advisory Support to Assist Farmer Decision Making
DOI:
https://doi.org/10.19028/jtep.014.1.17-31Keywords:
Chatbot, LLM (large language model), Price Forecasting, Random forest regressionAbstract
Forecasting agricultural commodity prices is a fundamental tool for sustainable development in the agricultural economy and broader economic stability. With rapid and simple access to information on future prices, farmers can plan their planting schedules to optimize profits. This study presents a prototype AI chatbot that integrates price forecasting and advisory functions to assist farmers in decision-making and interact as an extension agent. Price forecasting employed Random Forest regression, achieving MAPE of 8.34% (training), 13.98% (validation), and 15.62% (testing). The chatbot was developed to access price forecasting information for the next four months. This system also integrates an LLM-AI model for consultations on planting schedules and other topics using a trusted knowledge base. During the testing phase, the chatbot successfully made predictions, provided recommendations, and interacted as an extension agent. Although demonstrating promising results, this study is limited to shallot price forecasting in Yogyakarta, highlighting the need for broader commodity and regional coverage in future studies. Unlike previous studies that focused only on forecasting or advisory, this study integrates predictive analytics with conversational AI in a farmer-friendly chatbot.
Downloads
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Jurnal Keteknikan Pertanian

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors submitting manuscripts should understand and agree that copyright of manuscripts of the article shall be assigned/transferred to Jurnal Keteknikan Pertanian. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) where Authors and Readers can copy and redistribute the material in any medium or format, as well as remix, transform, and build upon the material for any purpose, but they must give appropriate credit (cite to the article or content), provide a link to the license, and indicate if changes were made. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.



















