tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Generative AI > Google Gemini API > Crop Advisory Agent

Crop Advisory Agent

Author: Venkata Sudhakar

India has over 140 million farming households. Access to timely, localised crop advisory is one of the biggest challenges in Indian agriculture. A Crop Advisory Agent can act as a digital agronomist - recommending which crops to sow based on soil type and season, suggesting fertiliser quantities, flagging pest risks, and advising on irrigation schedules. Built with ADK and Gemini, it can be deployed as a WhatsApp chatbot or mobile app for rural farmers.

This tutorial builds a Crop Advisory Agent using Google ADK and Gemini 2.0 Flash. The agent takes the farmer location, soil type, and current season as inputs, recommends suitable crops with expected yield, and provides a cultivation plan.

The below example shows the Crop Advisory Agent advising a farmer in Nashik, Maharashtra on Rabi season crop selection.


It gives the following output,

CROP ADVISORY - Ramkisan Patil, Nashik
Rabi Season | Black Soil | 3 Acres | Limited Water
===============================================

Top Crop Options
Crop      Duration  Yield (3 ac)  Revenue at MSP  Water
Wheat     120 days  54 qtl        Rs 1,22,850     Medium
Chickpea  100 days  24 qtl        Rs 1,30,560     LOW
Mustard   110 days  21 qtl        Rs 1,18,650     LOW

Recommendation: CHICKPEA
Given your borewell water limitation, Chickpea is the best choice.
It needs only 1-2 waterings, fixes its own nitrogen (lower fertiliser
cost), and gives the highest revenue at MSP Rs 5,440/qtl.

Cultivation Plan for Chickpea (3 acres)
  Seed Rate   : 30 kg/acre = 90 kg total
  Fertiliser  : DAP 25 kg/acre at sowing (chickpea fixes nitrogen)
                Total: 75 kg DAP
  Irrigation  : 1-2 waterings only (drought tolerant)
  Pest Watch  : Pod borer - use Bt spray at flowering stage

Expected Income: Rs 1,30,560 at government MSP
Tip: Register on e-NAM portal to get better prices beyond MSP.

The Crop Advisory Agent can be deployed as a WhatsApp chatbot using the Gemini Live API so farmers can ask questions in Hindi or Marathi. Extend it to incorporate real-time weather forecasts from the IMD API, soil health card data, and local mandi prices so the recommendation is always current. This is a high-impact application for agri-fintech startups and state government digital agriculture initiatives.


 
  


  
bl  br