Rafael SilvaContact

Automation2026

Property listing sync and lead routing

Imports listings from a property feed for review before publishing, and sends site enquiries to the agency's CRM with retries.

Contribution
Scheduled DWV sync, lead pipeline to Imoview, retry job and media pipeline.
Status
Live
Year
2026
Stack
Next.js, Supabase, pg_cron

Credits DWV and Imoview as providers.


Evidence

What it delivers

Listings in

Production capture · admin panel

A listing held back by the sync

Admin panel, listing status: held automatically by the integration; source DWV integration; last read 30/09/2026 22:40, DWV read every 5 minutes; unavailable since 27/09/2026 01:10
The sync reads DWV every 5 minutes. When DWV marks a listing inactive, the panel takes it off the site and says why. Captured in production on 30 Sep 2026; IDs blurred.
Production capture · admin panel

Listings received from DWV and their publication state

Admin panel, listings: each row shows status, whether it is visible or hidden on the site, its origin (DWV or manual) and when it was last updated
Listings arrive from DWV on their own and stay hidden until the realtor publishes them; the list shows origin and publication side by side. Internal codes blurred.

Leads out

Production capture · admin panel

A site lead and where it went

Admin panel, leads: a contact-page lead delivered to the Imoview CRM and to the sales e-mail on 10/09/2026 at 07:43
Each site lead shows its delivery to the Imoview CRM and to the sales e-mail. Contact details replaced at the source.
Production capture · admin panel

The failed-delivery tab

Admin panel, leads with a failed delivery: none at the time of the capture
Deliveries that fail are listed apart and retried by a scheduled job. None were pending when this was captured.

Property listing sync and lead routing

Admin panel, listing status: held automatically by the integration; source DWV integration; last read 30/09/2026 22:40, DWV read every 5 minutes; unavailable since 27/09/2026 01:10

Client names and logos hidden.


Overview

What I built

  • A scheduled job (pg_cron, every 5 minutes) calls the sync endpoint with a secret; a lease with a heartbeat keeps a single run at a time.
  • Every write asks a run guard first; imported properties stay hidden until the realtor publishes them.
  • Leads from the site go to the Imoview CRM through a pipeline with a retry job.
  • Photos go through upload, processing and cleanup jobs.
  • Sending properties to Imoview is built but switched off until the provider's contract allows it.

Part of Real-estate site and admin panel.


How it's wired

The flow, step by step

ExplanationA diagram drawn for this page: how the flow is built, not live traffic.

  1. Property picked in DWV
  2. Sync job every 5 minutes
  3. Saved hidden, photos queued
  4. Realtor reviews and publishes
  5. Site leads sent to Imoview

Screens

Where it shows up

Production capture · live site
The real-estate site on a phone, where the leads come from (brand details blurred)
The real-estate site on a phone, where the leads come from (brand details blurred).

Need something similar? Tell me what you're working on.

Contact on LinkedIn

or e-mail contato@rafaelshopify.dev


Explore more