Solved the AI backend problem in EthioFarm AI. The chat previously called
an external AI API directly from the browser, which isn’t realistic to
deploy without a backend server and paid API key. I rebuilt it as a
self-contained rule-based assistant instead: it detects what a farmer is
asking about (planting, irrigation, or rain) via keyword matching, then
combines that with real live weather data to generate a specific answer.
No external dependency — works identically whether local or hosted.
I wrote the core logic (detectIntent and generateAnswer functions) myself,
working through conditional statements step by step rather than just
pasting code. Tested it end-to-end — asked real questions and got correct
answers based on live weather data for a real location.
Also wrote a full README documenting the problem, solution, tech stack,