Перейти к содержанию
НОВОЕМаркетплейс и trig8n Agent: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Генерация и обогащение лидов

Генерация и обогащение лидов

Обогащение лидов из вебхуков данными о местоположении и часовом поясе через IPGeolocation

Запускается при каждом вызове вебхука, проверяет переданный IP, обогащает корректные лиды данными о местоположении и часовом поясе из IPGeolocation для выбора времени отправки и возвращает профиль; для некорректных IP возвращается ответ 400.

Что делает

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

Шаги

  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