Skip to main content

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)​

  1. Add HTTP → Make a request.

  2. Method POST, URL: your Truslay evaluation webhook.

  3. Body type Raw, content type JSON:

    {
    "intent": "checkout",
    "target": "make_workflow",
    "payload": {
    "order_id": "ORD-1042",
    "amount": 480
    }
    }
  4. Set Parse response: Yes, so the verdict fields become mappable.

  5. Add a Router with a filter truslay_verdict = ALLOW on 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 200 only means the request was accepted; the decision lives in truslay_verdict.
  • Only ALLOW continues. Send BLOCK, REVIEW and 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: Immediately answers {"message":"Workflow was started"}; use When Last Node Finishes with First 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:

FieldTypeNotes
intentselectwebhook_incoming, scraping_request, database_write, checkout, agent_navigation
shield_idtextOptional, passed to the SDK as {shieldId}
targettextDefaults 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 ALLOW with reason: "sandbox_mode" and no auditId, because nothing is sent upstream.
  • Live requires firewallMode: 'live', an API key and a firewall URL. Without them the SDK throws; an unreachable firewall returns BLOCK.

REVIEW is not an approval: route it to the alert branch like BLOCK.