zsty.us

Before / After · Case Study

OgLife.app — one identity layer across a 17-domain portfolio

  • Hemp / CBD
  • Painting & Trades
  • Aviation

Each brand in the portfolio had its own opt-in, its own chat widget, its own customer record. A customer who liked two brands ended up as two strangers in two databases. OgLife.app is the cross-business identity + preferences + live-chat layer that sits between the brands and the customer — one opt-in, one preferences page, one inbox. Built on Cloudflare Workers + Durable Objects + Neon, with an embeddable 7KB chat widget that any brand storefront drops in.

Don't make a returning customer opt in four times. Make every brand smarter on the first inbound.
🔒jackiej.events
jackiej.events — modern site

What changed

Grouped by what kind of system shipped.

Each claim ships with concrete evidence — env vars, table names, cadence chips. No marketing fluff.

Design

QR → opt-in → preferences, in one flow

`oglife.app/r/{slug}` resolves an agent slug, logs scan + UTM + geo to Neon, drops a 30-day cookie, and 302s to a 15-category opt-in grouped into 5 buckets. Magic-link preferences editor lets the customer pause or unsubscribe per category.

Agent backbone

Durable-Object-per-conversation chat at the edge

`wss /ws` upgrades to a `ChatConversation` Durable Object — SQLite-backed, one DO per conversation_id, persists every message to Neon. Slack + Web Push fires on first visitor message when no agent is online. Claude Sonnet drafts an autoreply at 45s if still unanswered.

Real-time push

Cross-brand agent inbox with referral leaderboards

Allowlist agent admin, magic-link sign-in, conversations filtered by brand × status, AI-suggest button drafts replies in the operator's voice. Per-agent referral leaderboard + CSV export.

Retention

Removed Resend — saved a SaaS bill, used existing SMTP

Replacing Resend with SMTP via existing infra (AWS SES SMTP or Hetzner Stalwart) ships the same magic-link emails without a paid-plan upgrade.

While she sleeps.

Autonomous surfaces

The agent backbone keeps the brand earning between gigs. Jackie approves; the system runs.

  • Routes scans into the right brand pipeline

    real-time

    Worker resolves the agent slug, logs the scan, routes the opt-in to the brand that issued the QR.

  • Fires AI autoreply when no agent is online

    real-time

    Claude Sonnet drafts a contextual reply 45s after first visitor message if no agent has joined.

  • Pushes inbound visitors to the on-call operator

    real-time

    Web Push (VAPID) wakes the on-call operator's phone the moment a visitor sends the first message and no one's in the inbox.

← All rebuilds

OgLife.app — one identity layer across a 17-domain portfolio — zsty.us