Package Information
Documentation
n8n-nodes-bailinghub
n8n-nodes-bailinghub lets n8n workflows submit and monitor governed AI jobs through
BailingHub.
BailingHub sits between agents or automation workflows and existing business systems. It
provides a control plane for route allowlists, risk-aware tool governance, human approval
intents, execution records, and auditability. This node is an independent adapter to its
public Client API; it does not embed BailingHub or redefine ACC.
Installation
Install the community package named n8n-nodes-bailinghub from n8n's community node UI,
or install it in a self-hosted n8n deployment according to the
n8n community node guide.
The package's verified-node status is tracked through its GitHub releases. The repository
does not claim n8n verification until n8n has completed that review.
Operations
| Operation | Purpose |
|---|---|
| Submit Governed Job | Calls POST /run with a request ID, allowed route, and task input. |
| Get Job | Calls GET /jobs/{job_id} and returns a deliberately reduced public result. |
| Wait for Job | Polls the same job for at most 60 seconds, then returns the terminal or latest state. |
The node never resubmits a task while waiting. If a wait times out, branch onwait_timed_out: true and continue polling later with the same job ID.
Credentials
Create a dedicated BailingHub client in the BailingHub console and configure:
- Base URL: the deployment root, such as
https://hub.example.com; - Client Token: the per-client token issued by BailingHub;
- Allow Insecure HTTP: keep disabled unless a self-hosted n8n instance reaches
BailingHub over a trusted private network without TLS.
Do not use the BailingHub administrator token. Route access and rate limits should be
configured on the dedicated client. n8n's credential test verifies that the configured
BailingHub deployment is reachable through its public health endpoint. The Client Token is
validated by BailingHub on the first protected job request; a health check is not presented
as proof that a token is valid.
Security Boundary
This adapter intentionally exposes only BailingHub's public client surface:
- it does not call administrator trace or approval endpoints;
- it does not expose approve or reject actions;
- it does not accept acting-subject metadata in v1;
- its dedicated credential is restricted to this node and is not exposed through n8n's
generic Custom API Call surface; - it filters job responses so internal dispatch configuration, credentials, metadata, and
administrator-only evidence do not enter n8n workflow output; - it maps upstream errors to bounded public messages rather than returning arbitrary bodies.
Trusted acting subjects must be established from an authenticated business-system boundary.
They must not be copied from model output. Final business authorization remains in the
business system.
Typical Workflow
- A trusted n8n trigger receives a business event.
- Submit Governed Job sends the task to a BailingHub route with a stable request ID.
- Store the returned
job_id. - Use Wait for Job for a short bounded wait, or schedule Get Job later.
- Branch on
status,terminal, andwait_timed_out. - Consume
result,report, orraw_resultonly after checking the terminal status.
Approval workflow ownership remains outside this node. BailingHub can pause governed tool
execution and emit approval intents through the deployment's configured approval channel.
An importable example is available atexamples/submit-and-wait.workflow.json. Replace
the route placeholder with a route allowed for the dedicated BailingHub client, then assign
the same BailingHub credential to both BailingHub nodes.
First Success and Feedback
Use the n8n integration path as the
canonical start page. The first integration is successful when the example submits through
an allowlisted route, the same job_id reaches a terminal state, BailingHub retains its
approval and audit state, and n8n never receives administrator or business-system
credentials.
Report a PASS, partial result, or failure through the
BailingHub independent validation form
and select the n8n track. Never include tokens, model keys, personal information, or
production business data.
Compatibility
The adapter targets BailingHub's public POST /run and GET /jobs/{job_id} Client API and
the bailing.contract.v2.13 compatible contract family. See
docs/COMPATIBILITY.md for the tested matrix.
Project Boundaries
See docs/PROJECT_BOUNDARIES.md. The dependency direction is
strictly one-way:
n8n-nodes-bailinghub -> BailingHub public Client API
BailingHub may consume ACC declarations
ACC has no dependency on either implementation
Privacy
The node has no telemetry. It sends the configured request ID, route, and task input only to
the BailingHub URL chosen by the n8n operator. See PRIVACY.md.
Resources
Development
npm install
npm run verify
npm run dev
npm run verify runs the n8n linter, builds the package, and executes the contract-focused
tests. Releases are published from GitHub Actions with npm provenance.
License
MIT