Make
Make scenarios can gate their risky step on a Truslay verdict. The supported path today uses Make's native HTTP module and a Router; the Custom App module is implemented but not registered in the Make marketplace yet.
[ HTTP · Make a request ] POST https://n8n.truslay.com/webhook/<your-path>
│ body: { intent, target, payload }
[ Router ]
├── ALLOW → [ Email / Google Sheets / database ] ← the real action
├── BLOCK → [ Slack / Email alert ] ← fail closed
└── REVIEW → [ Slack / Email alert ] ← treated as BLOCK
Option A — HTTP module (works today)
-
Add HTTP → Make a request.
-
Method
POST, URL: your Truslay evaluation webhook. -
Body type
Raw, content typeJSON:{"intent": "checkout","target": "make_workflow","payload": {"order_id": "ORD-1042","amount": 480}} -
Set Parse response: Yes, so the verdict fields become mappable.
-
Add a Router with a filter
truslay_verdict = ALLOWon the real action, and send everything else to an alert branch.
The response carries the decision:
{
"truslay_verdict": "ALLOW",
"truslay_reason": "sandbox_mode",
"truslay_environment": "sandbox",
"truslay_latency_ms": 0,
"truslay_audit_id": "trl_9f2c4a71…"
}
Rules that keep the flow fail-closed
- Route on the verdict, not on the HTTP status. A
200only means the request was accepted; the decision lives intruslay_verdict. - Only
ALLOWcontinues. SendBLOCK,REVIEWand any missing or unexpected verdict to the alert branch — ideally through the Router's Fallback. - The webhook must return the decision. An n8n workflow set to
Respond: Immediatelyanswers{"message":"Workflow was started"}; useWhen Last Node FinisheswithFirst Entry JSON, or a Respond to Webhook node. - Use the production URL and keep the workflow active. An inactive workflow
returns
404 … not registered.
Option B — Custom App module
The repository ships a Make Custom App (truslay-make-app) with one action,
Evaluate Agent Action:
| Field | Type | Notes |
|---|---|---|
intent | select | webhook_incoming, scraping_request, database_write, checkout, agent_navigation |
shield_id | text | Optional, passed to the SDK as {shieldId} |
target | text | Defaults to make_workflow |
It returns verdict, reason, latencyMs, auditId and a human-readable
status. The app is not registered in the Make marketplace and has not
been reviewed by Make, so it cannot be installed from the catalog. Until that
changes, use Option A.
Sandbox vs live
- Sandbox is the default: no credentials, no network, deterministic. The
module returns
ALLOWwithreason: "sandbox_mode"and noauditId, because nothing is sent upstream. - Live requires
firewallMode: 'live', an API key and a firewall URL. Without them the SDK throws; an unreachable firewall returnsBLOCK.
REVIEW is not an approval: route it to the alert branch like BLOCK.