Skip to main content

n8n Integration

The UAPK Gateway community node for n8n lets you enforce AI agent policies, manage human approvals, and query audit logs directly inside your n8n workflows. It's published on npm and installs with one click.

Installation

  1. Open your n8n instance
  2. Go to Settings → Community Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-uapk-gateway
  5. Click Install

The node appears in your palette under UAPK Gateway.

npm package

n8n-nodes-uapk-gateway is published at npmjs.com/package/n8n-nodes-uapk-gateway

Resources and Operations

The node has three resources, each with multiple operations:

Gateway

OperationDescription
EvaluatePolicy check without execution (dry run, 120 req/min)
ExecutePolicy check + execution if allowed (60 req/min)

The node has three output pins:

  • Allow — action was permitted and executed
  • Deny — action was blocked by policy
  • Escalate — action requires human approval before proceeding

Route your workflow branches based on which pin fires.

Approval

OperationDescription
GetFetch the current status of a pending approval
ApproveApprove an escalated action
DenyDeny an escalated action
List PendingGet all open approvals for your organization

Records

OperationDescription
ListQuery the audit log with filters
Verify IntegrityConfirm the hash chain has not been tampered

Setup

Credentials

Create a new UAPK Gateway API credential in n8n:

FieldWhere to find it
Base URLYour gateway URL, e.g. https://api.uapk.info
Organization IDDashboard → Settings → Organization ID
API KeyDashboard → Settings → API Keys
Management TokenRequired for approve/deny — Dashboard → Settings → Management Tokens

Example: Three-branch workflow

[Trigger: HTTP / Schedule / Agent event]

[UAPK Gateway: Gateway → Execute]
↓ (three outputs)
├── Allow → [Continue workflow normally]
├── Deny → [Send alert / log the denial]
└── Escalate → [Notify approver via email/Slack]
↓ (when approver responds)
[UAPK Gateway: Approval → Approve/Deny]

Source Code

The node source is included in the UAPK Gateway SDK:

git clone https://github.com/UAPK/gateway.git
cd sdks/n8n
npm install && npm run build