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.

Zapier editor showing a location webhook that splits into several paths with JavaScript steps and LeadConnector updates

How it works

  1. 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.

  2. 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.

  3. 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