A three-layer diagnostic engine that turns dashboards into guided narratives — grounded in the same numbers the client sees, never generic advice.
Solid arrows = runtime data flow · Dashed arrows = configuration reference
Every chart, KPI, and table on the dashboard is also a measurement point. The platform reads metric values directly from the same data the user sees — no parallel data store, no stale snapshots.
For each diagnostic theme — Procurement Risk, Financial Health, etc. —
a consultant defines rules in the admin UI. Each rule has a name, a trigger condition
tied to a BI metric (e.g. supplier_concentration ≥ 0.35),
and a set of targeted instructions to inject when the rule fires.
When a metric value crosses its rule threshold, two things happen simultaneously:
the anomaly is written to an audit log (rule id, value, timestamp),
and the rule's append_instructions
are inserted into the LLM's prompt context. Multiple rules can fire on the same report,
stacking their instructions.
The LLM receives: the raw metric values currently displayed, the theme's base prompt template, and the triggered rules' targeted instructions. The output is a diagnostic summary with concrete numbers, specific risk callouts, and recommended actions — not generic advice from training data.
The draft routes to a consultant review queue. The consultant can approve, edit, or reject. Only approved reports reach the client. The LLM does the heavy lifting; a human is still the gate.
The LLM sees the same numbers the client sees. No hallucinated metrics, no abstract advice.
Consultant expertise is encoded once as rules + prompts, then runs across every client report consistently.
Every output passes a consultant review gate. AI accelerates; humans take accountability.