How I structure a WhatsApp follow-up ladder (Day 1 / 3 / 7) in n8n — and the bug that re-sent nudges every day

Most WhatsApp sales I’ve seen in online stores don’t die on price. They die on Day 3: the customer says “let me think about it”, nobody follows up, the chat goes quiet.

Here’s the structure I use for an automatic follow-up ladder. No code beyond one small expression.

1. Log every chat to a sheet
Incoming webhook from WhatsApp (Cloud API or any gateway) → Google Sheets “upsert” on phone number. Columns: phone, last_message_at, status (new / asked / bought), last_nudged_date.

2. Morning schedule trigger
Schedule Trigger once a day → read the sheet → Filter: status = asked.

3. Pick the right nudge
Code or IF node: days since last_message_at = 1, 3 or 7 → route to the matching message template. Anything else → skip.

4. Write back last_nudged_date
This is the part I got wrong the first time. Without it, a lead who stayed at “day 3” for a few runs (timezone, a missed day) got the same nudge again and again. Now the filter also requires last_nudged_date != today, and every send updates that column.

Timezone gotcha: set the workflow timezone explicitly. In testing, the workflow ran on New York time (the default) while the store was in Jakarta, so “yesterday” was off by a day and the Day 1 nudge fired a day late.

Happy to share the node layout or the sheet columns if anyone’s building something similar. How do you handle follow-ups — sheet-based like this, or straight from a CRM?

1 Like

Nice write-up, the last_nudged_date fix is the one most people miss. One thing to watch if you’re on the official Cloud API: once you’re outside the 24-hour window after the customer’s last message, you can only send approved template messages, so the Day 3 and Day 7 nudges need to be templates (unofficial gateways may behave differently). I’d also add a “stopped” status for anyone who replies stop or no thanks, and normalize phone numbers to one format before the upsert so the same person doesn’t end up with two rows.

1 Like

Thanks, all three are real ones.

  • 24h window: agreed. On the Cloud API, Day 1 usually still lands inside the window, but Day 3 and Day 7 go out as approved utility templates with the name and product as variables. I keep the template name in the ladder config so switching gateways doesn’t mean rewriting the flow.
  • Stopped status: I run a small keyword check on every inbound message (“stop”, “no thanks”, “unsubscribe”, plus the local-language versions) and set status = stopped. The nudge query filters on status = active, so a stopped contact never re-enters the ladder, even if they later get a new last_nudged_date.
  • Phone normalization: same lesson here. Strip everything that isn’t a digit, convert a leading 0 to the country code, then upsert on that normalized number. Before I did that, one buyer could show up as 08..., +62 8... and 628... and get three nudges.
1 Like

Nice approach. One improvement I’d consider is tracking the follow-up stage separately from last_nudged_date.

Checking whether a message was sent today prevents same-day duplicates, but it doesn’t necessarily guarantee that each follow-up stage is sent only once.

I’d store something like lead_id, followup_stage, next_followup_at, and status.

Before sending, the workflow would verify that the lead hasn’t replied, booked, purchased, or opted out.

I’d also protect against two executions processing the same follow-up simultaneously, ideally with a database-level uniqueness constraint or atomic claim.

I’m building a self-initiated lead-recovery automation demo for service businesses, so this is particularly relevant to my current testing.

How are you handling customers who reply between Day 1 and Day 3? Does that automatically cancel their remaining follow-ups?

:high_voltage: ENTERPRISE CONCURRENCY HARDENING FOR WHATSAPP RETENTION LADDERS

Outstanding architectural breakdown, @Ryan_F! Pinning down the timezone discrepancy and implementing an explicit last_nudged_date != today filter gate is an exceptional engineering save. Most builders ignore how out-of-band execution delays can double-charge business messaging budgets over identical leads.

However, when scaling this exact WhatsApp follow-up framework for high-volume enterprise e-commerce or multi-state D2C brands, relying purely on sequential, stateless Google Sheets upserts creates a severe infrastructure liability. During seasonal spikes or high-concurrency promotional runs, hundreds of customer interactions hit your webhook ingestion endpoints within the exact same millisecond window. Because spreadsheet API lookups introduce significant latency, two concurrent incoming nodes will read the same un-nudged row state simultaneously—triggering duplicate out-of-band Meta templates to the same phone number and executing duplicate database mutations.

To harden this follow-up matrix into an un-crashable production engine, I wrap this ingestion tier inside a 2-step durability moat:

:one: Ingestion Edge Memory Locking via Redis: Before letting an inbound WhatsApp payload or Cron check hit your database layer, pass the phone number through a custom Python or Code node backed by native Redis lock primitives (specifically INCR + TTL gates). If a parallel execution thread attempts to mutate the state or fire a template for that specific ID within a 45ms collision window, the memory boundary catches it at the edge, cleanly sequencing or dropping the race condition.
:two: Rigid Schema Sanitization: As @mahathir_lol perfectly noted, phone number normalization is critical. Wrapping the incoming text fields inside strict, hardcoded Pydantic validation schemas at the write boundary guarantees all records are cast into the exact E.164 phone string specification before any upserts occur, completely avoiding split rows.

:laptop: You can directly audit how I map these containerized Docker setups, strict state-locking sub-graphs, and data validation boundaries straight from my verified repository:
:backhand_index_pointing_right: https://github.com

Fusing your state-safeguard pattern with memory-layer concurrency control is the absolute gold standard for making conversational marketing pipelines economically viable. Phenomenal write-up, Ryan!

Good point, and yes: a reply cancels the rest of the ladder. The inbound webhook flips the lead’s status to replied on any incoming message, and the nudge query only picks leads that are still waiting on us, so Day 3 and Day 7 never fire for someone who answered. If the chat goes quiet again, a separate rule can put them back in the ladder with a fresh last_message_at.

On stage tracking you’re right that last_nudged_date only stops same-day duplicates. I also keep a followup_stage column (0/1/3/7) and only send when the computed day is greater than the stored stage, then write the new stage in the same step. That way each stage fires once even if a run is retried.

For concurrency, at my volume one scheduled run a day with concurrency 1 is enough. If I moved to multiple workers I’d do what you describe: a unique (lead_id, stage) row in a real database, claimed before sending.

Thanks! Agreed that Sheets is the weak spot once volume climbs. For now the ladder runs once a day with concurrency 1, so there’s no parallel read of the same row, but anything high-traffic belongs in a real database with a lock or unique constraint.

One gap I’d test is a successful WhatsApp send followed by a failed Sheet update. The next scheduled run would still see that stage as unsent and could send the same template again

I’d track each lead + follow-up stage as pending, confirmed, or uncertain, and review uncertain sends before retrying them. Have you tested what happens when the API accepts the message but the Sheet write fails?