
AIdeas Finalist: AgriNexus AI
A closed-loop WhatsApp advisor for 100M+ Indian smallholder farmers — pest diagnosis via photo, voice in 4 dialects, and weather-timed nudges that follow up until the farmer confirms action. 100% serverless on AWS.
Category: Social Impact
Growing up in India, I didn’t farm—but the pattern was inescapable. Smallholders losing cotton not because advice didn’t exist, but because it arrived after the spray window closed—the narrow hours when wind and rain conditions actually allow pesticides to work . The knowledge was there ( ICAR‑CICR , FAO guidance ). The follow‑through wasn’t.
AgriNexus AI closes that gap.
My Vision
Every farmer deserves an advisor in their pocket — affordable, accessible, and present until the job is done. Grounded advice is essential. Follow-through is what changes outcomes.
Meet Ramesh in Latur, Maharashtra. When something looks wrong in the field, he can ask another farmer, call an agronomist, or search online. The problem is still one‑way and open‑loop support: advice may arrive, but rarely with timed follow‑through to ensure action within the spray window.
AgriNexus AI closes that last mile with a 1:1 advisor in Ramesh’s pocket — grounded advice in his language, plus an accountability loop that follows up until he confirms “done” or opts out.
What that looks like in WhatsApp:
- No app to download — WhatsApp is already a trusted channel on hundreds of millions of phones in India
- Hindi, Marathi, Telugu — with natural Hinglish code-switching
- Text, voice, or photo — retrieval-grounded Q&A with visible citations; Claude Vision for structured photo diagnosis
- Nudges that close the loop — weather-aware reminders with follow-up until done or opt-out

The core differentiator is the closed-loop nudge engine.
When spray weather is suitable (wind under 10 km/h, no rain—configurable per crop), it sends a crop-specific reminder and closes the loop on “done.”
Demo Video
Watch AgriNexus AI in action — text, voice, vision, and closed-loop nudges on WhatsApp
Why This Matters
The Stakes
- Smallholder scale: India has ~126 million smallholder and marginal farmers (under 2 hectares), representing 86% of all agricultural holdings. (Agriculture Census 2015–16)
- Crop losses: FAO estimates up to 40% of global crop production is lost to plant pests and diseases each year. ( FAO, Plant Production & Protection highlights (PDF) )
- Capacity gap: Extension capacity is strained; field ratios are often reported in the thousands of farmers per worker (including ~1:5,000 in some contexts), vs. guideline norms nearer 1:750–1,100 depending on terrain. ( The Wire, Bharat‑VISTAAR )
- Cotton timing pressure: Peer-reviewed work in Journal of Cotton Research (2026) revisits economic injury levels for pink bollworm on cotton—showing how infestation and control economics connect to yield, underscoring the cost of late intervention. DOI: 10.1186/s42397-026-00258-0
Figures are aggregates and vary by crop, region, and season.
The Know-Do Gap

Information alone rarely changes behavior—the gap between knowing and doing is where outcomes are won or lost ( Thaler & Sunstein, Nudge, 2008 ). Farmers know their crops—the bottleneck isn’t knowledge, it’s that the right moment passes while competing demands stack up. A spray tip that lands after the wind picks up, or in the wrong language, behaves like no advice at all.
AgriNexus closes that gap for Ramesh with:
- Weather-aware timing — nudges fire when conditions are actually favorable, not on a fixed calendar
- Local-language delivery — grounded Q&A in Hindi/Marathi via text, voice, or photo—on the WhatsApp he already uses
- Closed-loop accountability — follow-up until "done" (or an explicit opt-out), not just message delivery
Competitive Landscape
These tools already deliver WhatsApp-based advisory, multilingual support, and—in Farmer.Chat’s case—image-based diagnosis at field scale. What I could not find documented in any public page is the closed-loop piece: weather-gated nudges that track whether the farmer actually acted, with reminder cancellation on confirmation. That’s what AgriNexus adds.
How I Built This
Architecture Overview
AgriNexus runs on a serverless AWS stack; this view shows the system and differentiator.

Why this stack: WhatsApp-first ingress (API Gateway + WAF), modular Lambdas, FIFO ordering via SQS, short Step Functions orchestration, delayed nudges via EventBridge Scheduler, shared state in DynamoDB, media/KB sources in S3, and Bedrock for RAG + vision. CloudWatch + X-Ray keep it traceable; a live operations dashboard tracks Lambda health, queue depth, error rates, and nudge completion rates. Custom business metrics (nudges sent vs. completed) feed FinOps visibility alongside infrastructure cost signals.
The differentiator is not new AWS primitives; it is composition for behavior change: weather-gated reminders plus response-driven schedule cancellation in one loop.
Most agricultural AI tools are reactive—the farmer asks, and the conversation ends at the answer. AgriNexus inverts this: the system initiates contact when weather aligns with crop needs and tracks whether the action was taken.The closed loop is the product, not a feature.*
Methodology: Spec → Code → Deployment

All five behaviors were captured as EARS-style requirements in Kiro before writing code—40+ requirements across onboarding, RAG, voice, vision, and nudges. Kiro generated Lambda stubs, SAM templates, and 8 ADRs , so AWS credits went to service invocations, not iteration cycles.
Flows in Action: Onboarding + Four Pipelines
Onboarding is the entry point—language, location, crop selected via WhatsApp buttons in under two minutes.

Four advisory flows follow:
1. Text RAG: Hindi question → HMAC validation → SQS FIFO → Bedrock retrieve_and_generate with citations → WhatsApp reply in a few seconds.

2. Voice: OGG audio → S3 → Transcribe (batch + adaptive polling) → same RAG pipeline → Polly TTS + text reply. Turnaround ~20–34s.

Latency roadmap is summarized below.
3. Vision: Crop photo → S3 → Claude Vision (constrained schema: issue, confidence, severity, safety) → structured diagnosis in dialect. High-risk cases point to local KVK/dealer.

4. Nudge Loop: WeatherPoller (OpenWeatherMap) → wind < 10 km/h, no rain (configurable) → Step Functions → NudgeSender → EventBridge Scheduler (T+24h/T+48h). ResponseDetector on DynamoDB Streams cancels reminders on done. Copy points to local KVK / dealer—trusted, familiar names.

Flow pipelines (all four):

Key Architecture Decisions
Why EventBridge Scheduler, not Step Functions Wait States?
Keeping a state machine open for 48 hours is expensive at scale. Instead, the workflow completes in seconds and creates EventBridge Scheduler targets for delayed reminders. When Ramesh responds, ResponseDetector deletes those schedules.

Voice latency: batch-first, then optimize.
Semi-final batch transcription worked but wasn’t tuned for field conditions. Adaptive polling, batch-path tuning, and earlier ACK brought short voice notes to ~20–34s—acceptable in async WhatsApp messaging where the farmer gets an immediate acknowledgment and continues fieldwork. Streaming STT is the roadmap target, not a current claim.
Security
WhatsApp credentials live in AWS Secrets Manager; the webhook validates Meta HMAC-SHA256 signatures. No secrets in code.
Cost at Scale
Moving from OpenSearch Serverless to S3 Vectors was a critical optimization. OpenSearch's always-on OCU costs dominated early bills regardless of query volume.
At 10,000 active farmers, modeled cost is ~$450/month (≈ $0.54/farmer/year):
Bedrock RAG + Vision ~$250, S3 Vectors ~$50, Transcribe + Polly ~$120, Lambda/EventBridge/SQS ~$30.
Adoption path: WhatsApp removes the adoption barrier—no app to install, no training session. A farmer onboards in under two minutes by tapping buttons. At scale, an NGO, KVK , or state agriculture department configures crop and region content in the knowledge base and deploys on the same stack.
What I Learned
Judge feedback (AWS AIdeas semi-final)
In the AWS AIdeas semi-final review, feedback that redirected the build focused on trust and operability: weather reliability, voice usability, cost defensibility, and WhatsApp realism under uneven connectivity. I treated those as release criteria.
This finalist build keeps the same core architecture judges saw in round one, with deliberate upgrades: weather data, faster voice turnaround, and a pilot-sustainable cost footprint. The UX stays low-literacy friendly with WhatsApp lists and reply buttons for onboarding in under two minutes.
- Weather trust: integrated OpenWeatherMap; API key in Secrets Manager; explicit logs when demo fallback paths are used.
- Voice usability: batch Transcribe + adaptive polling keeps typical short voice notes usable without claiming streaming STT.
- Cost sustainability: moved retrieval to S3 Vectors to eliminate always-on OpenSearch-style spend; modeled cost ≈ $0.54/farmer/year @ 10K.
- Connectivity resilience: WhatsApp queues messages offline and delivers on reconnect; nudges are asynchronous—the reminder waits, not the farmer. Voice notes are ~16 KB; even photos work on 2G/3G.
Since semi-finals: production WhatsApp number live, voice + vision deployed end-to-end, and OpenSearch → S3 Vectors for pilot-sustainable cost.
Development Insights
"Farmers don't have time to read through this. They need Siri-like answers — almost like an AI Doordarshan." — early tester
Field testing, judge feedback, and operational constraints shaped product priorities:
- Brevity beats depth in-field: long answers “sound AI.” Prompts are action-first, DD Kisan–style: one recommendation, one short “why,” one source line.
- Trust needs traceability: farmers distrust black-box answers. Keep citations visible but compact—a single source line, not a paragraph of references.
- Hinglish just works: questions like “meri wheat mein yellowing ho rahi hai—kya karein?” are common; Claude handles code-switching natively—no brittle language-detection layer needed.
- Buttons improve access: WhatsApp list messages and quick-reply buttons let farmers onboard and respond to nudges without typing.
- Listen-first UX matters: voice notes are a literacy decision—many smallholders communicate orally. Auto-voice replies for text questions remains Phase 2.
Beyond Agriculture
The trigger → confirm → follow-up structure is domain-agnostic. The same loop applies to irrigation scheduling when reservoir levels drop, medication adherence for rural health workers tracking patient follow-ups, or micro-savings reminders in financial-literacy programs. Only the trigger and copy change; the accountability engine stays the same.
Try It Yourself
Pick web demo or WhatsApp.
- 💬 Open WhatsApp chat
🌐 Web demo (no phone number) | 💬 WhatsApp chat |
|---|---|
Includes: text Q&A (RAG) | Includes: onboarding + text (public); voice/photo/nudges (allowlisted) |
Best for: instant judge tryout | Best for: seeing the full channel UX |
Privacy: no login; minimal retention | Privacy: WhatsApp number required |
Limits: ~5 questions/hour | Limits: rich features are allowlisted |
Data retention (public demo): demo user data auto-deleted after ~7 days.
Vote for AgriNexus AI
Community voting runs April 18 – April 23, 4:59 PM Pacific Time.
If you believe advice should lead to action for farmers:
- 👍 Hit the like button at the top of this article
- 🔁 Share with anyone building for impact in AI
Every like during the voting window counts toward the final tally.
I still judge this build against how it began: a narrowing spray window and advice that arrived too late. AgriNexus is built so that outcome changes in time.

Quick Links:
- 🔗 GitHub: prasadt1/agrinexus-ai — SAM-deployed, 24 IaC resources, 64% test-to-code ratio, 8 ADRs ( metrics )
- ▶️ Demo (YouTube): Watch full walkthrough
- 💬 WhatsApp chat: Start chat
Built with Amazon Bedrock (Knowledge Bases with S3 Vectors, Claude), Amazon Transcribe, Amazon Polly, AWS Lambda, DynamoDB, SQS FIFO, Step Functions, EventBridge Scheduler, DynamoDB Streams, WhatsApp Business API. Developed using EARS requirements methodology and Kiro AI.
#aideas-2025 #social-impact #EMEA Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article