Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Lead Generation & Enrichment

Lead Generation & Enrichment

Enrich webhook leads with IPGeolocation location and timezone data

Runs on each webhook call, validates the submitted IP, enriches valid leads with IPGeolocation location and timezone data for send-time timing, and returns a profile; invalid IPs get a 400 response.

What it does

## Lead enrichment and send-time optimization with IPGeolocation ### How it works This workflow receives a lead via webhook, normalizes and validates the submitted IP address, then branches based on whether the IP looks valid. Valid leads are enriched with IPGeolocation location and timezone data, combined into a clean lead profile that can include send-time optimization details, and returned to the caller. Invalid IP submissions are stopped early with a 400-style webhook response. ### Setup steps - Configure the Webhook trigger URL and ensure the caller sends the expected lead fields, especially the IP address field used by the validation code. - Add valid IPGeolocation credentials or API key configuration to the IPGeolocation nodes. - Review the Validate IP Address code node so its payload field names match the incoming webhook body. - Confirm the Respond to Webhook nodes use the intended status codes and response body format for your API clients. ### Customization Adjust the Build Lead Profile code to change which geolocation fields are returned, how timezone data is converted into recommended send times, or what fallback behavior should apply when location data is incomplete.

The steps

  1. Receive Lead via Webhook
  2. Fetch IP Geolocation Data
  3. Fetch Timezone Details
  4. Assemble Lead Profile
  5. Reply with Lead Details
  6. Error Response for Invalid IP
  7. Validate IP Syntax
  8. Check IP Address Validity

Similar automations