An agentic AI-powered platform that democratizes agricultural knowledge through intelligent assistance, voice input, and SMS support - completely FREE for farmers worldwide.
- ๐พ Overview
- โจ Features
- ๐ ๏ธ Tech Stack
- ๐ Live Demo
- โก Quick Start
- ๐๏ธ Architecture
- ๐ฑ Usage
- ๐ฏ Problem Statement
- ๐ก Solution Approach
- ๐ฎ Future Scope
- ๐ค Contributing
- ๐จโ๐ป Author
FarmLink addresses the critical information gap faced by farmers globally, particularly in developing regions. By leveraging cutting-edge agentic AI technology, it provides instant access to expert agricultural knowledge through multiple channels including voice input, text queries, and SMS integration.
- Information Gap: Farmers lack timely access to scientific best practices
- Language Barriers: Limited multilingual agricultural resources
- Accessibility: Low literacy rates and limited internet connectivity
- Cost: Expensive agricultural consultation services
- Coverage: Understaffed traditional extension services
FarmLink uses Retrieval-Augmented Generation (RAG) architecture with agentic AI to deliver:
- Real-time, context-aware agricultural advice
- Multi-modal input (voice, text, SMS)
- 100% FREE service model
- Multilingual support (English/Hindi, expandable)
- Mobile-first responsive design
- Agentic AI System: Context-aware responses using advanced language models
- Knowledge Retrieval: FAISS-powered semantic search through agricultural databases
- Multi-language Support: English and Hindi with expansion capabilities
- Real-time Speech Recognition: Web Speech API integration
- Live Transcription: See your words as you speak
- Voice-to-Text: Perfect for farmers with literacy challenges
- Multi-provider Support: TextLocal, Fast2SMS, Twilio Sandbox
- Smart Routing: Automatic fallback between SMS providers
- Demo Mode: Always-working demonstration capability
- Glass Morphism Design: Modern, accessible interface
- Responsive Design: Mobile-first approach
- Animated Interactions: Smooth, professional user experience
- Progressive Web App: Installable on mobile devices
- Comprehensive Database: Covers crops, fertilizers, pests, diseases
- Government Schemes: PM-KISAN and other farmer benefits
- Best Practices: Scientific agricultural recommendations
- Seasonal Guidance: Timing for sowing, harvesting, and care
- React.js - Modern component-based UI framework
- CSS3 & Custom Properties - Advanced styling with glass morphism
- Web Speech API - Real-time voice recognition
- Lucide React - Beautiful, consistent icons
- Vercel - Global CDN deployment
- FastAPI - High-performance Python web framework
- Pydantic - Data validation and serialization
- CORS Middleware - Cross-origin resource sharing
- Uvicorn - ASGI server for production
- Render.com - Scalable cloud deployment
- Sentence Transformers - Semantic text embeddings
- FAISS - Vector similarity search
- Retrieval-Augmented Generation - Context-aware AI responses
- Multi-provider LLM Integration - Flexible AI model support
- SMS Providers: TextLocal, Fast2SMS, Twilio
- Voice Recognition: Browser-native Web Speech API
- Translation Services: Multi-language support system
Live URL: https://farmlink-omega.vercel.app
Features to Try:
- Ask agricultural questions in natural language
- Test voice input (click microphone icon)
- Try SMS demo with your phone number
- Switch between English/Hindi languages
- Explore quick question suggestions
API URL: https://farmlink-backend-iq4o.onrender.com
Endpoints:
GET /health- System health checkPOST /ask- Submit agricultural questionsGET /free-services- Available service informationPOST /sms/send- SMS integration demo
Node.js 16+
Python 3.8+
Git# Clone the repository
git clone https://github.com/surajsk2003/FARMLINK.git
cd FARMLINK
# Setup Backend
cd agrisage-backend
pip install -r requirements.txt
# Setup Frontend
cd ../agrisage-frontend
npm install# Terminal 1: Start Backend
cd agrisage-backend
python -m uvicorn app.main:app --reload --port 8000
# Terminal 2: Start Frontend
cd agrisage-frontend
npm startAccess Application: http://localhost:3000
# Backend Docker
cd agrisage-backend
docker build -t farmlink-backend .
docker run -p 8000:8000 farmlink-backend
# Frontend builds automatically on VercelFarmLink Architecture (RAG-based)
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Frontend โ โ Backend โ โ AI Services โ
โ (React) โ โ (FastAPI) โ โ โ
โโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโค
โ โข Voice Input โโโโโบโ โข RAG Pipeline โโโโโบโ โข Vector Search โ
โ โข Modern UI โ โ โข API Endpoints โ โ โข LLM Models โ
โ โข SMS Demo โ โ โข CORS Handling โ โ โข Knowledge DB โ
โ โข Responsive โ โ โข Multi-language โ โ โข Embeddings โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Deployment โ โ Integration โ โ Data Layer โ
โโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโค
โ โข Vercel CDN โ โ โข SMS Providers โ โ โข FAISS Index โ
โ โข Render Cloud โ โ โข Voice APIs โ โ โข Vector Store โ
โ โข Auto-deploy โ โ โข Translation โ โ โข Knowledge KB โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
FARMLINK/
โโโ ๐ agrisage-frontend/ # React frontend application
โ โโโ public/ # Static assets (favicon, manifest)
โ โโโ src/ # Source code
โ โ โโโ App.js # Main application component
โ โ โโโ App.css # Glass morphism styling
โ โ โโโ services/api.js # Backend API integration
โ โโโ package.json # Frontend dependencies
โ โโโ vercel.json # Vercel deployment config
โโโ ๐ง agrisage-backend/ # FastAPI backend application
โ โโโ app/ # Application code
โ โ โโโ main.py # FastAPI application entry
โ โ โโโ main_simple.py # Lightweight version
โ โ โโโ routers/ # API route handlers
โ โ โโโ services/ # Business logic services
โ โโโ Dockerfile # Container configuration
โ โโโ requirements.txt # Python dependencies
โ โโโ railway.json.backup # Deployment configuration
โโโ ๐ README.md # Project documentation
- Click microphone icon in the question input area
- Allow microphone access when prompted
- Speak your question clearly in English or Hindi
- Watch live transcription appear in real-time
- Click "Stop Recording" when finished
- Submit your question for AI processing
- Type your agricultural question in the text area
- Select language (English/Hindi) from dropdown
- Click "Get FREE Answer" to submit
- View AI response with confidence score and source
- Enter your phone number with country code (+91XXXXXXXXXX)
- Type your question in the main input area
- Click "Send SMS Demo" button
- Receive confirmation of SMS processing status
- Click any suggested question in the sidebar
- Questions auto-populate in the main input
- Submit directly or modify before asking
Each AI response includes:
- โ Confidence Score: How certain the AI is about the answer
- ๐ Source Information: Where the knowledge comes from
- ๐ค Model Used: Which AI system provided the response
- โก Processing Time: How quickly the response was generated
- ๐ฐ Cost: Always shows "FREE" for our service
Information Accessibility:
- 570+ million farms worldwide lack access to timely agricultural information
- Traditional extension services reach <30% of farmers in developing countries
- Language barriers prevent access to international best practices
Economic Impact:
- Suboptimal farming practices cause 20-40% yield losses annually
- Information gaps cost farmers billions in potential income
- Lack of government scheme awareness limits benefit utilization
Technology Gap:
- 67% of farmers lack internet access for research
- Limited multilingual agricultural content
- Complex technical information not farmer-friendly
Primary: Small-scale farmers in developing regions Secondary: Agricultural extension workers, rural communities Tertiary: Agricultural students, researchers, policy makers
Retrieval-Augmented Generation (RAG):
- Knowledge Ingestion: Curated agricultural databases from trusted sources
- Vector Indexing: Semantic search capabilities using FAISS
- Query Processing: Multi-language natural language understanding
- Context Retrieval: Relevant information extraction from knowledge base
- Response Generation: AI synthesis of contextual, actionable advice
Multi-Modal Access:
- Voice: Web Speech API for low-literacy accessibility
- Text: Traditional input with multilingual support
- SMS: Offline-capable service for remote areas
Intelligence Features:
- Context Awareness: Understands farming context and regional practices
- Confidence Scoring: Transparent reliability indicators
- Source Attribution: Traceable advice to trusted agricultural sources
- Continuous Learning: Expandable knowledge base architecture
- Image Recognition: Plant disease diagnosis from photos
- Weather Integration: Hyperlocal weather-based recommendations
- Regional Languages: Add 5+ Indian regional languages
- Offline Mode: Progressive Web App with offline capabilities
- Farmer Profiles: Personalized recommendations based on farm data
- IoT Integration: Soil sensors and smart farming devices
- Market Prices: Real-time crop pricing and market intelligence
- Community Platform: Farmer-to-farmer knowledge sharing
- Government Integration: Direct scheme application assistance
- Expert Consultation: Video calls with agricultural experts
- Global Expansion: Support for 20+ languages and regions
- Advanced AI: Specialized models for different crop types
- Blockchain: Transparent supply chain and certification
- Carbon Credits: Sustainable farming practice tracking
- Predictive Analytics: AI-powered yield and risk predictions
- Voice Recognition: Works best in Chrome, Edge, Safari browsers
- SMS Integration: Demo mode only (no actual SMS delivery in free tier)
- Knowledge Base: Limited to general agricultural practices (expanding)
- Languages: Currently supports English and Hindi only
- Offline: Requires internet connection for AI processing
- Browser compatibility improvements for voice features
- Enhanced SMS provider integration with larger free tiers
- Expanded knowledge base with region-specific information
- Progressive Web App features for offline basic functionality
We welcome contributions from the agricultural technology community!
- Agricultural Knowledge: Add region-specific farming practices
- Language Support: Translations and localized content
- UI/UX Improvements: Accessibility and design enhancements
- Technical Features: Voice recognition, SMS integration improvements
- Documentation: Guides, tutorials, and example usage
# Fork the repository
git fork https://github.com/surajsk2003/FARMLINK.git
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and commit
git commit -m 'Add amazing agricultural feature'
# Push to branch
git push origin feature/amazing-feature
# Open Pull Request- Regional agricultural practices database
- Multi-language translations
- Mobile app development (React Native)
- Advanced AI model fine-tuning
- Government scheme database updates
This project is licensed under the MIT License - see the LICENSE file for details.
Why Open Source?
- Agricultural knowledge should be freely accessible
- Community-driven improvements benefit all farmers
- Transparent AI systems build trust with users
- Collaborative development accelerates innovation
Capital One Launchpad 2025 Hackathon
- Category: Agentic AI Solutions for Agriculture
- Focus: High-impact societal applications of AI technology
- Theme: Democratizing agricultural knowledge through intelligent systems
Suraj Kumar
B.Tech Computer Science
National Institute of Technology Karnataka (NITK), Surathkal
- Portfolio: https://surajsk2003.github.io/Suraj.in/
- LinkedIn: https://www.linkedin.com/in/suraj-singh-96b45220a/
- GitHub: https://github.com/surajsk2003
- Email: surajkumarsksk2000@gmail.com
Passionate about leveraging AI technology for social impact, particularly in agricultural development. Experienced in full-stack development, machine learning, and creating accessible technology solutions for underserved communities.
- Government Agricultural Portals: PM-KISAN, Kisan Call Center resources
- Agricultural Universities: Best practices and research publications
- Extension Services: Field-tested farming recommendations
- Farmer Communities: Real-world insights and feedback
- Vercel: Frontend hosting and global CDN
- Render: Backend deployment and scaling
- Open Source Community: React, FastAPI, and ML libraries
- AI Research: Transformer models and RAG architectures
Special thanks to farmers worldwide who inspired this project through their dedication to feeding the world despite facing information and resource challenges.
Star โญ this repo if FarmLink helped you or could help farmers in your community!
๐ Try FarmLink Live | ๐ Explore Code | ๐ค Contribute
Empowering farmers through intelligent technology - one question at a time.