Christian Gomez
Copied Chris@g3zcreative.com to clipboard ✓

7DayCRM & Autonomous Agency Operations Dashboard

Next.js App Router + Prisma operational CRM and webhook automation engine engineered to take service businesses from inbound lead capture to automated SLA fulfillment.

<50ms
Webhook Lead Ingest Latency
15+ hrs/wk
Manual Ops Overhead Eliminated
100%
Deterministic Pipeline State Audit
7-Day
Standardized Client Onboarding SLA
01 · INBOUND WEBHOOK
Edge API Route
HMAC signature & payload check
02 · STATE MACHINE
Prisma + Postgres
Idempotent lead & deal stages
03 · ENRICHMENT
AI Lead Triage
Domain & intent scoring
04 · WORKFLOW BUS
n8n & Slack Alerts
Instant SLA task dispatch
05 · LIVE TELEMETRY
Next.js App Router
Real-time pipeline velocity UI

STAR Engineering Breakdown

01 · Situation & Problem

Inbound agency leads and onboarding tasks were fragmented across forms, spreadsheets, and chat threads, creating response latency and manual status-tracking overhead.

02 · Technical Execution

Built a full-stack Next.js App Router and Prisma application featuring idempotent webhook ingestion, strict deal-stage transitions, and automated n8n/Slack operational triggers.

03 · Reliability & Idempotency

Implemented deterministic idempotency keys and database transactions so retried webhooks or concurrent form submissions never created duplicate CRM records or double-fired client notifications.

04 · Verified Impact

Reduced manual operational overhead by 15+ hours per week and enforced a predictable 7-day client onboarding and fulfillment cadence.

ingest_inbound_lead.ts
vitest
export async function upsertInboundLead(payload: VerifiedLeadInput) {
  return prisma.lead.upsert({
    where: { idempotencyKey: payload.idempotencyKey },
    update: { lastTouchAt: new Date(), utmSource: payload.utmSource },
    create: { ...payload, stage: "QUALIFYING", slaDueAt: addHours(2) },
  });
}
✓ 34 passed — idempotent webhook & SLA state transitions verified

Benchmark Table

METRICMANUAL BASELINEPROGRAMMATIC ENGINE
Inbound Lead-to-Action LatencyHours (Manual Inbox Triage)<50ms Webhook + Instant Slack SLA
Duplicate Lead / Retry CollisionsFrequent Webhook Duplicates0% (Prisma Idempotency Keys)
Weekly Ops Administration15+ Hours Manual Status SyncFully Automated Pipeline State