Why Guard Rails Matter
When running thousands of AI calls, edge cases aren’t a question of if but when. Manual review doesn’t scale. If you’re running 50,000 calls a week, you can’t have humans listening to every conversation in real time. Legal exposure adds up fast:- A single discriminatory statement during a hiring call can trigger an EEOC complaint
- TCPA violations carry statutory damages of $500 to $1,500 per call
- Class action lawyers actively monitor for these violations
- A call where your AI mishandles someone in distress can go viral
- These failures often happen in edge cases your testing didn’t cover
Two Types of Guard Rails
Require Guard Rails (Time-based)
Require Guard Rails (Time-based)
The guard rail must be triggered within a specified time window, otherwise the configured action runs.Used for TCPA disclosures that must happen early in the call:
- AI disclosure - Must disclose the caller is speaking with an AI
- Self introduction - Must identify who is calling
- Recording disclosure - Must disclose the call is being recorded
Forbid Guard Rails (Continuous)
Forbid Guard Rails (Continuous)
The conversation content must not trigger the guard rail. These continuously monitor the conversation.Used for:
- TCPA opt-out handling
- Custom guard rails
- Content policy violations
Apply guard rails
You can apply guard rails in two places:- An agent: open the agent and select Guardrails, the second tab at the top of the builder, beside Agent. See Agent builder. To set them through the API, include
settings.guardrailswhen you create an agent version. - Any outbound call via API: include the
guard_railsfield in the POST/v1/callsAPI.
Actions When Guard Rails Fire
You can attach an action to run when a guard rail is tripped:- End call: Immediately terminate the conversation
- Transfer: Route the call to a phone number, such as a live agent
- Move to a step: Jump to a specific step in your agent, such as an apology or handoff step
Custom Guard Rails
Custom guard rails cover industry-specific concerns or company policies. They require an enterprise plan, and each agent can have up to 5. You write them on the agent’s Guardrails tab. When you write a custom guard rail, make the prompt clear, specific, and well-defined. Ambiguous prompts can cause false positives, flagging calls that shouldn’t be triggered.Guard rails are monitoring. They do not guarantee regulatory compliance, and they are not a substitute for your own legal review of how you use the product.
Docs for agents: llms.txt