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
- Receive Lead via Webhook
- Fetch IP Geolocation Data
- Fetch Timezone Details
- Assemble Lead Profile
- Reply with Lead Details
- Error Response for Invalid IP
- Validate IP Syntax
- Check IP Address Validity
Similar automations
Social Media PublishingSchedule Instagram Reels from Google Drive and Sheets10 stepsLead Generation & EnrichmentExtract Google Maps Business Leads by Service and City19 stepsLead Generation & EnrichmentGenerate and Enrich LinkedIn Leads with OpenAI and Apollo56 stepsLead Generation & EnrichmentEnrich Sheet Leads with Surfe and HubSpot12 steps