Policy check
A Policy check step tests a value, such as a drafted reply or a proposed action, against a named policy. It takes pass or fail. You decide what a failure does: block the path, record a warning and carry on, or mask the value and carry on.
When to use it
Section titled “When to use it”- Check a drafted reply for promises your compliance team does not allow before it is sent.
- Check that a discount offer stays within the approved limits.
- Screen free text from a customer before it is passed to a business system.
When not to use it
Section titled “When not to use it”- You need fixed rules with test cases that decide an outcome. Use Decision (rules).
- You only need to hide personal data. Use Mask PII.
- You need a record for auditors. Add an Audit checkpoint.
Settings
Section titled “Settings”| Setting | What it does |
|---|---|
| Policy | Required. The policy to check against. |
| What to check | Required. An expression, for example steps.draft.reply. |
| Severity | low, medium or high (default). |
| When it fails | block (default) takes the fail branch. warn records a warning in the run’s timeline and takes pass. mask replaces the checked value with *** for the rest of the run, records a warning and takes pass. |
| Timeout | Default: 30s. When it passes, the error path is taken. |
| Retries | 0 to 5. Default: 1. |
What it produces
Section titled “What it produces”- The
passorfailbranch, and an error path. steps.<step id>: the policy check result.
Example
Section titled “Example”A bank checks drafted collection messages before sending them.
Task agent (draft reminder, step id draft) → Policy check (fair collection practices, steps.draft.reply) pass → Send message → End fail → Human task (rewrite) → End