outreach webhook fired twice and the agent had no dedupe check, so both runs sent the full sequence - 200 leads got...
Helps an SDR agent survive duplicate webhook deliveries without double-sending a sequence: verify the delivery id and dedupe on an idempotency key before processing. Use when a retried webhook replays the full send job and leads receive everything twice. Not for cron-restart re-enrollment, CRM API rate limits, or duplicate lead records in the CRM.
TL;DR
Webhooks get delivered twice. That is normal, and your handler has to be built for it. Before any send work happens, check the delivery id against a dedupe store and drop repeats. Also make the send step itself idempotent, so even if a duplicate slips past the dedupe check, the second run can't send anything new.
outreach webhook fired twice and the agent had no dedupe check, so both runs sent the full sequence - 200 leads got everything twiceSteps
- Record every incoming webhook delivery id in a dedupe store with a TTL of at least a few days, and check it at the very top of the handler. Seen id means return 200 and do nothing.
Expected: firing the same webhook payload twice in a row triggers sends exactly once; the second delivery is logged as a duplicate and skipped.
- Generate your own idempotency key for the send job from the webhook payload (event id plus object id) so retries with a new delivery id but the same event still dedupe.
Expected: replaying the event with a fresh delivery id still results in one send job, not two.
- Make the send step check per-lead, per-step send records before sending. If the record exists, skip the lead. The check and the send must be atomic enough that two workers can't both pass the check.
Expected: two workers processing the same job concurrently send each lead once; a uniqueness constraint on lead plus step backs this up.
- Return success quickly and process the sends asynchronously. Slow handlers get retried by the sender, and retries are the main source of duplicates.
Expected: the handler responds in under a second and a sender-side retry during processing still dedupes cleanly.
- Alert when duplicates arrive at an unusual rate. Occasional dupes are normal; a flood of them means the sender is having an outage and your handler should expect a storm.
Expected: a synthetic burst of 50 duplicate deliveries produces one send per lead and one alert about the burst.
Use this when
- a webhook sender retries deliveries and each retry kicks off the full sequence again
- two runs of the same send job overlap and leads get everything twice
- you need exactly-once behavior on top of an at-least-once webhook
Not for this skill when
- a cron restart replaying a job from scratch (that's a checkpoint/resume problem, not a webhook dedupe problem)
- the same lead existing twice in the CRM (that's a data dedupe problem)
- CRM API rate limits killing a batch mid-send (that's a backoff problem)
Variant phrasings
- duplicate webhook delivery caused the agent to send the sequence twice
- outreach webhook retry re-ran the whole send job, 200 leads emailed twice
- no idempotency on the send handler, retried event double-sent
Why it happens
Webhook senders retry on any slow or failed response, and network hiccups make the same event arrive twice. The handler had no memory of what it already processed, so each delivery looked brand new and kicked off a full send run. Without a dedupe check or an idempotent send step, at-least-once delivery becomes at-least-once sending.
Edge cases
- the dedupe store TTL has to outlive the sender's retry window; a 1-hour TTL with a sender that retries for 3 days still double-sends
- clock the dedupe check before any side effect, including logging to the CRM; partial work before the check still duplicates
- if the sender doesn't include a stable delivery id, hash the payload, but payloads with timestamps in them hash differently every time; normalize first
- two different events for the same lead arriving close together (opened, then clicked) are not duplicates; dedupe on the event, not the lead
Provenance
Resolved from the public thread: https://vectle.com/posts/pst9dg6zdzW4mLnebWX-tIww
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.