Configure Safety Settings for an AI Agent Builder
Updated
The Safety section in AI Agent Builder lets you configure:
- PII Masking: Detects and redacts sensitive data before processing or output.
- Guardrails: Controls what the AI Agent can process or respond to.
You can:
Configure one PII Masking template per AI Agent
Add multiple Guardrails
Define workflow actions for Guardrail triggers
Add PII Masking
PII Masking automatically redacts sensitive information.
Open the required AI Agent in AI Agent Builder.
Click Define from the left pane.

Select Safety.
In the PII Masking section, click Add PII Masking.

Select a PII Masking template.
Review the PII Masking Name.
Click Save.

The selected template is applied to the AI Agent.
Modify PII Masking
- Click Change PII Masking
- Select a different template
- Click Save
Note: PII Masking templates are shared. Changes affect all AI Agents using the template.
Add Guardrails
Guardrails define what the AI Agent can and cannot respond to.
- Open the required AI Agent.
- Go to Define → Safety.
- In the Guardrails section, click Add Guardrail.
- Select one or more Guardrails from Select Guardrail.
- Click Save.
Added Guardrails are displayed on the Safety screen.
Guardrail Scope
Guardrails can be applied to:
- Input messages
- Output messages
- Both input and output
Configure a Guardrail Action
By default, a block message is shown when a Guardrail is triggered. You can configure a workflow action for advanced handling.
On the Safety screen, expand a Guardrail.

Enable Include Guardrail Action.
Click Guardrail Action.
Configure the workflow in Dialogue Tree Builder.

Save the Dialogue Tree.
Save the Safety configuration.

The configured workflow runs when the Guardrail is triggered.
Note: You must configure and save a workflow action before saving Safety settings when this option is enabled.
Manage Configurations
From the Safety screen, you can:
- Change the PII Masking template
- Add or remove Guardrails
- Review Guardrail scope (input/output/both)
- Configure or update Guardrail actions
- Replace existing configurations