AI + Web3

AI + Blockchain Supply Chain Platform: 3 Enterprise Pilots Signed in 2 Weeks

7-week build
Anonymized — details changed to protect the client

94%

AI anomaly detection accuracy

3

Enterprise pilots in 2 weeks

$1.2M

Pre-seed raised

$4M

Monthly verified transactions

The Founder's Problem

“Priya” (name changed) had spent three years in enterprise supply chain management. She knew the problem intimately: global supply chains are riddled with fraud, counterfeit goods, and data inconsistencies — and the existing audit tools were manual, slow, and forgeable. Her idea was to use AI to detect anomalies in supply chain data streams (pricing spikes, routing deviations, timestamp gaps) and anchor proof of each verified shipment event on-chain so it couldn't be retroactively altered.

The challenge: she needed expertise in two completely separate technical domains simultaneously — ML-based anomaly detection and blockchain smart contracts. She had no technical co-founder, a limited budget, and enterprise prospects already interested who needed a demo in 8 weeks.

“I was terrified it was too complex to build quickly. The AI side, the blockchain side, the enterprise dashboard — I thought I'd need two different agencies and a year. We shipped it in seven weeks.”

— Priya, Supply Chain Tech Founder (anonymized)

Our Solution

We designed a three-layer architecture: an AI detection pipeline that ingests supply chain event streams and flags anomalies, a blockchain anchoring layer that writes cryptographic proofs to Polygon for every verified event, and an enterprise dashboard where clients can view real-time alerts, audit trails, and on-chain verification links.

AI Detection Pipeline

  • Isolation Forest + statistical z-score model ensemble for anomaly detection across price, routing, and timing dimensions
  • GPT-4 powered natural language reporting: each anomaly generates a plain-English explanation of what was detected and why it's suspicious
  • FastAPI ingestion endpoint accepting webhook events from ERP systems (SAP, Oracle, custom CSVs)
  • Confidence scoring: anomalies graded Low / Medium / High — only High triggers automatic alert and on-chain anchor
  • Historical training on 3 years of anonymized supply chain event data provided by the founder's enterprise contacts

Blockchain Anchoring Layer

  • Solidity smart contract on Polygon PoS — stores keccak256 hash of each verified shipment event
  • IPFS storage for full event payload — on-chain only stores the hash + timestamp + event ID for cost efficiency
  • Batch anchoring: events grouped and written in batches of 50 to minimize gas costs (~$0.002 per event)
  • Public verification endpoint: anyone can input an event ID and verify its on-chain proof

Enterprise Dashboard

  • Next.js dashboard with role-based access — enterprise admin view vs. auditor view
  • Real-time anomaly feed with drill-down into raw event data and AI explanation
  • On-chain verification links for each event (Polygonscan)
  • CSV export for compliance and audit purposes
  • SOC 2-ready audit log — every user action timestamped and stored

Tech Stack

Python 3.11FastAPIscikit-learnOpenAI GPT-4SolidityHardhatPolygon PoSIPFS / PinataPostgreSQLNext.js 14Tailwind CSSDockerAWS ECS

Timeline (7 Weeks)

Week 1

Discovery & Data Architecture

Mapped the three-layer architecture. Reviewed the founder's sample supply chain data. Designed the event schema and PostgreSQL data model.

Week 2

AI Pipeline — Detection Model

Built and trained the Isolation Forest + z-score ensemble on historical data. Achieved 89% accuracy on holdout set. Identified gaps in training data, filled with synthetic augmentation.

Week 3

AI Pipeline — GPT-4 Reporting & API

Built the FastAPI ingestion endpoint. Integrated GPT-4 for natural language anomaly explanations. Tested with live ERP webhook simulation.

Week 4

Blockchain Layer

Wrote and tested the Solidity anchoring contract. Set up IPFS storage via Pinata. Built batch anchoring logic and the public verification endpoint. Deployed to Polygon Mumbai testnet.

Week 5

Enterprise Dashboard

Built the Next.js dashboard — real-time anomaly feed, role-based access, on-chain proof links, CSV export.

Week 6

Integration & Enterprise Pilot Setup

End-to-end integration testing. Onboarded first pilot client's SAP webhook. Accuracy on live data: 94%. Polygon mainnet deployment.

Week 7

Demo Polish & Handover

Polished the dashboard for enterprise demos. Delivered documentation, deployment runbooks, and a recorded walkthrough for the founder's sales calls.

Results (60 Days Post-Launch)

94%

anomaly detection accuracy on live enterprise supply chain data

3

enterprise pilot agreements signed within 2 weeks of launch

$1.2M

pre-seed funding raised — investors cited proprietary training data and blockchain audit trail as moat

$4M/mo

in supply chain transactions being verified through the platform by pilot clients

~$0.002

per event anchoring cost on Polygon — enterprise clients cited this as a key adoption driver vs. competitors

0

on-chain verification disputes — every anchored event has held up to enterprise audit scrutiny

What Made This Work

The GPT-4 explanation layer was the unexpected sales multiplier. Enterprise procurement teams aren't data scientists — they can't read a feature importance chart. But they can read “This shipment's declared weight is 34% below historical average for this route. Three similar shipments from this supplier were found to contain substituted goods in Q3 2023.” The AI explanation converted technical anomaly scores into business-readable evidence.

The Polygon anchoring decision — over Ethereum mainnet — was critical for enterprise adoption. At $0.002 per event, the cost was invisible. On Ethereum mainnet during normal gas conditions, the same architecture would have cost $2–8 per event, making it economically unviable at scale. Cost efficiency unlocked the use case entirely.

Building an AI + Web3 Product?

We've shipped products that combine AI and blockchain. Book a discovery call and we'll tell you how to architect it right from day one.

Book a Discovery Call