Authorize hierarchical access requests with webhooks and WhatsApp alerts
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects WhatsApp Business Cloud.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Access Request (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Set Governance Configuration (Edit Fields (Set)): sets 10 fields: inheritanceDepth, zeroTrustStrictness, requirePurpose…
- Respond with Validation Error (Respond to Webhook): sends the response back to the webhook caller
- Wait: waits 1 seconds
- Resolve Principal Hierarchy (Code): runs custom JavaScript code
- Wait: waits 1 seconds
- Collect Inherited Policies (Code): runs custom JavaScript code
- Wait: waits 1 seconds
- Merge Policy Set (Code): runs custom JavaScript code
…plus 15 more steps. See the full node list below.
Services it uses
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 - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
Quick overview This workflow accepts authorization requests via webhook or manual runs, evaluates them using hierarchical policy inheritance and zero-trust context checks, returns an allow/deny decision, and optionally sends a WhatsApp alert for human review.…