Route idempotent order webhooks to HubSpot and Slack with Data Tables logging
Ready for 3.0What this workflow does
This workflow has 35 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects HubSpot and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Edit Fields (Set)): sets 16 fields: eventIdPath, eventTypePath, createdEventType…
- Read Event Fields (Code): runs custom JavaScript code
- Has Event Id (If): checks a condition and branches into true / false
- Look Up Event Id (Data table): get (row)
- Reply 400 Missing Event Id (Respond to Webhook): sends the response back to the webhook caller
- Decide Claim (Code): runs custom JavaScript code
- Claim Outcome (Switch): routes items into 3 branches
- Reply 200 Duplicate (Respond to Webhook): sends the response back to the webhook caller
- Claim Event (Data table): insert (row)
- Reclaim Event (Data table): update (row)
…plus 24 more steps. See the full node list below.
Services it uses
Other HubSpot + Slack templates (137)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - HubSpot
n8n-nodes-base.hubspot - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow receives order webhooks, claims each event ID in an n8n Data Table to ensure idempotent processing, routes order.created and order.refunded events to HubSpot and Slack, logs every attempt, and posts error alerts to a dedicated…