Workflow blocks
Guardrails
Validate outputs, detect hallucinations/PII
system/guardrails — Validate outputs, detect hallucinations/PII.
Where it appears
The Guardrails block lives in the Logic & control group of the Workflow Builder.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
payload | code | No | — | JSON payload the guardrails run against to detect hallucinations and PII. Use <NodeName.field> to pass in upstream content (e.g. a generated draft). Leave empty to check the default upstream output. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Guardrails.field>.
| Name | Type | Description |
|---|---|---|
success | boolean | Whether guardrails passed |
policy | json | Policy applied |
redactedPayload | json | Redacted payload |
warnings | array | Warnings array |
error | string | Error if failed |
Limits and failure modes
- On failure the
erroroutput is populated; downstream blocks that reference other outputs may not receive values.