KhetMitra (खेतमित्र) is a voice-first AI farming advisor built on Google Gemini that lets Indian farmers speak in Hindi or Gujarati and get instant, personalized advice combining real-time weather data, live mandi prices, crop disease diagnosis, and government scheme information, all in one natural voice conversation.
# 🌾 KhetMitra — AI Farming Voice Advisor
A voice-first AI assistant for Indian farmers, built with React + Gemini. Ask farming questions in Hindi, Gujarati, or English — get smart, context-aware answers powered by real weather and mandi price data.
**Live Demo:**
khetmitra-452939385102.us-c…
---
## Features
- **Voice Input** — Speak in Hindi, Gujarati, or English via Web Speech API
- **AI Responses** — Powered by Google Gemini with farming-specific system prompt
- **Text-to-Speech** — Auto-reads AI responses aloud in the farmer's language
- **Live Weather** — Real-time weather data via OpenWeatherMap API
- **Mandi Prices** — APMC crop price data for the farmer's city
- **Quick Actions** — One-tap queries for weather, mandi rates, crop advice, govt schemes
- **Multi-language** — Hindi (`hi-IN`), Gujarati (`gu-IN`), English (`en-IN`)
- **Mobile-first UI** — Responsive chat interface with slide-up data drawer on mobile
---
## Tech Stack
| Layer | Tech |
|---|---|
| Frontend | React 19, Vite 8, Tailwind CSS 4 |
| AI | Google Gemini API (`gemini-2.0-flash`) |
| Weather | OpenWeatherMap API |
| Voice | Web Speech API (browser-native) |
| Deploy | Docker, Nginx, Google Cloud Run |
---
## Getting Started
### 1. Clone & Install
```bash
git clone
github.com
cd AI-startup-Day-Demo
npm install
```
### 2. Set Environment Variables
```bash
cp .env.example .env
```
Edit `.env`:
```env
VITE_GEMINI_API_KEY=your_gemini_api_key_here
VITE_WEATHER_API_KEY=your_openweathermap_api_key_here
```
- **Gemini API key** → Google AI Studio
- **Weather API key** → OpenWeatherMap
### 3. Run Locally
```bash
npm run dev
```
Open
localhost
---
## Environment Variables
| Variable | Required | Description |
|---|---|---|
| `VITE_GEMINI_API_KEY` | Yes | Google Gemini API key |
| `VITE_WEATHER_API_KEY` | No | OpenWeatherMap API key (weather card disabled if missing) |
---
## Docker / Cloud Run
Build a …