INNOVAL OS · BUILD REPORT/v1.0 · shipped 2026-05-08

What I built.

A live AI consultant that analyses any service business, recommends a custom AI workforce, and emails the plan. End-to-end in 3 phases over ~3 working days. Every line of code, every commit, every dollar of API cost — documented below.

50+
commits
26
tests · 100% green
≤$0.30
cost / plan generated
32s
end-to-end deploy
3
phases · all live
THE FLOW

One textarea. Five questions. A custom AI team in <2 minutes.

STEP 01
Describe
free-form textarea
STEP 02
Q&A
3-5 followups
STEP 03
Email
lead captured
STEP 04
Analyse
Claude pass 1
STEP 05
Recommend
Claude pass 2
STEP 06
Deliver
email + page

The prospect describes their business in a single textarea. Claude asks 3-5 sharp follow-ups, one at a time. After the last answer, an email gate captures the lead. Two Anthropic passes (analysis → recommendation) run server-side. The plan persists to Supabase, gets emailed via Resend with a PDF attached, and a shareable URL renders the result on screen.

ARCHITECTURE

Stateless server actions. No session store.

  Browser (Next.js client)
       │   useState({ description, turns, email })
       │
       ▼  startAnalysis / continueAnalysis / generatePlan  (server actions)
  ┌──────────────────────────────────────────────────────┐
  │  Vercel Serverless · Node                            │
  │   ─→ Anthropic Claude Opus 4.7  (cached system)      │
  │   ─→ Supabase service-role write                     │
  │   ─→ Resend email (PDF attached)                     │
  │   ─→ PostHog capture (no-op until key set)           │
  └──────────────────────────────────────────────────────┘
                          │
                          ▼
                   /plan/[id] (dynamic route)
                   /plan/[id]/pdf (download)
Why stateless

Vercel lambdas don't share memory. Sessions die between turns. Client holds the conversation history; every server action takes the full {description, turns} as input. Cleaner architecture, no state to lose.

Why two-pass

Pass 1 builds a structured analysis JSON (industry, revenue band, tooling, bleed signals). Pass 2 maps that to BUILT/CUSTOM agents using the catalog. Smaller prompts, better signals, harder for the LLM to hallucinate.

Why prompt caching

System prompts (~3KB) are static across all prospects. Anthropic caches the prefix for 5 min — every plan after the first costs cents instead of dollars. Verified: ≤$0.30/plan.

DESIGN SYSTEM

The signature move is the chip.

Palette
#0F0E0C
ink-bg · warm charcoal
#F2EEE6
ink · warm bone
#E8C892
cream · sole accent
Type system
Inter Tight · display + UI
Instrument Serif · emphasis chip
JetBrains Mono · system metadata
Responsive scale
--h1-size:
  88px → 60px → 40px
clamp(min, vw, max)
flex-wrap + auto-fit
no media queries
Signature move

Tell me what your company does.

Italic Instrument Serif word inside a cream highlight chip rotated -0.6deg with box-decoration-break: clone so it wraps cleanly on mobile. Used in every section headline. Keeps brand recognition end-to-end.

AI ENGINE

Two passes, one schema, zero leaks.

The five BUILT agents
  • BUILTLead Response Agent
  • BUILTQuote Follow-Up Agent
  • BUILTReactivation Agent
  • BUILTReview & Reputation Agent
  • BUILTFriday Performance Report
CUSTOM agents are invented per business

Examples generated live: After-Hours Dispatch Agent (plumber), Maintenance Triage Agent (PM agency), Owner Approval Chase Agent (PM agency), Owner Statement Agent. Tagged CUSTOM. Pushes the recommendation to the Enterprise tier when present.

Voice guardrails

Banned words enforced via prompt + self-check rule. 0 leaks on rendered plans across 3 industries tested. Tier rationale must name a specific signal from the conversation. Stat formatting strict: '<2 min', '+22 hrs/mo', no double-stacked '+90%+' signs.

1,200 tok
System prompt (cached after first call)
800 tok
Analysis pass · max output
2,400 tok
Recommendation pass · max output
≤$0.30
Total cost per plan · Claude Opus 4.7
TECH STACK

Twelve packages. One worktree.

Next.js 16.2App Router · async server components · static + dynamic
React 19.2useTransition for the conversation flow
TypeScript 5strict mode
Tailwind 4design tokens via CSS vars
@anthropic-ai/sdk 0.36Claude Opus 4.7 + prompt caching
@supabase/ssr 0.10service-role writes · public-read RLS
Zod 3.23schema validation on every AI response
Resend 4.8transactional email · innovalos.com sender
@react-pdf/renderer 4.5server-side PDF for email + download
posthog-node 4.18 + js 1.37lazy-loaded · funnel tracking
Vitest 4.126 unit + integration tests
Playwright 1.49E2E + visual regression
DELIVERY

Three phases. Each deployable.

01

Static landing

14 tasks · 16 commits

Scaffolded Next.js 16 + design tokens + 6 sections (hero, manifesto, receipts, tier teaser, CTA, footer). Conversation-flow stubbed at email gate. Vercel preview live before AI was wired. Mobile responsive. 9 unit tests.

SHIPPED
02

AI plan generation

13 tasks · 17 commits

Supabase migration + plans table. Anthropic two-pass (analysis → recommendation). Stateless server actions. Resend email + plan template. Payoff page at /plan/[id]. Hybrid scope model: BUILT vs CUSTOM. End-to-end live with real plans for 3 test prospects.

SHIPPED
03

Analytics + polish

7 tasks · 5 commits

PostHog server + client (graceful no-op without key). PDF generation attached to email + download endpoint. Honeypot anti-spam guard. Playwright E2E (3 functional + 2 visual). Launch checklist.

SHIPPED
RECEIPTS

Real plans for real businesses, generated live.

Full Workforce · 6 (5 BUILT + 1 CUSTOM)

Geelong Plumbing Co

$30-60K recovered in 90 days

14-person residential plumbing · $2.4M ARR · 4,000-customer reactivation backlog

/plan/peA4234ApqNi →
Enterprise Workforce · 6 (3 BUILT + 3 CUSTOM)

Newcastle PM Agency

3 custom agents invented

380 rentals · 8 staff · maintenance triage + owner approval + statement generation

/plan/qCDqsX1pl-cx →
CODEBASE

Forty-five files. Fits in one head.

landing/
├── app/
│   ├── layout.tsx              · fonts + posthog mount
│   ├── page.tsx                · the landing
│   ├── globals.css             · design tokens + responsive vars
│   ├── plan/[id]/
│   │   ├── page.tsx            · payoff page
│   │   ├── pdf/route.tsx       · PDF download endpoint
│   │   └── not-found.tsx
│   ├── build/page.tsx          · this page
│   └── actions/
│       ├── start-analysis.ts   · first AI call
│       ├── continue-analysis.ts · followup loop
│       └── generate-plan.ts    · two-pass + persist + email
├── components/
│   ├── hero.tsx · manifesto.tsx · receipts.tsx
│   ├── tier-teaser.tsx · final-cta.tsx · footer.tsx
│   ├── conversation-flow.tsx   · client state machine
│   ├── highlight-chip.tsx · status-pulse.tsx · logo.tsx
│   └── payoff/
│       ├── header.tsx · agent-row.tsx · impact-card.tsx
│       └── tier-match.tsx · final-cta.tsx
├── lib/
│   ├── prompts/                · system + analysis + recommendation + followups + catalog
│   ├── schemas/                · zod for every AI response
│   ├── pdf/plan-pdf.tsx
│   ├── email/{resend,plan-email-html,send-plan}.tsx
│   ├── analytics/{server,client}.tsx
│   ├── plans.ts · short-id.ts · cn.ts · anthropic.ts
│   └── supabase-{server,browser}.ts
└── tests/
    ├── unit/      (8 files · 18 tests)
    ├── integration/ (3 files · 8 tests)
    └── e2e/        (1 spec · 5 tests + 2 baselines)
WHAT'S NEXT

Five clicks to public launch.

  1. 01
    Custom domain
    Point innovalos.com (already verified for Resend) at the Vercel project. Update NEXT_PUBLIC_BASE_URL.
  2. 02
    PostHog project
    Create at app.posthog.com → drop NEXT_PUBLIC_POSTHOG_KEY into Vercel env. Funnel goes live without redeploy.
  3. 03
    OG image
    Replace the 68-byte placeholder with a real 1200×630 brand asset for LinkedIn / Twitter / Slack previews.
  4. 04
    Lead pipeline
    Wire Make.com to watch innoval_plans Supabase table → push to GHL or whichever CRM.
  5. 05
    Announce
    LinkedIn post linking to the tool. Watch the funnel for the first 48 hours.