Adam BlansettSenior Full-Stack & AI Engineer
Autonomous AI WorkforcePhase 3 Starter Scaffold (MIT)

AI Account & Customer Success Manager Platform

Self-hosted AI customer success starter scaffold for account health scoring, product adoption drop alerts, QBR briefs, renewal risk flagging, and expansion surfacing.

Engineering RoleLead Systems & AI Architect

01. Problem & Context

Customer success and account management teams struggle to spot quiet usage drops across cohorts, reconcile product telemetry with support sentiment before renewal windows, assemble metric-backed QBR briefs, and surface expansion signals without reactive guesswork.

02. Engineering Solution

Initialized the Phase 3 self-hosted starter scaffold pairing a FastAPI + Pydantic v2 backend (`/api/v1/health{,/live,/ready}`, pure ASGI security-header middleware, fail-fast production secret validation) with a React 18 Vite/Tailwind workspace, PostgreSQL (`pgvector`) + Redis Compose stack, and GitHub Actions CI. Establishes the verified runtime baseline for planned `health/`, `adoption/`, `qbr/`, and `renewals/` domain modules (distinct from inbound contact-center `ai-customer-service`).

03. System Architecture

Verified starter runtime (`backend/app/main.py`, `core/config.py`, `core/middleware.py`, `api/v1/health.py`) paired with a React 18 TypeScript dashboard (`frontend/src/App.tsx`), Docker Compose (`postgres` pgvector, `redis`, `api`, `frontend`, `ollama` profile), and CI pipeline (`ruff`, `mypy`, `pytest`, `tsc`, `vitest`, `vite build`, `npm audit`, Trivy) ready for the four planned CSM modules in `docs/ARCHITECTURE.md`.

Core Architectural Components

Verified Starter API, Security Baseline & UI Shell (`/api/v1/health*`)

Shipped FastAPI application with versioned `/api/v1/health`, `/live`, and `/ready` probes, ASGI security-header injection (`X-Request-ID`, `nosniff`, `DENY`), fail-fast `validate_production_security()`, offline `mock`/Ollama/Gemini routing settings, and React 18 live health console.

Planned Domain Module: Account Health Scoring (`health/`)

Blueprint for weighted product-telemetry, support-sentiment, and executive-engagement rubrics with transparent score drivers and trend-decay detection.

Planned Domain Module: Adoption Drop & Churn Alerts (`adoption/`)

Blueprint for cohort usage anomaly detection, seat/license utilization profiling, and early renewal-risk escalation triggers.

Planned Domain Modules: QBR Briefs & Expansion Orchestration (`qbr/`, `renewals/`)

Blueprint for metric-cited QBR deck synthesis, renewal pipeline risk tracking, expansion signal scoring, and HITL-approved customer outreach queues.

04. Notable Engineering Decisions

Clean Separation from Inbound Support Telephony (`ai-customer-service`)

Proactive lifecycle account management requires cohort health rubrics, QBR metrics, and renewal pipelines rather than real-time SIP/WebSocket contact-center routing.

Metric-Grounded QBR Briefs & Transparent Health Rubrics

Black-box churn scores fail CSM trust; the planned `health/` and `qbr/` modules keep rubric weights explicit and bind every QBR claim to verified usage and support records.

CSM Approval Gates on Account Outreach & Playbooks

Executive renewal or expansion messages carry commercial sensitivity, so automated drafts are designed to route through human review and immutable audit logs.

05. Engineering Challenges & Solutions

Challenge: Protecting customer account telemetry and contact PII when generating summaries with external LLMs.

Engineering Solution: Configured `LLM_REDACT_PII_FOR_CLOUD=true` and local-first Ollama support in `core/config.py`, backed by deterministic `mock` tests in CI.

Challenge: Providing an immediately verifiable full-stack starter workspace for CSM automation.

Engineering Solution: Included passing `pytest` API/security tests, `vitest` React UI tests, production Nginx build config, and `docker compose` validation from initial commit.

06. Implementation Highlights

  • Verified FastAPI starter with `/api/v1/health`, `/live`, and `/ready` probes plus fail-fast `APP_ENV=production` secret and CORS validation
  • Pure ASGI `SecurityHeadersMiddleware` injecting `X-Request-ID`, `X-Content-Type-Options: nosniff`, `X-Frame-Options: DENY`, and production HSTS
  • React 18 + TypeScript + Vite + Tailwind starter dashboard with live `/api/v1/health` status check and Vitest + Testing Library unit tests
  • PostgreSQL (`pgvector`) + Redis + optional Ollama Docker Compose stack with non-root API and unprivileged Nginx containers
  • Documented Phase 3 `docs/ARCHITECTURE.md` blueprint for `health/`, `adoption/`, `qbr/`, and `renewals/` modules behind GitHub Actions CI