Route multi-level approval decisions via webhook and HTTP approver APIs

Go to Workflow
0 views
Built by Oneclick AI Squad Oneclick AI Squad
Created on October 07, 2026

Description

Quick overview
This workflow exposes a webhook-based approval engine that evaluates policy rules to calculate risk and required authorization levels, then calls external approver endpoints for up to three approval steps and returns an approve/reject decision with a full audit trail.

How it works
Receives an approval request via an HTTP POST webhook.
Validates and normalizes the request payload, loads the policy thresholds, and prepares the Level 1–3 approver endpoint URLs.
Evaluates the request against the policy rules to calculate a risk score and determine whether the request is auto-approved or requires Level 1–3 approvals.
Calls a Level 1 approver endpoint via HTTP, records the status code as the Level 1 decision, and determines whether to continue to Level 2.
Calls a Level 2 approver endpoint via HTTP, records the status code as the Level 2 decision, and determines whether to continue to Level 3.
Calls a Level 3 approver endpoint via HTTP, records the status code as the Level 3 decision, then aggregates all required decisions into a final status and returns it to the webhook caller with an audit trail.

Setup
Configure the webhook path in n8n and copy the production webhook URL into the system that submits approval requests.
Update the Level 1, Level 2, and Level 3 approver URLs (currently set to httpbin.org) to your real approval/notification endpoints.
Review and adjust the in-workflow policy thresholds (amount limits, high-risk departments/types, and timeouts) to match your organization’s approval rules.

Nodes Used (2)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest