Inspiration Agricultural waste is often seen as something to dispose of, even though materials like rice husk, straw, and crop stubble can be valuable resources for industries and other buyers.
We noticed a gap between farmers who have agricultural waste to sell and industries that need a consistent supply of these materials. Individual farmers may not have enough quantity to fulfil large industrial orders, while industries face the challenge of finding and coordinating with multiple suppliers.
We wanted to turn this problem into an opportunity by creating a platform where agricultural waste could find the right buyers, farmers could earn from their resources, and industries could access supplies more efficiently.
What it does GreenRoots is an AI-assisted agricultural-waste marketplace that connects farmers, industries, and individual buyers.
- Agricultural Waste Marketplace: Farmers can list materials such as straw, husk, and stubble, while industries and buyers can discover and purchase available waste.
- Smart Waste Pooling: Multiple farmers can contribute to a single large industrial requirement when one farmer cannot fulfil the entire quantity. Each farmer's contribution and payable amount are tracked individually.
- AI-Powered Assistance: Google's Gemini API helps farmers create listings through voice or text, understand industry requirements, discover potential matches, and get information about pool progress.
- Demand Forecasting: AI-assisted analysis of historical activity and seasonal patterns can help industries anticipate future agricultural-waste demand.
- Regional Language and Voice Support: The platform aims to make digital marketplace interactions more accessible to farmers through natural-language and voice-based workflows.
- Collection Points: Village-level collection points help organise the collection and movement of agricultural waste.
- PayPal-Powered Payments: PayPal Checkout, REST APIs, and Webhooks support the payment workflow, while farmer-wise contribution records help calculate individual payable amounts.
How we built it We designed GreenRoots as a mobile-first platform for farmers, supported by a web portal for industries and administrators.
Our proposed technology stack includes React Native and Expo for the mobile application, React and Vite for the web portal, and Supabase with PostgreSQL for the backend and database. We use TypeScript, Tailwind CSS, and supporting technologies such as NativeWind, Expo Notifications, and i18next.
Google Gemini API supports natural-language understanding, voice-assisted listing creation, requirement extraction, matching assistance, and demand-forecast explanations. PayPal Checkout, REST APIs, and Webhooks form the foundation of the payment workflow.
A key architectural decision was to keep AI assistance and financial operations separate. Gemini helps interpret user requests and prepare structured information, while protected backend functions validate operations. PayPal handles payment processing, and payment events are verified before transaction records are updated.
Users review AI-generated information before it is submitted, and payment-related actions require explicit confirmation.
Challenges we ran into One of our biggest design challenges was figuring out how to fulfil large industrial requirements when individual farmers may only have smaller quantities available.
We addressed this through the concept of Smart Waste Pooling, where multiple farmers can contribute towards one requirement while maintaining separate contribution and payable records.
Another challenge was integrating AI into a marketplace without giving it unrestricted control over important operations. AI-generated listings and recommendations need to be reviewed, and financial transactions must be validated independently.
We also had to consider payment reliability, especially distinguishing between payment initiation, successful payment verification, order fulfilment, and farmer payouts.
Making the platform accessible to farmers with different levels of digital literacy was another important consideration. This influenced our focus on voice input, regional-language support, and simpler interactions.
Accomplishments that we're proud of We are proud of designing a marketplace that addresses both sides of the agricultural-waste supply chain rather than focusing only on waste collection or disposal.
We are particularly proud of bringing multiple farmers together to fulfil larger industrial requirements through Smart Waste Pooling, designing AI-assisted listing and requirement discovery workflows, and connecting marketplace transactions with a PayPal-based payment workflow.
We also incorporated farmer-wise contribution tracking, transparent payable calculations, regional-language support, voice interaction, and village collection points into the overall solution.
Most importantly, we brought AI, marketplace operations, and payment infrastructure together to address a practical agricultural challenge. What we learned Through GreenRoots, we explored how AI can solve practical problems beyond conversational interactions.
We learned the importance of converting natural-language inputs into structured data, using AI recommendations alongside deterministic validation, and keeping users in control of actions that affect their listings and finances.
We also gained a better understanding of payment workflows, including server-side payment operations, webhook verification, transaction states, and the importance of maintaining accurate financial records.
Most importantly, we learned that building a useful technology solution requires understanding the people who will use it. A platform designed for farmers must prioritise accessibility, trust, simplicity, and real-world usability.
What's next for MergeSort Our vision for GreenRoots extends beyond creating a marketplace. We want to build an ecosystem where agricultural waste becomes a recognised and accessible resource.
Our next steps include improving demand forecasting with more regional and seasonal data, expanding regional-language and voice support, strengthening farmer-industry matching, and developing a wider network of village collection points.
We also aim to strengthen the payment and payout workflow, expand buyer participation, and make the platform more scalable and reliable for real-world use.
As Team MergeSort, we want to continue building technology that connects innovation with practical problems and creates meaningful impact.
Built With
- ai
- api
- cloud
- css
- edge
- expo.io
- firebase
- functions
- gemini
- i18next
- javascript
- paypal
- postgresql
- query
- react
- rest
- router
- supabase
- tailwind
- tanstack
- typescript
- vite
- webhooks