# Agents and safety


You are adding an agent, or a step that screens or redacts a submission. Each heading is one of those steps or one setting on it.

## Agent Task [#agent-task]

Runs a wired-in platform agent on each item; its verdict routes downstream.

In the builder, you find this under Canvas.

### Use it when

- Each item should be judged by a platform agent you have wired in.
- The agent verdict should decide which path the record takes next.

### Related

- [Agent instructions](#agent-instructions)
- [Configure a workflow](/tasks/workflow)
- [Choose a Campaign authoring route](/tasks/authoring-routes)

## Agent instructions [#agent-instructions]

Campaign-specific guidance the agent judges against.

In the builder, you find this under Agent Task.

### Use it when

- The agent needs guidance that is specific to this campaign.
- You are writing that guidance here rather than changing the shared agent.

### Related

- [Agent Task](#agent-task)
- [Inference timeout](#timeout)
- [Export every delivered record](/api/cli-export)
- [Contact support](/help/support)

## Inference timeout [#timeout]

How long the agent may run per item, in milliseconds.

In the builder, you find this under Agent Task.

### Use it when

- An agent call should stop after a time you set, in milliseconds.
- You want a bound on how long one item can keep the agent running.

### Related

- [Agent instructions](#agent-instructions)
- [Predictions need review](#predictions)
- [Use an agent with Humanbased](/api/agent-access)
- [Let a coding agent run these commands](/api/cli-mcp)

## Predictions need review [#predictions]

Agent output is a prediction; route it to a human review step before accepting.

In the builder, you find this under Agent Task.

### Use it when

- Agent output should be treated as a prediction, not as an accepted result.
- You want a person to review that prediction before Accept.

### Related

- [Inference timeout](#timeout)
- [De-identify](#deidentify)
- [Verify an ML reproduction task](/data/task-package-ml)

## De-identify [#deidentify]

Removes personal information: text is redacted and verified, and media fails closed.

In the builder, you find this under Canvas.

### Use it when

- A transcript should have names and addresses removed before a later step stores it.
- Media that cannot be redacted should fail closed rather than pass through.

### Watch out

The palette locks this step. It has not passed internal acceptance, so how it behaves on a live campaign is not guaranteed.

### Related

- [Predictions need review](#predictions)
- [Independent verifier](#verifier)
- [Configure a workflow](/tasks/workflow)

## Independent verifier [#verifier]

Re-checks the redacted output with a different agent.

In the builder, you find this under De-identify.

### Use it when

- The redacted output should be checked again by a different agent.
- You do not want the same agent to both redact and confirm its own result.

### Related

- [De-identify](#deidentify)
- [Confidence threshold](#confidence)
- [Verify a formal proof task](/data/task-package-math)
- [Verify a software task](/data/task-package-software)

## Confidence threshold [#confidence]

Detections below it are treated as residual personal information.

In the builder, you find this under De-identify.

### Use it when

- A weak detection should still count as personal information left behind.
- You are setting the confidence below which that happens.

### Related

- [Independent verifier](#verifier)
- [On residual PII](#residual)

## On residual PII [#residual]

What happens if something remains: route to a human, or quarantine.

In the builder, you find this under De-identify.

### Use it when

- Something personal remains and a person should see the item.
- The item should be quarantined instead of continuing.

### Related

- [Confidence threshold](#confidence)
- [Policy Gate](#policy-gate)

## Policy Gate [#policy-gate]

Checks each item for personal information and content rules before it passes.

In the builder, you find this under Canvas.

### Use it when

- Each item should be checked for personal information before it continues.
- Content rules should be applied at this gate, before a later step stores the item.

### Watch out

The palette locks this step. It has not passed internal acceptance, so how it behaves on a live campaign is not guaranteed.

### Related

- [On residual PII](#residual)
- [PII — exact patterns](#pii-exact)
- [Configure a workflow](/tasks/workflow)

## PII — exact patterns [#pii-exact]

Fixed patterns for email, phone, card numbers and similar, with no model calls.

In the builder, you find this under Policy Gate.

### Use it when

- You want email, phone and card numbers caught by fixed patterns.
- This check should not spend a model call.

### Related

- [Policy Gate](#policy-gate)
- [Blocklist](#blocklist)

## Blocklist [#blocklist]

One case-insensitive regular expression per line.

In the builder, you find this under Policy Gate.

### Use it when

- You have phrases or patterns that should be blocked, one expression per line.
- Matching should ignore letter case.

### Related

- [PII — exact patterns](#pii-exact)
- [PII — semantic](#pii-semantic)

## PII — semantic [#pii-semantic]

An agent finds names, addresses and context-dependent details.

In the builder, you find this under Policy Gate.

### Use it when

- Names and addresses are not in a fixed pattern and an agent should find them.
- The detail depends on context, so an exact pattern is not enough.

### Related

- [Blocklist](#blocklist)
- [Content policy](#content-policy)
- [Campaign and data collection versions](/data/campaign-and-collection-versions)
- [Retrieve delivered records](/api/api-fields)

## Content policy [#content-policy]

Plain-language rules an agent enforces, such as no competitor brand names.

In the builder, you find this under Policy Gate.

### Use it when

- You have a plain-language rule, such as no competitor brand names.
- An agent should enforce that rule rather than a regular expression.

### Related

- [PII — semantic](#pii-semantic)
- [On violation](#on-violation)

## On violation [#on-violation]

Block the item, flag it for review, or let it pass.

In the builder, you find this under Policy Gate.

### Use it when

- A violation should block the item.
- A violation should be flagged for a person, or allowed to pass.

### Related

- [Content policy](#content-policy)
- [Code](#code)

## Code [#code]

Custom Python: define run(payload) and return the result.

In the builder, you find this under Canvas.

### Use it when

- You need custom Python that reads the payload and returns a result.
- The function to define is run(payload).

### Related

- [On violation](#on-violation)
- [Transform](#transform)
- [Configure a workflow](/tasks/workflow)
- [Start with a data need](/start/developer-start)

## Transform [#transform]

Normalize, enrich or redact records with code or a model.

In the builder, you find this under Node palette.

### Use it when

- Records need to be normalized, enriched or redacted before the next step.
- That change should happen in code or with a model, on this step.

### Watch out

The palette locks this step. It has not passed internal acceptance, so how it behaves on a live campaign is not guaranteed. The palette also lists this step as not ready yet.

### Related

- [Code](#code)
- [From submission to data delivery](/data/delivery)
- [Configure a workflow](/tasks/workflow)
