Simiaroom CX Operations Platform • MVP 1.0

Continuous Experience Intelligence & Decision Loop

Consolidate client journey telemetry, detect explainable churn risks, and drive light operational follow-ups across recurring therapy sessions — built on the Padida architecture.

Core Decision Loops

5 Operational Pillars That Drive Continuation

Built specifically to solve patient retention, therapist-client matching friction, and operational visibility.

🪜

1. Journey Funnel Analytics

Tracks clients across the 6 canonical stages (Identified → Assessed → Matched → Booked → Paid → In Treatment). Accurately diagnoses drop-off friction at payment rather than assessment.

Explore Funnel →
📈

2. Session Retention & Continuum

Analyzes cohort continuation by session number ($N=1$ to $N=10+$). Proves that continuation jumps significantly after Session 3, and detects dangerous inter-session delays before drop-out.

Explore Retention →
⚠️

3. Explainable At-Risk Engine

Rule-based, non-clinical risk classification (risk_v1). Explains exact triggers: unplanned gaps, payment failure, and consecutive cancellations with a 4-outcome resolution flow.

Explore At-Risk Queue →
👤

4. Customer 360 Timeline

A unified, chronological audit trail for every client: booking intents, session attendance, invoices, and survey responses — with strict role-based access control protecting clinical notes.

Inspect Client 360 →
🩺

5. Data Health & Ingestion Bar

Continuous pipeline observability meeting the Pilot Data Quality Bar: 100% completeness against source records, zero duplicate events, and transparent quarantine isolation.

View Data Health →
🛡️

6. Privacy & Governance

Full compliance with the Internal Privacy Access Matrix: support staff see zero payment amounts; behavioral events transmit zero patient clinical text; browser events require affirmative consent.

Inspect Governance →
Developer Integration

How to Integrate with CX Orbit

The Collector is the sole external write ingress (ADR 0002). Backend services and web clients stream events through lightweight, secure interfaces.

Recommended for Simiaroom Backend

Backend SDK (@cx-orbit/node)

Thin, transport-only Node.js client. Emits authoritative P0 domain facts directly to the Collector. Never connects to the database.

import { createClient } from "@cx-orbit/node";

const cx = createClient({
  writeKey: process.env.COLLECTOR_SERVER_WRITE_KEY!,
  collectorUrl: "http://127.0.0.1:8080",
  environment: "development",
  debug: true,
});

// 1. Emit an authoritative payment outcome
cx.paymentSucceeded({
  entityId: "pay_987",
  sourceEventId: "pay_txn_20260912_01",
  userId: "usr_123",
  properties: {
    orderId: "ord_555",
    bookingId: "bkg_777",
    packageId: "pkg_individual_4",
    amount: 2500000,
    currency: "IRR",
    gateway: "zarinpal",
  },
});

// 2. Emit session completion
cx.sessionCompleted({
  entityId: "ses_101",
  sourceEventId: "ses_completed_101",
  userId: "usr_123",
  properties: {
    therapistId: "thr_sarah_ahmadi",
    sessionNumber: 3,
    attendanceStatus: "attended",
    actualDurationMinutes: 50,
  },
});

// 3. Flush batch to collector (automatic on 20 events or 10s interval)
const result = await cx.flush();
if (result.failed) {
  console.error("Ingest warnings/errors:", result.errors);
}
⚡
Live Collector Verification Script

Run the 5-step automated collector test suite against your local instance right from your terminal:

./scripts/demo-collector.sh
Repository Source of Truth

Technical Documentation Hub

All specifications, architectural decision records, and operational runbooks are versioned in this repository under docs/ and accessible in an interactive documentation viewer.

Open Interactive Docs Hub (n8n-style) →
Instant Demo Access

Experience the Decision Loop

Launch directly into the staging platform using pre-configured role personas. No setup or manual passwords required.

Recommended for Presentations

Operations Lead

Review the At-Risk queue, inspect explainable signals (attendance gaps, payment errors), and assign and resolve follow-up actions.

Full Governance

Platform Administrator

Full workspace administration: Data Health pipeline observability, Integrations status & sync, reason-code libraries, and settings.

Direct Bypass

Staff Token Direct Access

Instant compatibility token login bypassing username/password. Unlocks the entire P0 Decision Loop immediately.