03

Guardrails

Guardrails are rules you set on each agent: what it keeps confidential, which sensitive data it redacts, the lines it must say, how it handles abusive callers, and what it does in situations you name. Some are checked by code on every reply; others are instructions to the agent. Each item below says which.

Turn on guardrails

Open an agent and choose the Guardrails tab. Start from a preset for your industry, or build your own rules, then save.

  1. 1Open the agent, then select Guardrails.
  2. 2Make sure Enable guardrails is on. Turning it off pauses every rule without deleting what you typed.
  3. 3Optionally apply a preset: General business, Healthcare / clinic, Finance / banking, Real estate, or Customer support / e-commerce.
  4. 4Adjust the rules to fit your business.
  5. 5Test your guardrails, then save.

Confidential information

List topics the agent must not discuss, such as internal pricing or staff contact details, and blocked phrases that must never be said, such as a project codename or a staff mobile number.

  1. 1Add confidential topics in plain words (up to 25).
  2. 2Add blocked phrases for exact words or numbers (up to 50).
  3. 3Optionally write a deflection line, used when a whole reply is blocked.
Note: Blocked phrases are checked by code: any sentence that contains one is removed before it is spoken, shown or stored, and phone numbers and other long numbers match however they are spaced. Confidential topics are an instruction to the agent, so put anything that must never be said in blocked phrases as well.

Protect sensitive data

When Protect sensitive data is on, payment card numbers, OTPs, PINs, CVVs, account numbers, Aadhaar, PAN and US Social Security numbers are redacted from what the caller says before it is stored or sent to the AI model, and removed from the agent’s replies.

  1. 1In Confidential information, turn on Protect sensitive data.
  2. 2Use Test your guardrails to try a message containing a sample card number or OTP.
  3. 3Check that transcripts in Conversations show [redacted] in its place.
Note: Checked by code on every turn. Redaction is pattern-based, so don’t design an agent to collect card details by voice; send a secure payment link instead.

Required statements

Lines the agent must say: a recording notice at the start, a policy before a booking, or a closing line in the goodbye.

  1. 1Select Add required statement and choose when it is said: At the start of the conversation, Before booking an appointment, or In the goodbye.
  2. 2Write the statement (up to 10 statements).
  3. 3Save and place a Preview call to hear it.
Note: A statement at the start of the conversation is spoken by code, word for word, before the greeting on every call. Statements before a booking or in the goodbye are instructions to the agent.

Abusive callers

Choose how an abusive caller is handled: end immediately, or after 1, 2 or 3 warnings. You can write your own warning, final warning and goodbye lines.

  1. 1Turn on Handle abusive callers.
  2. 2Choose the number of warnings (2 is recommended).
  3. 3Optionally replace the default warning, final warning and goodbye lines.
Note: The agent recognises abuse in any language. Heavano counts the abusive messages in code and ends the conversation on the last one; the caller cannot talk past the goodbye.

Hand-offs

Describe situations you want handled a set way, such as “the caller threatens legal action” or “the caller describes a medical emergency”, and choose what happens.

  1. 1Select Add hand-off and describe the situation in plain words (up to 10).
  2. 2Choose the action: Take a message for the team, or End the conversation politely.
  3. 3Optionally write what the agent says when it happens.
Note: The agent recognises the situation however it is phrased. Taking a message flags the conversation for follow-up; ending it is done by code. Live call transfer to a person isn’t available yet.

Test your guardrails

At the bottom of the Guardrails tab, send a message as if you were the caller and see how the agent replies, using the same checks as a real conversation, including your unsaved changes. Nothing is stored.

  1. 1Type a caller message, such as a confidential question or a sample OTP.
  2. 2Check the reply and what the guardrails did.
  3. 3Adjust the rules, test again, then save.

Review guardrail events

Each conversation shows the guardrail events it had: abusive messages and whether the conversation was ended, hand-offs that were triggered, whether it needs follow-up, and how many items were redacted.

  1. 1Open Conversations, or the agent’s Conversations tab.
  2. 2Open a conversation to see its guardrail events.
  3. 3Follow up on conversations flagged by a Take a message hand-off.
Note: Guardrails apply to inbound and outbound phone calls and to browser and chat previews. Agent tests include your guardrail instructions.

Ready to build your agent?

Open the Heavano app, create an agent, test it in Preview, then connect a number when it is ready for real callers.