← Back to Blog
The Stack
We deploy a FastAPI endpoint to Vercel’s serverless runtime. It validates payloads, enriches them with Clearbit and
writes each submission to Supabase. The same function hits the Microsoft Graph API so sales gets a Teams ping before
the prospect closes the tab.
- FastAPI for predictable validation and OpenAPI docs.
- Supabase for durable storage plus row-level security.
- Brevo SMTP relay so we don’t fight with corporate spam filters.
Why Serverless Wins Here
Outreach traffic is spiky—expo weekends get 10x more submissions than a normal Tuesday. Vercel scales to zero when
nobody is browsing and fans out instantly during live events. Logs flow to Vercel Analytics so we can prove to
compliance that every payload was processed.
Need to run the worker inside a private network? The same repository deploys to Docker or Fly.io so regulated clients
can keep data on sovereign soil.
Operational Guardrails
Integrations rot when marketing changes a form field without telling engineering. I ship a JSON schema along with the
endpoint, then add a GitHub action that runs contract tests whenever a new form version appears. BD leadership can
see daily delivery stats in a Looker Studio tile, so any drop-off triggers a Slack alert.
Security + Compliance Notes
Payloads are encrypted with customer-managed keys, secrets live in Doppler, and every request receives a risk score
before it’s written to Supabase. Need on-prem? The same FastAPI app ships as a Docker image with SOC2-ready logging.
- Dual write to BigQuery for long-term analytics.
- Optional reCAPTCHA Enterprise and Cloudflare Turnstile support.
- Regionalized SMTP relays to respect data residency requirements.
Team Enablement
Ops and marketing get a Notion playbook—API references, troubleshooting tree, and escalation contacts. Quarterly drills
walk the team through simulated outages so everyone knows how to fail over within minutes.
Want This Automation Playbook?
I handle audits, implementation and 12/5 monitoring for GCC enterprises.
Reach Out