Zen Algorithms · Insurance Lab ← Full architecture
Platform · Engineering

Simplified Architecture — flow by flow

The full architecture shows the whole platform at once — which is a lot. In practice you'd implement one flow at a time. So here each business flow is designed as a standalone service with its own minimal stack (start with the smallest proven stack: Vercel + Cloud Run + Cloud SQL), and every other flow is a black box reached only through the event-contract spine. Each page shows that flow's own architecture, what it owns, and how it interfaces with the rest — so you can pick up just one (e.g. "build Product Design") and integrate later.

Or see the maturity ladder — the same platform grown stage by stage, from a one-week MVP to a multi-region, AI-enabled system.

🏠
Flow 1 · External

Customer / Quote

Capture the property & product selection, prefill from data sources, kick off a quote.

Emits: QuoteRequested · Consumes: product versions, cat-scores (read)
Customer flow architecture →
📐
Flow 2 · Internal

Product Design

Business analysts & actuaries author products + rules, versioned by date. Downstream flows mostly read it; it rarely changes.

Emits: ProductVersionPublished · Consumes: — (upstream of everything)
Product flow architecture →
🧮
Flow 3 · Internal

Pre-sale / Underwriting

Scorecard + the accept/refer/decline decision; the policy-config state machine + audit.

Emits: DecisionMade · Consumes: QuoteRequested, ProductVersionPublished, cat-scores
Underwriting flow architecture →
💲
Flow 4 · Internal

Pricing & Billing

Rate the risk, freeze the premium (write-once ledger), hand off to billing.

Emits: MarkedAsSold, BillingInvoiceRequested · Consumes: DecisionMade, product/rate versions
Pricing flow architecture →
📁
Flow 5 · Internal

Case Mgmt & Claims

Async (runs in the background after purchase) install gate → active policy; servicing; FNOL (First Notice of Loss)/claims.

Emits: PolicyActivated, FNOLReceived · Consumes: MarkedAsSold
Case & claims flow architecture →
🔌
Cross-cutting

Shared services

Property prefill, climate cat-model (CAT = catastrophe), VLM (Vision-Language Model — reads claim & inspection photos), RAG (Retrieval-Augmented Generation)/AI-agent (drafts cited underwriting recommendations) — called by flows as black-box services.

Contract-only: each is a stable API; the cloud/vendor behind it can change.
See the integrations →
🛰️
Integration spec · Deep dive

Property Data Prefill · "Groundwork"

Every vendor's API in/out + indicative cost, the tiered call waterfall, our storage tables + TTL/event refresh criteria, and the field → provision/option mapping.

Serves: POST /prefill (sync) · Emits: PropertyDataRefreshed
Prefill integration spec →