SupplyMind - An AI-Driven Active Procurement Engine Built on Vercel & AWS

Inspiration

In the modern corporate landscape, global supply chains don't collapse because of a lack of data; they collapse from a lack of immediate action. Currently, procurement managers are drowning in "Passive Dashboards". They can see graphs showing a supplier is failing or that a high-value purchase order is delayed, but to mitigate the risk, they must leave the dashboard, open a separate email client, manually draft a warning, and hunt for attached invoice PDFs.

SupplyMind was born to bridge this friction-filled gap. We transform the traditional, passive monitoring interface into an Active Procurement Engine—collapsing the timeline between identifying a supply chain bottleneck and executing a real-world mitigation strategy into a single click.

What it Does

SupplyMind is an enterprise-grade B2B procurement risk management platform that provides:

  • Real-Time Risk Telemetry (Health Score): Every supplier is continuously evaluated on a dynamic scale from 0 to 100. If high-value orders get stuck in an unfulfilled state past their SLA, our algorithm automatically recalculates and slashes their Health Score, immediately pushing them onto the central Risk Watchlist.
  • Granular Operational Control: Through an intuitive slide-over panel, managers can track step-by-step fulfillment status, download auto-generated PDF invoices, or initiate direct coordination.
  • Multimodal AI Assistant: A fully integrated intelligence layer powered by the Vercel AI SDK. Managers can upload raw procurement documents for instant compliance checks or issue Voice Commands to query network health.
  • One-Click Physical Mitigation: Instead of just flagging a crisis, the AI generates an interactive UI component. With a single click, our backend secures an automated API call to AWS SES, dispatching a legally binding mitigation email directly to the failing vendor's real-world inbox.

How We Built It (The Tech Stack)

We engineered SupplyMind using a cutting-edge, fully serverless architecture optimized for high-velocity data and zero-idle costs:

  • Frontend & Fullstack Framework: Built with Next.js (App Router) and hosted globally on the Vercel Edge Network for single-digit millisecond asset and API delivery.
  • Core Database (AWS DynamoDB): We chose DynamoDB as our primary NoSQL data store to handle continuous transaction telemetry with ultra-low latency. To maintain maximum cost efficiency and strict performance boundaries, all queries are heavily optimized using Projection Expressions, completely avoiding expensive full-table scans.
  • Infrastructure Connectivity: Database provisioning and credential management were handled directly and securely through the Vercel Marketplace / Environment Variables integration.
  • AI Integration & Generative UI: Powered by the Vercel AI SDK Core and Google Gemini. We implemented Generative UI, meaning the AI doesn't just stream raw text responses; it streams deterministic JSON that dynamically renders interactive React components (like the urgent system warning card) on the fly.
  • Real-World Action Layer (AWS SES): Seamlessly tied to our serverless backend to handle automated enterprise communication securely.

Challenges We Faced

The biggest hurdle was syncing the continuous transaction streams into live, mathematically accurate risk scores without degrading the application’s performance. Traditional relational databases would lag under heavy scanning. Overcoming this required a shift to a NoSQL mindset with AWS DynamoDB, where we structured our primary keys specifically around single-request read patterns and used Projection Expressions to minimize bandwidth consumption.

Another technical challenge was mapping speech-to-text outputs into stable JSON payloads for the Vercel AI SDK to render components safely, which we solved by enforcing strict Zod schema validations on our AI tools layout.

Accomplishments That We're Proud Of

We successfully closed the loop of a full-stack, serverless application. We are incredibly proud to showcase a system where data flows from AWS DynamoDB, gets processed by Vercel’s Generative UI layer, and triggers an immediate, tangible real-world action via AWS SES—all working in harmony in under 2 seconds.

What's Next for SupplyMind (Future Well-Architected Roadmap)

To evolve SupplyMind into a fully "Well-Architected" enterprise ecosystem, our next milestones include:

  • AWS S3 Integration: To migrate and store massive volumes of historic PDF invoices and contract attachments securely.
  • AWS Cognito: To implement advanced Single Sign-On (SSO) and Role-Based Access Control (RBAC) for multi-tenant corporate security compliance.

Project Links

Video Presentation (YouTube): https://youtu.be/IKTC0HXZ7XQ

Built With

  • google-gemini
  • next.js
  • tailwind-css
  • typescript
  • vercel
  • vercel-ai-sdk
Share this project:

Updates