Start here, Les
The Comp Intelligence demo shows Lexi mounted as a right-side assistant against a synthetic compensation snapshot. It uses the same bolt-on contract Les can wire into the real app when ready.
Core idea: the app supplies context via
window.CompIntelSnapshot,
loads the Lexi embed, and points it at the sandbox Worker. Lexi answers from that page context.
Live sandbox status
Pages origin
Worker URL
Worker health
Checking…
Mode
Sandbox Mock
What is in this package
Comp Intelligence bolt-on
- Synthetic compensation snapshot
- wRVU, specialty, FMV, and comparison prompts
- Inline assistant panel
- Context source indicator
Public website assistant
- FAQ-only context
- Floating widget
- No internal LC data
- LexingtonClinic.com-style test shell
Platform runtime
/lexiruntime modules/embedloader and widget- Cloudflare Worker mock route
- Worker bundle for dashboard deployment
Comp Intelligence embed snippet
This is the shape Les needs. Replace the synthetic data with the real app’s selected period/snapshot later.
<link rel="stylesheet" href="/embed/lexi.css">
<script>
window.LEXI_ENVIRONMENT = 'sandbox';
window.LEXI_DEPLOYMENT = 'comp-intelligence';
window.CompIntelSnapshot = {
period: 'Q2 2026 (SYNTHETIC)',
totalWrvus: 304611,
totalCompPaid: 16200000,
avgWrvuPerProvider: 2160,
providerCount: 141,
fmvExceptions: 0,
specialties: [
{ id: 'syn-cards', label: 'Cardiology', n: 14, medianWrvu: 5800, mgmaPct: 62 },
{ id: 'syn-ortho', label: 'Orthopedics', n: 11, medianWrvu: 7100, mgmaPct: 71 }
]
};
</script>
<div id="lexiPanel"></div>
<script src="/embed/lexi-embed.js"></script>
<script src="/embed/lexi-widget.js"></script>
<script>
Lexi.init({
workerUrl: 'https://lexi-api-sandbox.ctcaw259.workers.dev',
deployment: 'comp-intelligence',
environment: 'sandbox',
jwt: () => null,
basePath: '/lexi'
}).then(() => Lexi.mountWidget({
target: '#lexiPanel',
title: 'Ask Lexi about Comp Intelligence'
}));
</script>
Demo prompts
Comp Intelligence
- What was our total wRVU output this quarter?
- Which specialty has the highest median wRVU?
- How many FMV exceptions are there?
- Compare cardiology to orthopedics on wRVU output.
Public FAQ
- How do I schedule an appointment?
- What insurance plans do you accept?
- How do I contact Lexington Clinic?
- Where are locations listed?
Boundary: this is a sandbox demo using synthetic data and deterministic mock answers.
It is not a production AI deployment.