Matthew Jeter M. Ziemba

Multi-tenant booking platform

Homeowners book appointments straight into Zuper from a widget branded for each contractor, and new leads receive a one-time booking link by email.

For
Four roofing contractors
When
April 2026 to now
Status
In production since April 2026
Role
Sole developer, tenant onboarding and client tickets
Systems
Zuper, HubSpot, Demand IQ and n8n

Data paths and guards

Demand IQHubSpot formsTenant storen8n booking flowResend emailZuperDemand IQHubSpot formsTenant storePostgresn8n booking flown8n CloudResend emailZuperBooking platformLead webhooksForm conversionsTenants, tokens, queueSlots and bookingsCustomers and jobsRep lookupsBooking invitesQueue retry, atomic claimsOne-time prefill linksReal success, not a 200Sellers-only openings Demand IQHubSpot formsStoren8n flowResendZuperDemand IQHubSpot formsStoren8n flowResendZuperBookingabcdefg
  1. Demand IQ: Lead capture on the contractor’s site; posts each new prospect by webhook.
  2. HubSpot forms: Website forms, whose conversions are read through a HubSpot OAuth app.
  3. Tenant store: Tenants, credentials, prefill tokens, webhook logs and the lead queue.
  4. Booking platform: Next.js on Vercel: the branded widget, 12 API routes and two cron jobs.
  5. n8n booking flow: Each tenant’s own n8n flow, which talks to Zuper.
  6. Resend email: Sends each tenant’s booking invite, in that tenant’s name, logo and colors.
  7. Zuper: Customers, jobs and the reps’ calendars.
  8. From Demand IQ to Booking platform: Lead webhooks. New prospects, logged and queued for an invite. A prospect is created in Demand IQ.
  9. From HubSpot forms to Booking platform: Form conversions. Website form submissions, read through the OAuth app. A HubSpot form conversion.
  10. From Booking platform to Tenant store: Tenants, tokens, queue. Tenant config and credentials, one-time prefill tokens and the lead queue. Every request and every cron run.
  11. From Booking platform to n8n booking flow: Slots and bookings. Openings requested and bookings confirmed, sent to the tenant’s own flow. A homeowner opens the calendar or confirms a slot.
  12. From n8n booking flow to Zuper: Customers and jobs. Scheduling lookups, Zuper customers and scheduled jobs. Each request from the platform.
  13. From Zuper to Booking platform: Rep lookups. Who holds each open slot, so staff who do not sell can be filtered out. Each availability request.
  14. From Booking platform to Resend email: Booking invites. A branded email with a one-time booking link, in the tenant’s own name and colors. A new lead, once its contact details exist.
  15. On Lead webhooks: Queue retry, atomic claims. A lead that arrives before its contact data is retried from a queue every 2 minutes, and an atomic claim lets only one run email it.
  16. On Tenant store: One-time prefill links. Each invite carries a prefill token that only a successful booking spends; a spent token is refused.
  17. On Booking platform: Real success, not a 200. The flow’s answer is read for success, not just its status code, so a booking Zuper rejected shows as failed.
  18. On Rep lookups: Sellers-only openings. Slots held by staff who do not sell are removed, and the booking route rejects a crafted request for one.
  • Built by me
  • Platforms I connect to
  • Guards
  • In production

Data paths
Lead webhooks New prospects, logged and queued for an invite
Form conversions Website form submissions, read through the OAuth app
Tenants, tokens, queue Tenant config and credentials, one-time prefill tokens and the lead queue
Slots and bookings Openings requested and bookings confirmed, sent to the tenant’s own flow
Customers and jobs Scheduling lookups, Zuper customers and scheduled jobs
Rep lookups Who holds each open slot, so staff who do not sell can be filtered out
Booking invites A branded email with a one-time booking link, in the tenant’s own name and colors
  1. Systems

    Leads arrive from Demand IQ and HubSpot forms. The platform is Next.js on Vercel, with each contractor’s branding, credentials and lead queue in Supabase. Each tenant’s n8n flow talks to Zuper, where the jobs and the reps’ calendars live, and Resend sends the invites.

  2. Data paths

    A new lead becomes a branded email, sent through Resend, with a one-time booking link. The homeowner picks from openings held by reps who sell, the tenant’s n8n flow books the slot, and Zuper holds the customer and the scheduled job.

    • a Lead webhooks
    • b Form conversions
    • c Tenants, tokens, queue
    • d Slots and bookings
    • e Customers and jobs
    • f Rep lookups
    • g Booking invites
  3. Guards

    Leads that arrive before their contact data are retried from a queue under atomic claims. Invite links work once. The flow’s answer is checked for real success, and slots held by staff who do not sell are filtered out.

    • Queue retry, atomic claims on a
    • One-time prefill links on Store
    • Real success, not a 200 on d
    • Sellers-only openings on f
  4. Result

    All 4 tenants pass a 21-check production smoke test. A real Demand IQ lead became an invite in 4 seconds, and a synthetic booking completed in about 4.5 seconds.

What I built

What the guards protect against

The risk The guard
A lead that arrives early is never emailed, or is emailed twice. Queue retry, atomic claims A lead that arrives before its contact data is retried from a queue every 2 minutes, and an atomic claim lets only one run email it.
An invite link books twice, or an old link is reused. One-time prefill links Each invite carries a prefill token that only a successful booking spends; a spent token is refused.
A booking Zuper rejected still shows as a success. Real success, not a 200 The flow’s answer is read for success, not just its status code, so a booking Zuper rejected shows as failed.
Homeowners book slots no real rep can take. Sellers-only openings Slots held by staff who do not sell are removed, and the booking route rejects a crafted request for one.

Results

  • 4 contractors live, and all 4 pass the 21-check production smoke test.
  • A real Demand IQ lead became a branded invite in 4 seconds, and a synthetic booking completed in about 4.5 seconds.
  • The availability filter passed 36 of 36 tests, including live legs, and an excluded user was absent on 4 of 4 future dates.

Facts

  • A HubSpot form submission reached the lead’s inbox as an invite in about 20 seconds
  • Contractors two to four were onboarded in about three weeks
  • A tenant can send its invites from its own verified domain
  1. HubSpot-first booking

    Date: Apr 2026

    Fact: Booking to an assigned field task in about 104 seconds, fully automatic

    Client: For a residential roofing contractor

    Systems: Arrivy and WhatConverts

    Status: In production

  2. Multi-tenant event processor

    Date: Jun 2026

    Fact: 10,630 events in 7 days through the queue that replaced Make.com

    Client: For a multi-brand roofing company

    Systems: AccuLynx and Make.com

    Status: In production

  3. Field-service rollout

    Date: Jul 2026

    Fact: 4 job types, with up to 15 gated statuses and 131 checklist fields

    Client: For a commercial roofing contractor

    Systems: Zuper and Dataforma

    Status: In production