AI-Powered Cotton & Groundnut Market Linkage Platform using IBM Granite and live Gujarat mandi data
# KisanMandi AI ā Agentic AI Market Intelligence Platform
> **Smarter Markets. Better Prices. Empowered Farmers.**
An Agentic AI-powered platform built for **IBM TechXchange Hackathon ā Challenge 13** that connects Gujarat's cotton and groundnut farmers directly with real-time market intelligence, verified buyers, and personalized AI selling recommendations.
---
## š¾ Problem Statement
Gujarat is one of India's largest producers of cotton and groundnut. Farmers face:
- Price exploitation by middlemen
- Lack of access to real-time mandi prices
- Difficulty comparing prices across markets
- Limited bargaining power
- Inability to find genuine buyers
- Uncertainty about when to sell vs store
---
## š” Solution ā KisanMandi AI
KisanMandi AI is a **multi-agent AI platform** that provides:
1. Real-time mandi price intelligence across 8+ Gujarat mandis
2. AI-powered 7-day price forecasting
3. Direct farmer-to-buyer marketplace with AI matching
4. Storage vs selling decision advisor
5. AI-assisted crop quality grading via image upload
6. Personalized income and profit calculator
---
## š¤ Agentic AI Architecture
The platform uses **IBM Granite LLM** as the reasoning core, orchestrating 5 specialized AI agents:
```
Farmer Query
ā
AI Orchestrator (orchestrator.js)
ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Agent 1: MandiPriceAgent ā ā Current prices, trends, forecasts
ā Agent 2: BuyerMatchingAgent ā ā Finds compatible verified buyers
ā Agent 3: StorageAdvisorAgent ā ā Sell Now vs Wait vs Store
ā Agent 4: QualityGradingAgent ā ā Image-based crop quality estimate
ā Agent 5: IncomeAgent ā ā Revenue, cost, profit calculations
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
IBM Granite LLM Reasoning Layer
ā
Personalized Farmer Recommendation
```
---
## šļø IBM Cloud Architecture
```
Frontend (React/Vite)
ā
Backend REST API (Node.js/Express)
ā
Agent Orchestrator
ā
IBM Granite (WML - Watson Machine Learning)
ā
IBM Cloud Obj ā¦