What this dashboard is
A single screen showing the whole driver-notification pipeline: driver context (Snowflake
warehouse + Postgres for realtime events) decides who should be told about which load through nine
eligibility gates, a differential sync detects exactly what's new, and Twilio Programmable
Messaging (toll-free / WhatsApp) and SendGrid turn each new row into a delivered message.
Replies and delivery receipts come back on Twilio webhooks. Everything on screen is live data.
The scene: second meeting with Schneider National. You are AE + SE. Personas: Reema (VP
Engineering) plays Shaleen Devgun, EVP & CITO (the platform); Yi plays Angela Fish, EVP HR (Recruit demo); Tonya plays Andrea Sequin, VP Safety (Onboard demo); Hali plays Steve Wells, EVP Truckload (Dispatch demo). Edit personas.json to change any of this everywhere. Five demo moments, ~11 minutes; never cut Next steps.
Reading the flow chart
Red bands = compliance & safety suppressions (do-not-contact, no consent,
driving, HOS-illegal). Amber = held, on purpose (quiet hours, waiting for a meal
window, frequency caps, the trial gate). Green = flowing toward delivery.
Click any band or node to see the actual drivers there and why. Click again to clear.
The buttons
- 🧪 Generate demo run — inserts a fresh labeled batch of 8 events and switches the chart
to show only that run. 5 rows are born eligible instantly; 3 wait ~90 seconds for the
promoter to flip them — watch the bands move as it happens. Exit via the run pill ✕.
- ⚡ Fire geofence — one realtime event for Bianca Singh (driver 42): insert → send view
→ next sync tick picks it up.
- 📱 Hank the driver (its own panel) — Seed upserts the borrowed phone/email as
driver 9001 in Green Bay, off duty, consented. Fire geofence puts one realtime row in the
outbox addressed to that phone; the realtime lane delivers it. Send email does the same on
the email channel. The state card shows the queue row, the Twilio receipt, their reply, and the
do-not-contact flag flipping when they text STOP. Reset re-arms STOP.
- ⏱ Release perfect-timing batch — runs the warehouse task that freezes newly-eligible
messages into the outbox.
- 🔁 Trigger RT / SCHED sync — asks the sync engine to run now instead of waiting for
the 1-minute schedule.
- ♻ Recompute lineage — re-runs the full 50k-row gate attribution in Snowflake
(~90 s; the header timestamp updates when the new lineage lands).
Q & A you may get
- "You said exactly once. Prove it."
- The sync diffs on a stable primary key (QUEUE_ID) and the message body is frozen at enqueue —
a row can never look "changed", so it syncs exactly once. Prove it live: trigger a sync twice;
the second run shows 0 added. Then open the Twilio SMS log as the receipt.
- "What happens when the warehouse is down?"
- Nothing is sent, by design: no eligibility, no send. Realtime events ride the Postgres twin so
geofence and STOP still work. Status callbacks queue at Twilio and replay. A send you can't prove
eligible is a send you don't want.
- "A driver replies with a sentence, not STOP or YES."
- Today: keyword classification; anything unknown lands on a dispatcher queue with the thread
attached. Next: intent classification on the reply, and a voice callback for the ones that need a
human (see the Voice tab).
- "Why toll-free and not 10DLC?"
- Toll-free verification is one process with the carrier aggregator (days, not weeks), no
per-campaign registration, higher default throughput than an unregistered long code. 10DLC is right
for a brand running many marketing campaigns off local numbers; a transactional driver-operations
workflow is the textbook toll-free case. Until verification lands, nothing unverified can reach a
US handset — which is why this demo's live proof uses the WhatsApp sender.
- "Isn't 57% fewer messages just fewer loads filled?"
- Volume drops because the best match goes once instead of nine mediocre ones — acceptance rises
while sends fall. The pilot measures load-acceptance time, not message count. The numbers are modeled.
- Why is the biggest red band "HOS-illegal"?
- Most recommendations die because the load doesn't fit the driver's remaining legal drive
hours (49 CFR 395). The warehouse refuses to advertise freight a driver can't legally haul.
- Why do most Twilio attempts show as refused?
- By design: synthetic drivers carry Twilio test numbers, so every API call is real but
delivery is refused at Twilio's gate — in a regulated channel that's the last line of defense
doing its job. The Hank Delgado row carries a real address and is the one that lands.
- What's the promoter task for?
- Log-based CDC reacts to data changes, not the clock. "Send at 3pm" writes nothing at
3pm — so a 1-minute job physically flips due rows to eligible; that UPDATE is the event.
- Realtime vs perfect-timing?
- Realtime = event-born (geofence, dispatch), seconds-to-a-minute. Perfect-timing = held for
the driver's meal window or an active reply session, released in 1-minute batches, best load only.
Use-case checklist (ticks saved in this browser)
Good to know
Data refreshes: chart lineage is recomputed on demand (♻); the platform tiles poll every 5 s.
Recompute is atomic — viewers never see empty tables. This page: twilio.cuppy.io.
Backend: systemd flow-viewer · data in Supabase VIEWER schema ·
runbook in deck/SCHNEIDER_RUNBOOK.md.