Conversational AI for farmers
Abstract
This paper presents a web-based conversational AI system designed to assist farmers with agricultural queries. Developed using the Flask framework, the application incorporates user authentication and a chatbot powered by Google’s Gemini 1.5 Pro model. Users can register and log in, with credentials securely stored in a MySQL database. The system features intuitive web interfaces for navigation and a dedicated chatbot page, where farmers submit queries via a JSON-based API endpoint. Responses are formatted for clarity, ensuring relevance to farming contexts. The proposed solution enhances accessibility to real-time agricultural guidance, demonstrating the potential of conversational AI to support farming communities effectively.
Downloads
References
M. Daudu, “Deploy a Generative AI ChatBot Powered by Python & Google’s Gemini PRO as a Flask Application,” Medium, Dec. 15, 2023. [Online]. Available: https://medium.com/@mosesdaudu/deploy-a- generative-ai-chatbot-powered-by-python-googles- gemini-pro-as-a-flask-application-9f6f7b6f6e6f
A. Chatufale, “RAG-Powered Chatbot with Google Gemini and MySQL,” Medium, Oct. 12, 2024. [Online]. Available: https://medium.com/@ajinkyachatufale/rag-powered- chatbot-with-google-gemini-and-mysql- 5c7b3e3f7b1e
Google for Developers, “Answer questions based on Chat conversations with a Gemini AI Chat app,” Google Developers, Feb. 14, 2025. [Online]. Available: https://developers.google.com/chat/how- to/gemini-qa
S. Jain, W. Vota, and A. Raj, “FarmChat: Using Chatbots to Answer Farmer Queries in India,” ICTworks, Jan. 2, 2019. [Online]. Available: https://www.ictworks.org/farmchat-using-chatbots-to- answer-farmer-queries-in-india/
F. Colace, M. De Santo, M. Lombardi, L. Pascale, and A. Pietrosanto, “Chatbot for E-Learning: A Case Study,” Int. J. Mech. Eng. Robot. Res., vol. 7, no. 5, pp. 528–533, 2018, doi: 10.18178/ijmerr.7.5.528-533.
V. L. Rubin, Y. Chen, and L. M. Thorimbert, “Artificially intelligent conversational agents in libraries,” Libr. Hi Tech, vol. 28, no. 4, pp. 496–522, 2010, doi: 10.1108/07378831011096203.
M. S. Ben Mimoun and I. Poncin, “A valued agent: How ECAs affect website customers' satisfaction and behaviors,” J. Retail. Consum. Serv., vol. 26, pp. 70– 82, 2015, doi: 10.1016/j.jretconser.2015.05.008.
M. Dowling and B. Lucey, “ChatGPT and Google Gemini: A comparative analysis for academic writing,” Finance Res. Lett., vol. 58, p. 104, 2023, doi: 10.1016/j.frl.2023.104112.
E. Ayedoun, Y. Hayashi, and K. Seta, “A Conversational Agent to Encourage Willingness to Communicate in the Context of English as a Foreign Language,” Procedia Comput. Sci., vol. 60, no. 1, pp. 1433–1442, 2015, doi: 10.1016/j.procs.2015.08.219.
M. Schlicht, “The Complete Beginner’s Guide to Chatbots,” Chatbots Mag., Apr. 20, 2016. [Online]. Available: https://chatbotsmagazine.com/the- complete-beginners-guide-to-chatbots-8280b7b906ca
Downloads
Published
Issue
Section
License
Copyright (c) 2025 International Journal of Scientific Research in Science, Engineering and Technology

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