System architecture
Automation Health Monitor Architecture
- 01Inventory the critical
A monitoring dashboard for the automations that keep the funnel alive — admin-notified, auto-reply-sent, webhook processed, scheduled job ran — sho...
- 02SQL that
Write SQL that, per automation, returns last-success time, failures in the last hour/day, and a 'gap' flag for non-partial leads missing an expected notification (mirrors the existing countNotificationGaps logic).
- 03Supabase Postgres
Supabase Postgres contributes the trusted model for Automation Health Monitor so metrics are defined before they are visualized.
- 04monitoring_events table
Build a health panel (server component) with a green/amber/red row per automation, last-run age, and a recent-failures list pulled from monitoring_events.
- 05Review Queue
If event coverage is incomplete, fall back to the lead-field gap counts (notifications missing on non-partial leads) as the primary health signal a...
- 06Owner Review
Silent automation failures get caught fast — owners see at a glance whether reminders, alerts, and replies are firing, so a broken webhook doesn't...