Guardrails and safety
Block words and topics, resist prompt injection, and mask personal data in replies.
What each control does
Sidebar → Agents → open an agent → Builder tab → Guardrails & Safety. These are the safety rails around the agent, and every one below is actually enforced at runtime, on the Cascading pipeline. The section itself has no extra explanatory text on screen beyond its fields, so use this page as the source of truth for what each one does.
| Setting | Stored as | Type | Default | What it does |
|---|---|---|---|---|
PII protection | config.guardrails.pii_protection | Toggle | On | Automatically hides things like email addresses, phone numbers, and card numbers out of what the agent says back. PII means "personally identifiable information." |
Prompt injection defense | config.guardrails.prompt_injection | Toggle | On | A first line of defense against a caller trying to trick the agent into ignoring its own instructions, for example by saying "forget your rules and instead...". It looks for known patterns of that kind of attempt, it is not a full AI-based detector. |
Sensitive data masking | config.guardrails.sensitive_data_masking | Toggle | On | The same redaction as PII protection. Turning on either this or PII protection is enough; you do not need both. |
Restricted topics | config.guardrails.restricted_topics | Comma-separated | Empty | Topics the agent must refuse to discuss, for example "legal advice, medical diagnosis". These are added into the agent's own instructions as a firm rule. |
Blocked words | config.guardrails.blocked_words | Comma-separated | Empty | Specific words, for example your competitors' names or profanity. If the caller's message contains one, that turn is blocked with a short refusal, and the word is also masked out of anything the agent says back. |
Important
PII protection and Sensitive data masking both work by checking the agent's whole reply before it is sent, so word-by-word streaming is switched off automatically while either one is checking a reply, even if Streaming is turned on elsewhere.