AI guardrails
Rules and checks around an AI system that limit what it may say or do, such as which topics it answers, which actions it may take and when it must hand off.
By Syed Ali · Updated
What AI guardrails mean
An AI agent is built on a model that will try to answer anything. Guardrails are the rules that stop it from doing so. They decide which questions the agent takes, which sources it may use, which actions it can perform and when it must hand the conversation to a person.
For a support team, guardrails are where the support policy meets the AI. The refund policy, the escalation rules and the topics only a human should touch, such as legal threats or security reports, all become guardrails.
Three layers of guardrails
Input guardrails check what comes in. They spot off-topic requests, abusive messages and attempts at prompt injection, where a customer writes text meant to override the agent's instructions. They can also strip or mask personal data before it reaches the model.
Output guardrails check what goes out. The most useful one is a grounding check: does the reply match what the help center or past tickets say? If not, it should not be sent. Others block promises the business can't keep, such as delivery dates or discounts.
Action guardrails limit what the agent can do in other systems. Looking up an order is low risk. Issuing a refund or cancelling a subscription moves money, so it should follow written rules such as an amount limit or an order age, with anything outside the rules going to a person.
How to set guardrails for a support AI
- List what the agent must never do. Promise compensation, discuss legal matters, change account owners. These are hard stops.
- Write the action rules. For each action, state when it is allowed and what happens otherwise.
- Define the handoff triggers. Missing evidence, an angry customer, a request for a person, a topic on the hard stop list.
- Test against real tickets. Run past tickets through the setup and check where it answered and where it stopped.
- Review escalations weekly. Loosen a rule where the agent stopped on tickets it could have handled, tighten it where it went too far.
A clean human handoff is part of the guardrail. Stopping is only safe if the ticket reaches a person with the context attached.
AI guardrails in practice
The guardrail that prevents most AI hallucinations is simple: answer only when the sources support it. Pluno's Deflection AI works that way and escalates when the evidence is not there. Actions such as refunds, order edits and subscription changes are rule-based, so Pluno acts on its own only where the team's AI Workflow rules allow, and anything that needs a business decision escalates. The Deflection AI workflow docs show how those rules are written.
Frequently asked questions
They are the limits placed around an AI system. Some control what it may say, such as refusing off-topic questions or unsupported claims. Others control what it may do, such as which actions need approval and when it must pass the conversation to a person.
Because a language model will try to answer almost anything. Without limits it can invent policies, promise refunds you don't offer or take an action it shouldn't. Guardrails turn a general model into one that behaves the way your support policy says.
Knowing when to stop. An agent that escalates when its sources don't support an answer avoids most hallucinations and most damaging mistakes. The second is limiting actions that move money or change accounts to clear, written rules.
Badly set ones can, by blocking tickets the agent could have handled. Well set ones raise usefulness over time, because the team trusts the agent enough to give it more ticket types. Review escalations regularly and loosen rules where the evidence supports it.
Related terms
AI hallucination
When an AI model gives an answer that sounds fluent and confident but is wrong or made up, such as a refund policy, feature or setting that does not exist.
Prompt injection
An attack where text sent to an AI system, such as a customer message or a web page it reads, contains hidden instructions meant to override what it was told.
Human handoff
The moment an AI agent passes a conversation to a human agent, ideally with a summary of the problem and what was tried, so the customer never repeats it.
AI governance
The policies, roles and controls that decide which AI tools a company uses, what they may do with data and customers, and how their output is checked over time.