Check Policy (Decide)
AI-generatedSummary
Asks the Provedit API for a policy verdict (allow, require_approval, or deny) on a prospective tool call, without recording an action. Returns the API's decision so the workflow can branch on it or halt.
Inputs
- Tool (required) — Tool name matched by your Provedit policy, e.g. send_email or billing.refund.
- Params (JSON) — JSON object of the parameters the tool would be called with. Policy rules may match on these. Defaults to {}; invalid JSON throws an error.
- Fail Workflow on Non-Allow — If enabled, the node throws an error when the decision is anything other than allow (deny or require_approval), acting as a hard gate. Default false.
Output shape
One output item per input item, containing the JSON response from POST /v1/policies/decide. It includes a decision field and, per the source, policy details such as policyName and policyVersion.
Each output item is paired with its input item. With Fail Workflow on Non-Allow on, a non-allow decision throws an error naming the tool, decision, policy name and version. With Continue On Fail, errors come out as items with an
errormessage. Requires Provedit API credentials. The apiUrl defaults to https://api.provedit.ai.
Examples
Example 1: Gate an email send behind policy using an IF node.
Tool=send_email, Params={"to":"{{$json.email}}"}, Fail on Non-Allow off; follow with IF on decision == allow.
Example 2: Hard-stop a refund workflow if policy denies or requires approval.
Tool=billing.refund, Params={"amount":48}, Fail Workflow on Non-Allow on.