Prevent duplicate CRM handoffs when webhooks retry.
Validate and deduplicate event IDs before creating downstream records.
Integration optionsWhat needed to change.
Webhook providers retry events when a response is lost. A naive integration can create duplicate CRM records or repeat downstream actions.
What was built.
An event-processing function normalizes domains, validates event IDs, compares them with a supplied processed-ID set and accepts each valid ID only once per batch. The same logic is runnable below. A production design needs durable storage, a unique constraint and transactional handling.
Observed output.
Six test events produced two accepted handoffs, two duplicates and two invalid records. This validates batch logic, not a deployed CRM integration.
Run the rules.
Change the example records and inspect the resulting decisions. Use non-sensitive inputs.
Import the credential-free workflow into n8n to inspect the same event-review logic. Code validated locally; n8n runtime import and execution have not been tested.
Download n8n workflow ↗Find your next growth opportunity.
Get a focused outbound opportunity audit or discuss a custom GTM system.