Sync Pittsburgh distressed property leads from Apify to Google Sheets with Gmail alerts
UnknownWhat this workflow does
This workflow has 16 nodes and runs on a schedule (every day at 07:00). Along the way it connects Google Sheets, Gmail and Apify (community).
How it runs
Trigger: On a schedule (every day at 07:00).
- Fetch Pittsburgh Code Violations (Apify): run actor and get dataset
- Keep Wholesaler Case Types (Filter): keeps only the items that match a condition
- Build Failure Notice (Code): runs custom JavaScript code
- Dedupe Rows in This Pull (Remove Duplicates): removes duplicate items
- Email Failure Notice (Gmail): uses Gmail
- Pick Lead Columns (Edit Fields (Set)): sets 14 fields: Case Key, Case Number, Address…
- Read Existing Leads (Google Sheets): uses Google Sheets
- Split New vs Already Tracked (Code): runs custom JavaScript code
- Route New vs Tracked (Switch): routes items into 2 branches
- Score New Leads (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Apify + Google Sheets templates (402) · Other Apify + Gmail templates (127)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Fetch Pittsburgh Code Violations).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Apify
@apify/n8n-nodes-apify.apify - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if
From the author
Quick overview This workflow runs every Monday to pull the latest Pittsburgh code-violation events from an Apify actor, filters for wholesaler-relevant case types, syncs new and existing records to a Google Sheets “Leads” tab, and emails a weekly digest via…