Fill cancelled booking slots from a ranked waitlist using webhooks and SMS/WhatsApp
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Normalize cancellation (Code): runs custom JavaScript code
- Valid claim body? (Code): runs custom JavaScript code
- Sweep: expired slots (Code): runs custom JavaScript code
- Valid? (If): checks a condition and branches into true / false
- Claim valid? (If): checks a condition and branches into true / false
- Waitlist (demo data) (Code): runs custom JavaScript code
- Respond invalid (Respond to Webhook): sends the response back to the webhook caller
- Claim guard (first TAKE wins) (Code): runs custom JavaScript code
- Respond claim invalid (Respond to Webhook): sends the response back to the webhook caller
- Rank + build offers (Code): runs custom JavaScript code
…plus 7 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow fills cancelled slots automatically: the top three waitlist matches get an offer at once, the first reply wins atomically, and a 30-minute sweeper re-offers expired or declined slots to the next people until the list runs out. How…