AgroBridge: AI-Powered Agriculture Marketplace
Tagline: AgroBridge: The AI-Powered Link from Farm to Buyer. AgroBridge is an innovative e-commerce platform designed to fix the gaps in the traditional agricultural supply chain in Nigeria. We use Google's Gemini AI to act as a smart, specialized assistant, ensuring local farmers and sellers get fair profit and business buyers get transparent access to quality, fresh produce.
✨ Core Functionality: Our AI Advantage
Our application is structured around providing targeted intelligence for both user types.
🌾 Seller Dashboard (The Profit Center)
The Seller Dashboard is built to maximize profitability and minimize manual effort using AI and automated tracking. AI Inventory (Financial Analysis): This page acts as a financial analyst. It pulls all sales data (from the completed orders) and uses the Gemini LLM to provide a concise, high-level summary of performance. It highlights the best-selling and slowest-moving products, giving the seller actionable direction. AI Insights (Consultant Chat): This is a personalized, conversational assistant. It analyzes the seller's customer reviews, product list, and location to give targeted advice. Sellers can ask questions like, "What should I do about the low rating on my tomatoes?" or "How can I improve my yield in my local area?" Product Management: Sellers can easily list new items, upload images, and manage (view/delete) their stock. Our system automatically updates the stock count after every buyer purchase. Orders & Reviews: Sellers can track detailed sales records, viewing buyer information, quantity sold, and calculating their total revenue and potential net profit.
🛒 Buyer Dashboard (Smart Sourcing)
The Buyer Dashboard focuses on speed, quality, and finding the perfect product match. AI Search Bar: This is the flagship feature. Buyers can use natural language (e.g., "I need cheap, fresh red tomatoes for jollof rice") instead of exact keywords. The Gemini LLM interprets the user's intent to find the best product matches. AI Chatbot: A universal shopping assistant that helps buyers discover products, compare prices, and answer general agricultural questions before they search. Verified Review System: Buyers are prompted to leave a rating and review immediately after a successful checkout, ensuring that all customer feedback is linked to a confirmed transaction. Automated Checkout: The shopping cart, pricing, and purchase confirmation are streamlined, with successful checkouts immediately decrementing the seller's stock and generating a formal sales record in the backend.
🛠️ Tech Stack
AI Engine: Google Gemini API (LLMs) Backend & Database: Supabase (PostgreSQL, Authentication, Functions) Frontend: HTML, CSS, JavaScript (Vanilla JS, designed to be fully responsive)
🔮 Future Development: The USSD Vision
Due to the limited time frame of the hackathon, we could not finalize the complex regulatory process required to register with a telecom company to fully implement the USSD (Unstructured Supplementary Service Data) feature. However, this feature is core to our mission of Financial Inclusion and is the priority for future development.
How USSD Would Work in Real Life:
The USSD service is designed to allow farmers and small business owners in areas with no internet connection to access the marketplace. Request: A user dials the AgroBridge shortcode (e.g., *444#). AI Integration: The user sends a text command: "Buy Yam, 50kg." The telecom company forwards this text to our secure server (an Edge Function). Smart Matching: Our server would immediately call the Gemini LLM to analyze the request, identify the product and location, and perform a database query. Instant Response: The server sends back a text-based menu showing the best-matched seller, the price, and a final prompt: "Seller A, NGN 25,000. Reply 1 to Confirm Purchase." Payment & Confirmation: The transaction is completed directly through the USSD interface, confirming the payment and updating the inventory in real time, all without requiring a smartphone or any data connection.