Inspiration

Farmers work hard to produce food, but selling their harvest is not always easy. Many face challenges such as limited access to buyers, price uncertainty, transportation costs, lack of transparent negotiations, and difficulty evaluating whether a buyer is trustworthy.

A farmer may receive multiple offers but still struggle to understand which one will provide the highest actual earnings after transportation and other deductions. Language barriers and complicated digital platforms can make these challenges even harder.

We wanted to build a platform that puts farmers in a stronger position during agricultural trade. This inspired us to create FarmPay AI — an AI-powered agricultural commerce platform that makes selling crops more accessible, transparent, and trustworthy.

Our goal was not simply to create another agricultural marketplace, but to help farmers make informed decisions using AI, transparent financial comparisons, buyer information, and accessible digital tools.

What it does

FarmPay AI connects farmers, buyers, and agricultural stakeholders through a unified digital marketplace.

Its key innovations include:

1. Voice-to-Trade AI

Farmers can create crop listings using voice instead of navigating complicated forms. The system helps convert spoken information into structured listing details that farmers can review and edit before publishing. This experience is designed to reduce language and digital-literacy barriers.

2. FarmPay FairBid – Intelligent Price Comparison

FairBid helps farmers compare buyer offers based on actual net realisation rather than just the quoted price. It considers available information such as crop quantity, quoted price, transportation expenses, and other known deductions to help farmers understand what they may actually receive.

Instead of encouraging farmers to select the buyer offering the highest headline price, FairBid focuses on comparing the financial outcome after known deductions.

3. AG Grid – Interactive Buyer Offer Management

We integrated AG Grid Community into our existing FairBid and Buyer Offers interfaces to make offer comparison more structured, interactive, and efficient.

When farmers receive multiple buyer offers, viewing and comparing all the financial details in ordinary cards or basic tables can become difficult. AG Grid provides a more powerful data-grid experience that allows farmers to organize and examine buyer offers in one place.

Through this integration, farmers can:

  • View buyer offers in a structured, organized data grid.
  • Sort offers by quoted price, quantity, and net realisation.
  • Filter offers based on available buyer information and offer status.
  • Search and quickly locate relevant buyer offers.
  • Navigate larger offer lists using pagination.
  • Export buyer-offer information into CSV files for offline analysis and record keeping.
  • Compare gross value, available deductions, and net realisation more conveniently.

The integration uses AG Grid Community's interactive data-grid capabilities while retaining FarmPay AI's existing FairBid financial calculation logic.

We also preserved the existing card-based presentation as an alternative, allowing the application to support both a visual card experience and an interactive data-grid experience.

Why we added AG Grid:

Our objective was to make financial information easier to explore and compare. AG Grid helps turn multiple buyer offers into an organized decision-support interface, making it easier for farmers to examine available information rather than relying only on headline prices.

4. Buyer Trust Passport

The Buyer Trust Passport presents available buyer transaction-history information to help farmers make more informed decisions. It emphasizes transparency instead of relying on unsupported or fabricated trust scores. New buyers with insufficient history are identified accordingly.

Additional platform experiences

  • AI Negotiation Copilot to support offer discussions.
  • Demand Radar to present market-demand information.
  • Collective Selling Hub to support coordinated selling.
  • Digital Crop Passport for crop and lot information.
  • Logistics Intelligence and transit monitoring interfaces.
  • Order escrow and fulfilment milestone tracking.
  • Dispute management and arbitration interfaces.
  • Payments Center with PayPal Sandbox payment integration.

Together, these experiences aim to make agricultural commerce more transparent and accessible.

How we built it

We developed FarmPay AI using a modern full-stack architecture.

Frontend: React.js and Vite

We used React.js and Vite to develop the interactive frontend, with React Router for navigation and a responsive user interface. The application is organized around farmer, buyer, and administrative workflows.

Advanced Data Visualization: AG Grid Community

We integrated AG Grid Community into the existing FairBid buyer-offer comparison experience.

The integration uses the AG Grid React component and Community modules to provide structured data presentation, sorting, filtering, pagination, and CSV export.

We connected the grid to the existing buyer-offer data and retained the original FairBid calculation logic rather than creating a separate financial calculation system.

We also provided a view toggle between the interactive AG Grid matrix and the existing card-based presentation.

This allowed us to introduce advanced data-grid functionality without rebuilding the existing application or changing its backend architecture.

Backend: Python FastAPI

We used FastAPI to provide REST APIs, business logic, authentication, and communication between the frontend and database.

Database: MySQL 8

We used MySQL 8 with PyMySQL for storing and managing application data.

Authentication and Security

We implemented password hashing, JWT-based authentication, and role-based access control for different user types.

AI Integration: Groq API

We integrated Groq API for AI-assisted experiences, including negotiation and voice-related workflows, with fallback handling where applicable.

Payments: PayPal Developer Platform

We integrated PayPal Sandbox for payment-flow testing. This allows us to demonstrate the payment workflow in a controlled testing environment. It is a sandbox implementation, not live payment settlement.

We organized the platform around farmer, buyer, and administrative workflows, with dedicated screens for the different agricultural commerce activities. The implementation combines working application flows with clearly identified prototype and illustrative experiences.

Challenges we ran into

One of our biggest challenges was designing a system that considers the farmer's actual earnings rather than simply displaying the highest quoted price.

Comparing offers requires understanding the relationship between quantity, price, transportation, and deductions. We worked on presenting these details in a way that farmers can understand before making a decision.

Another important challenge was handling multiple buyer offers in a way that remains clear and manageable as the amount of information increases.

Initially, conventional offer cards provided a simple way to display buyer information. However, comparing several offers across multiple financial attributes required a more interactive approach.

To address this, we integrated AG Grid Community into FairBid.

The integration required us to:

  • Understand the existing buyer-offer data structure.
  • Connect the existing data to the AG Grid React component.
  • Preserve the existing FairBid net-realisation calculation logic.
  • Configure sorting, filtering, pagination, and CSV export.
  • Handle incomplete or unknown deduction information carefully.
  • Maintain the existing card-based view and offer-selection workflow.
  • Match the grid's appearance with FarmPay AI's existing design.

Other challenges included:

  • Making digital listing creation easier for farmers with limited experience using online platforms.
  • Designing role-based access for farmers, buyers, and administrators.
  • Integrating the React frontend with FastAPI backend services.
  • Managing authentication, database connections, and secure API communication.
  • Handling AI service failures and providing fallback behavior.
  • Integrating and testing payment workflows using PayPal Sandbox.
  • Building multiple interconnected workflows while maintaining a consistent user experience.

Accomplishments that we're proud of

We are proud to have developed FarmPay AI as more than a conventional agricultural marketplace.

Our major accomplishments include:

  • Building a unified agricultural commerce platform with farmer and buyer workflows.
  • Developing the Voice-to-Trade experience to simplify crop listing creation.
  • Introducing FairBid to focus on net realisation instead of quoted price alone.
  • Integrating AG Grid Community into the existing FairBid and Buyer Offers interfaces.
  • Implementing interactive buyer-offer sorting, filtering, search, pagination, and CSV export.
  • Providing both an AG Grid data-matrix view and an existing card-based view.
  • Preserving the original FairBid financial calculation logic while enhancing its presentation and usability.
  • Designing the Buyer Trust Passport around available transaction history.
  • Integrating AI-assisted experiences into agricultural commerce.
  • Implementing authentication and role-based access.
  • Building 17 interconnected application screens covering marketplace, negotiation, payments, logistics, fulfilment, and dispute-management experiences.
  • Developing a FastAPI and MySQL backend with automated tests.

We are particularly proud of the AG Grid integration because it addresses a real usability challenge within our platform. It transforms buyer-offer comparison into a more organized and interactive experience, helping farmers examine multiple financial details before making a selling decision.

Most importantly, we focused on a practical problem: helping farmers understand their options and make better-informed selling decisions.

What we learned

Throughout this project, we learned that building a useful AI-powered platform involves much more than integrating an AI API.

We gained practical experience in full-stack development, REST API design, database integration, authentication, role-based authorization, payment workflows, and automated testing.

Our AG Grid integration also gave us practical experience with advanced React data-grid development, Community module registration, column configuration, sorting, filtering, pagination, data formatting, and CSV export.

We learned that choosing the right technology should be driven by the problem being solved. Integrating a powerful data-grid library is valuable only when it improves how users interact with information.

We also learned the importance of designing technology around its actual users. A feature can be technically advanced, but it must still be understandable and accessible to the people who need it.

One of our biggest takeaways was that transparency is just as important as intelligence. Farmers need understandable information about prices, deductions, buyers, and transactions rather than complicated predictions without explanations.

What's next for FarmPay AI

Our next goal is to move FarmPay AI closer to real-world agricultural deployment.

We plan to:

  • Improve multilingual voice interactions for regional farming communities.
  • Integrate reliable live mandi prices and verified market-demand data.
  • Strengthen AI-based price and demand analysis using real agricultural datasets.
  • Expand buyer verification using reliable transaction and identity information.
  • Enhance FairBid with more detailed financial comparison and data-analysis capabilities.
  • Further optimize AG Grid for larger buyer-offer datasets and improved usability.
  • Complete and validate logistics, escrow, and dispute-management integrations.
  • Explore partnerships with Farmer Producer Organizations (FPOs), agricultural cooperatives, and procurement organizations.
  • Conduct field testing with farmers and buyers to evaluate usability and practical impact.
  • Explore secure, scalable payment and settlement integrations.

Our vision is to build a trusted agricultural commerce ecosystem where farmers have better access to buyers, clearer information, and greater control over the value of their harvest.

FarmPay AI — Smarter Trading. Fairer Earnings. Stronger Trust.

Built With

Share this project:

Updates

Submission history