AWS Builder Center
KrishiRakshak AI: Building a Climate-Resilience Assistant for Farmers with Strands Agents SDK

KrishiRakshak AI: Building a Climate-Resilience Assistant for Farmers with Strands Agents SDK

Discover how I built KrishiRakshak AI, an AI-powered agricultural assistant designed for smallholder farmers in Maharashtra, India. Using the Strands Agents SDK, Gemini, and Open-Meteo, the project explores weather forecasting, crop symptom assessment, image analysis, and multilingual agricultural assistance while emphasizing responsible AI and farmer safety.

🌱 KrishiRakshak AI: Building a Climate-Resilience Assistant for Farmers

Exploring agentic AI for agriculture with the Strands Agents SDK

Introduction

Agriculture depends heavily on weather conditions, crop health, and timely decision-making. For smallholder farmers, unexpected rainfall, changing weather patterns, and uncertainty about crop symptoms can make everyday farming decisions challenging.
I wanted to explore how AI could help make useful agricultural information more accessible. This led me to build KrishiRakshak AI, an AI-powered agricultural climate-resilience assistant designed with farmers in Maharashtra, India, in mind.
The project brings together weather information, crop observation tools, image analysis, and an AI farming assistant in one web application.

🌾 The Problem

Farmers may need answers to practical questions:
  • Is rainfall expected over the next few days?
  • What should I observe when my crops show unusual symptoms?
  • Where can I find relevant agricultural guidance?
  • How can I ask farming questions in my preferred language?
Finding and interpreting information from different sources can be challenging. KrishiRakshak AI explores how a single application can help organize these activities and support more informed decisions.

🚀 Introducing KrishiRakshak AI

KrishiRakshak AI is a web-based agricultural assistant with the following capabilities.

1. Weather and Rainfall Forecasting

The application integrates the Open-Meteo API to retrieve weather forecast information for a selected location.
Farmers can explore upcoming rainfall conditions and use the information as one input when considering field inspections and irrigation needs.
Weather forecasts are estimates, so actual field conditions should always be considered.

2. Crop Health and Symptom Assessment

Users can record their crop type, growth stage, and visible symptoms.
The application organizes these observations and provides guidance on possible next steps, including further field inspection and gathering additional information.
An important principle is that recording symptoms does not automatically establish a confirmed crop disease. The application should communicate uncertainty when evidence is insufficient.

3. Crop Image Analysis

KrishiRakshak AI includes an image-analysis interface for submitting photographs of affected crop leaves and other plant parts.
The intended workflow uses a compatible multimodal AI model to examine visible features and provide preliminary observations.
These observations should not be treated as a definitive diagnosis. The quality of the result depends on image quality, model capabilities, and service availability.

4. Multilingual AI Farming Assistant

The AI assistant provides an interface for asking agricultural questions in Marathi, Hindi, and English.
For example, a user might ask what precautions to consider when heavy rainfall is forecast for a soybean field.
The application is designed to connect agricultural questions with available information and tools when appropriate, while communicating uncertainty and limitations.

5. Agricultural Guidance and Safety

Agricultural decisions can affect crop yields, farmer livelihoods, and the environment.
KrishiRakshak AI emphasizes responsible guidance by aiming to:
  • Distinguish observations from confirmed diagnoses.
  • Avoid unsupported pesticide recommendations and chemical dosages.
  • Communicate when external services are unavailable.
  • Encourage consultation with agricultural experts and local Krishi Vigyan Kendras.
  • Avoid presenting uncertain AI-generated information as authoritative advice.

🧠 Why Strands Agents SDK?

A central goal of this project was to explore agent-based AI development using the Strands Agents SDK.
A tool-enabled agent can go beyond generating a response from a user prompt. Depending on its configuration, it can use tools to retrieve information and support a more contextual workflow.
For an agricultural assistant, this approach creates opportunities to connect user questions with capabilities such as weather retrieval and agricultural guidance.
The intended workflow is:
  1. A user asks an agricultural question.
  1. The agent interprets the request.
  1. When appropriate, it uses an available tool to retrieve relevant information.
  1. The agent uses the returned information to formulate a response.
  1. The application communicates the response and relevant limitations.
This project gave me an opportunity to explore how agent-based AI can be incorporated into an application intended to address a real-world problem.

🏗️ Technical Architecture

KrishiRakshak AI uses a full-stack architecture.
Frontend
  • React
  • Vite
  • JavaScript
Backend
  • Python
  • FastAPI
Agent and AI
  • Strands Agents SDK
  • Gemini API
Weather Data
  • Open-Meteo API
Deployment and Version Control
  • Vercel for the frontend
  • Render for the backend
  • GitHub for source code and version control
The frontend provides the user interface, while the backend handles API requests and connections to external services. The agent and AI components support the application's AI-assisted workflows.

🔧 Challenges and Lessons Learned

External API Reliability

Weather services can impose request limits or become temporarily unavailable. This highlighted the importance of caching suitable responses, avoiding unnecessary repeated requests, and handling errors gracefully.

AI Model Compatibility

Different AI models support different capabilities. Image analysis requires a compatible multimodal model, and the selected model must be available to the configured API credentials.
This reinforced the importance of explicit model configuration, appropriate fallback behavior, and clear error messages.

Responsible Agricultural AI

Agricultural guidance should not sound more certain than the available evidence allows.
Designing this application reinforced the importance of communicating uncertainty, avoiding unsupported recommendations, and encouraging consultation with qualified professionals when necessary.

🌍 Potential Social Impact

KrishiRakshak AI explores how accessible AI tools could support smallholder farmers by:
  • Making local weather information easier to access.
  • Helping users record crop symptoms systematically.
  • Providing a convenient interface for agricultural questions.
  • Supporting multilingual interaction.
  • Encouraging informed decisions and appropriate expert consultation.
These are intended benefits, not measured outcomes. Evaluating real-world impact would require testing with farmers, collecting feedback, and assessing the accuracy and usability of the application.

🔮 What's Next?

My next priorities include:
  1. Improving weather retrieval reliability and caching.
  1. Strengthening AI model selection and error handling.
  1. Expanding access to trustworthy agricultural information.
  1. Improving Marathi and Hindi responses for practical farming scenarios.
  1. Testing the application with farmers and agricultural experts.
  1. Evaluating usability, reliability, and limitations before wider adoption.

🎯 Conclusion

KrishiRakshak AI began with a simple question: how can useful agricultural information become more accessible to the people who need it?
By combining weather data, crop observation tools, and an agent-based AI approach, this project explores one possible answer.
Building the application has also reinforced an important lesson: responsible AI is not only about generating responses. It is about connecting information to appropriate tools, handling failures honestly, communicating uncertainty, and designing around the needs of real people.
My goal is to continue exploring how agent-based AI can contribute to agricultural climate resilience and help farmers make better-informed decisions.

🔗 Explore the Project

Feedback from the AWS, developer, and agricultural communities is welcome.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article