Skip to content
Workflow recipes3 min read

By · Editorial policy

Stop Automated Follow-Ups When a Prospect Replies

Persist the reply against the campaign and contact, cancel queued follow-ups, and check state again immediately before dispatch. Once a provider accepts a send, a workflow may be unable to revoke it.

What is the practical answer?

Persist the reply against the campaign and contact, cancel queued follow-ups, and check state again immediately before dispatch. Once a provider accepts a send, a workflow may be unable to revoke it. Store the outbound provider message ID or thread ID and the campaign contact ID. A reply handler can then resolve the right enrollment even if the subject was edited or the contact joined a separate campaign. Define how automated replies, bounces, and out-of-office messages affect the sequence rather than treating every inbound event the same way. Update the canonical enrollment when a real reply is accepted and cancel pending jobs. Repeated delivery of the same reply should return the existing state. Watch for an older delayed event overwriting a newer state. Save the triggering reply reference so an operator knows why the sequence stopped.

Evidence: Gmail API thread and message references · Reddit day-to-day automation discussion

  1. Receive correlated replyInput
  2. Close active enrollmentProcess
  3. Recheck before provider sendDecision
  4. Cancel pending follow-upsRecovery
A final state check protects leased work that queue cancellation alone cannot reach.

Use a reply identity that survives retries#

What you findWhat to do
Job is queued and reply arrivescancel eligible jobs for the enrollment.
Job is leased but has not dispatchedsuppress it at the final state check.
Provider already accepted the sendretain the receipt and suppress later sends.

Handle the race at the sender#

A job may already have been leased when cancellation occurs. Check the enrollment state under the dispatch claim immediately before the send step and use a stable send identity. If a reply arrives after dispatch, record the ordering and suppress future touches. For systems with a small acceptable delay, a short grace period before a scheduled follow-up may reduce the race.

Record the ordering around a send#

For every follow-up, keep the enrollment ID, planned touch number, claimed timestamp, final eligibility-check timestamp, and provider receipt. For incoming replies, save provider thread or message identity and the accepted timestamp. These records help explain why a reply could arrive after an email was already accepted even though it showed up first in someone’s inbox.

Treat webhooks as potentially repeated and delayed. A late out-of-office event should follow the campaign’s explicit policy rather than reopening a lead already marked replied. Validate cancellation with two separate fixture runs: one where the reply wins before dispatch, and one where it arrives after acceptance. Give the operator a clear explanation in both cases.

Verify it with a failure drill#

Lease a follow-up job and pause it before the provider call. Deliver the prospect’s reply and then release the sender.

  • Verify the final check suppresses the send. Move the reply to after provider acceptance and verify the existing receipt is preserved while later sends are cancelled.

Sources and further reading

Official references support technical claims; community discussions are used only as problem signals.