lowob

What Are AI Guardrails?

AI guardrails are controls placed around a language model that check its inputs, its outputs and the actions it takes against a set of rules. They can block harmful content, keep an assistant on topic, mask personal data, flag answers not supported by sources and limit which tools an agent may call. Guardrails reduce risk but do not remove it. The strongest ones are design choices: narrow permissions and a person approving anything that leaves the company.

Gateway 0ToolingContextRecordReasoningGateway 1Gateway 2Gateway 3
Agents are the reasoning layer, and they touch every stage of the build.

What AI guardrails mean

A model's own training includes some refusals and safety behaviour. Guardrails are separate. They are software checks that sit in front of, behind or alongside the model and apply rules the business sets.

NVIDIA's NeMo Guardrails documentation gives a useful map of where checks can sit. Input rails check and clean user messages before they reach the model. Retrieval rails screen retrieved material so only trusted context is passed in. Dialog rails keep multi-turn conversations on track. Execution rails govern tool and function calls, including their inputs and outputs. Output rails review replies and can filter, rewrite or block them.

Amazon Bedrock Guardrails describes the checks by type rather than position. Content filters cover categories such as hate, violence, misconduct and prompt attacks. Denied topics block subjects you define. Word filters block specific terms. Sensitive information filters block or mask personal data. Contextual grounding checks flag responses not supported by the source material. Automated reasoning checks validate responses against logical rules.

Guardrails areGuardrails are not
Rules applied to inputs, outputs and actionsA guarantee of safe or correct output
Configurable by the business, per use caseThe same as the model's built-in safety training
A layer you can test and logA substitute for narrow permissions
Useful against known failure typesReliable against every new attack

Why guardrails matter for a commercial team

The risks are now catalogued. OWASP's 2025 Top 10 for LLM applications lists, in order: prompt injection, sensitive information disclosure, supply chain, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation and unbounded consumption. Most map to a guardrail type. Input rails address injection. Sensitive information filters address disclosure. Grounding checks address misinformation.

For a revenue team the practical failures are specific. A support assistant quotes a discount it was never authorised to offer. A proposal assistant pastes one client's details into another's draft. An inbound email contains hidden instructions that tell an agent to forward the pipeline report. A content filter does little about the first two. An execution rail and a permission model do.

NIST's July 2024 generative AI profile treats guardrails as something to maintain, not install once. Its suggested actions include regularly reviewing security and safety guardrails, especially when a system is used in new circumstances, and regularly evaluating vulnerabilities to circumvention of safety measures. It also recommends AI red-teaming.

In lowob's view, filters are the outer layer. The inner layer is the autonomy dial: answer, draft, act with approval, act and report, act alone. A guardrail that blocks bad output after the fact is useful. An agent that can only draft, never send, does not need the guardrail to be perfect.

Where to start with guardrails

LayerWhat it checksCommercial exampleTypical product category
PermissionsWhat the agent can reach and doRead-only CRM access; draft-only emailIdentity and access management
InputMessages and documents before the modelStrip hidden instructions from inbound emailPrompt attack filters
RetrievalWhich sources may be usedOnly approved case studies and current price listRetrieval rails, access-controlled stores
ExecutionTool calls and their argumentsBlock any "send" or "delete" callExecution rails, tool allow-lists
OutputThe reply before a person sees itMask personal data; flag ungrounded claimsContent filters, grounding checks
Human approvalThe final decision to sendNamed reviewer for every client-facing messageWorkflow approval step

Start from the inside. Scope permissions first, because they limit damage whatever the model does. Add an approval step for anything client-facing. Then add filters for the failures you have actually seen in testing, not every category a product offers.

The common mistakes are relying on the model's own refusals, switching on a vendor's default filters without testing them on real traffic, and running guardrails without logging what they blocked. AWS's documentation recommends benchmarking configurations with its built-in test tools. A guardrail with no record of what it caught cannot be tuned or audited.

lowob takeaways

  • Guardrails are checks around the model. They screen inputs, outputs and actions against your rules.
  • Permissions come first. An agent that cannot send does not rely on a perfect filter.
  • Test on real traffic. Default settings rarely match your failure cases.
  • Log what they catch. Unlogged guardrails cannot be tuned or audited.

Common questions

What are guardrails in AI?

They are controls around a language model that check inputs, outputs and tool actions against rules, for example blocking a topic, masking personal data or stopping an unapproved action.

What is the difference between AI guardrails and AI governance?

Governance sets policy, ownership and accountability for AI use. Guardrails are the technical controls that enforce parts of that policy in a running system.

Can guardrails stop prompt injection?

They can catch some attempts, but not all. OWASP ranks prompt injection as the top LLM risk. Narrow permissions and human approval limit the damage when a filter misses.

What tools provide AI guardrails?

Options include cloud services such as Amazon Bedrock Guardrails, open-source libraries such as NVIDIA NeMo Guardrails, and checks built into AI platforms and agent frameworks.

Sources and notes

What Is an AI Agent, and Where Does It Fit in the Brain?

Read next in The Build Order