Category: Automations › Lead Generation & CRM · Best for: Real estate agents and investors (US) · Platform: n8n · Steps: 8
What it does
It checks property leads and tells you which owners are most likely to sell.
- Include necessary authorization headers (e.g., 'Authorization: Bearer YOURTOKEN')
Works with: BatchData, Slack
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- None. This workflow only uses built-in n8n nodes and public URLs.
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Send Slack Notification →
channelId: choose your own
- Send Slack Notification →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). CRM New Lead Webhook starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- CRM New Lead Webhook starts the workflow (Webhook).
- Fetch Lead Data calls an external API (={{ $json.crmApiUrl }}/leads/{{ $json.leadId }}).
- BatchData Property Lookup calls an external API (https://api.batchdata.com/api/v1/property/search).
- Score And Qualify Lead reshapes the data for the next step.
- Update CRM Lead calls an external API (={{ $json.crmApiUrl }}/leads/{{ $json.leadId }}).
- Is High-Value Lead? checks a condition and routes items accordingly.
- Create Immediate Follow-up Task calls an external API (={{ $json.crmApiUrl }}/tasks).
- Send Slack Notification uses Slack.
India & US notes
India: Zoho CRM and WhatsApp follow-ups are the most common combo; you can swap the CRM node for Zoho CRM. US: HubSpot free CRM is the usual starting point.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
WEBHOOK SETUP INSTRUCTIONS
- Copy this webhook URL and configure your CRM to send notifications here
- Expected payload format:
{ "leadId": "123", "crmApiUrl": "https://your-crm-api.com/api/v1", "address": "123 Main St", "city": "Anytown", "state": "CA", "zipcode": "90210" } - All fields are required for property verification
CRM API CONFIGURATION
- Create HTTP Header Auth credentials for your CRM API
- Include necessary authorization headers (e.g., 'Authorization: Bearer YOUR_TOKEN')
- This node fetches comprehensive lead data using the lead ID from the webhook
- Ensure your CRM API returns address information needed for property verification
BATCHDATA API SETUP
- Create an account at BatchData.com to get your API key
- Set up HTTP Header Auth credentials with 'x-api-key: YOUR_BATCHDATA_API_KEY'
- This API call verifies property details using the lead's address
- Expected response includes property value, size, age, and ownership status
- Adjust API endpoint if needed based on BatchData's documentation
LEAD SCORING ALGORITHM
This function implements a sophisticated scoring system for property-based leads:
SCORING FACTORS
-
Property Value
-
$750k: 30 points
-
$500k: 20 points
-
$350k: 10 points
-
-
Square Footage
-
3000 sq ft: 15 points
-
2000 sq ft: 10 points
-
-
Property Age
- <5 years old: 15 points
- <20 years old: 10 points
-
Other Factors
- Investment property: 15 points
- Large lot (>0.5 acres): 10 points
QUALIFICATION THRESHOLDS
- High-value: 50+ points
- Qualified: 30-49 points
- Potential: 15-29 points
- Not qualified: <15 points
- Unverified: No property data
Customize the scoring values and thresholds to match your specific business requirements.
CRM UPDATE CONFIGURATION
- This node updates your CRM with enriched property data and lead qualification information
- Adjust field names in the body parameters to match your CRM's API schema
- Common fields to update include:
- Lead score and qualification status
- Property details (value, size, beds/baths)
- Verification status
- If your CRM uses PATCH instead of PUT, adjust the method accordingly
- Make sure your CRM credentials have write access to update lead records
ROUTING LOGIC
This conditional node determines the workflow path based on the lead's qualification:
- TRUE Path (Top): Routes high-value leads for immediate follow-up
- FALSE Path (Bottom): Routes standard leads for notification only
You can modify the condition to create different paths based on:
- Score thresholds (e.g., >30 points)
- Property characteristics (e.g., property value >$1M)
- Geographic targeting (e.g., specific ZIP codes)
- Lead source (e.g., referrals vs. web leads)
HIGH-VALUE LEAD HANDLING
- This node creates an urgent follow-up task for premium leads
- Customize parameters to match your CRM/task system's API:
- Assignee (currently "senior-agent")
- Priority level and task type
- Due date format
- Task description
- Alternative approaches:
- Send email alerts to sales managers
- Create Salesforce opportunities
- Trigger SMS notifications
- Add to special follow-up campaign
NOTIFICATION CONFIGURATION
- Set up Slack credentials in n8n's Credentials Manager
- Update the channel ID to match your Slack workspace
- Customize the notification format and content
- Alternative options:
- Replace with Email notification
- Use Microsoft Teams
- Send SMS alerts via Twilio
- Post to a dedicated dashboard
- Log to monitoring system
BatchData Lead Qualification Workflow
This workflow integrates with BatchData's Property Lookup API to verify, enrich, and qualify leads based on property data. When a new lead is added to your CRM, the workflow:
- Retrieves the lead's address information
- Verifies property details using BatchData's API
- Scores and qualifies the lead based on property characteristics
- Updates the CRM with enriched data and qualification status
- Routes high-value leads for immediate follow-up
SETUP CHECKLIST
- Configure CRM API credentials
- Set up BatchData API key
- Configure Slack/notification credentials
- Customize scoring thresholds
- Adjust CRM field mappings
- Test with sample lead data
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method