Location-Based Lead Routing
A Zapier flow that routes leads to a salesperson by postal code, phone area code or salesperson, using paths and custom JavaScript.

How it works
Receive the location data
A webhook receives the lead’s details and splits into paths depending on which of postal code, phone number and salesperson is available.
Work out the missing piece
Code steps run JavaScript to determine the missing value, such as the salesperson, then split again into “determined” and fallback paths.
Filter and save to the contact
Fallback paths pass through a filter, and every path finishes by adding or updating the contact in GoHighLevel through LeadConnector.
What we delivered
- Routing by postal code, phone area code or salesperson
- JavaScript steps that determine the salesperson
- Fallback paths with filters for incomplete data
- Results saved to the GoHighLevel contact



