Validate and deduplicate booking requests from forms via webhook
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize + validate fields (Code): runs custom JavaScript code
- Valid? (If): checks a condition and branches into true / false
- Slot bookable? (If): checks a condition and branches into true / false
- Log rejected request (Code): runs custom JavaScript code
- Duplicate request? (Code): runs custom JavaScript code
- Respond decline (Respond to Webhook): sends the response back to the webhook caller
- Respond invalid (Respond to Webhook): sends the response back to the webhook caller
- Fresh request? (If): checks a condition and branches into true / false
- Create booking (replace me) (Code): runs custom JavaScript code
- Skip duplicate (Code): runs custom JavaScript code
…plus 3 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 (4)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow accepts booking requests via an n8n webhook, validates and normalizes the submitted fields, enforces a lead-time booking policy, and blocks duplicate submissions before creating a booking and preparing a confirmation message for…