
A place for AI forward engineers and leaders
Watch sessions on building AI agents grounded in your governed data.

AI systems can hallucinate loan policies that don't exist, leak confidential data in responses, or take actions outside their intended scope. McKinsey reports 51 percent of organizations have experienced such incidents. That number matters because it represents organizations that discovered problems after deployment, not during testing. AI guardrails prevent these failures by enforcing your organization's rules at runtime through automated checks on inputs, processing, and outputs. This guide explains what guardrails are, why they matter for enterprise AI, and how to implement them at scale.
Here's the quick mental model to keep in your pocket before getting into the details:
Automated checks that control what an AI system can receive, process, and return. They run every time someone interacts with the system, enforcing your organization's rules without requiring manual review.
Picture an analyst asking an AI assistant for revenue projections. Input guardrails check whether the prompt includes restricted topics or sensitive identifiers. Processing guardrails verify the analyst has permission to access the underlying financial data. Output guardrails redact sensitive figures before the response appears on screen.
This differs from related concepts in important ways:
Guardrails turn governance policies into enforceable rules. A policy document might say "protect customer privacy." A guardrail actually detects and redacts a Social Security number before it appears in a response. Policies without enforcement are suggestions. Not safeguards.
One more nuance matters in enterprise settings. Guardrails work best when they live in the orchestration layer (the workflow that routes prompts, retrieves context, and calls tools), not as a last-minute filter taped onto the end of a chatbot.
A financial services firm deployed a customer-facing assistant to help with account queries. Within weeks, the assistant hallucinated a loan approval policy that didn't exist. Regulatory scrutiny followed. Customer complaints piled up.
Generative AI guardrails would have flagged that hallucination before delivery.
The threats that matter most depend on whether your AI system is internal-facing, customer-facing, or agent-based with tool access. A public chatbot faces different risks than an internal data analysis tool.
Security teams typically focus on these categories:
Blocking too aggressively creates false positives that frustrate people. Blocking too loosely lets harmful outputs through. Finding the right balance requires iteration, and the balance point shifts depending on whether you're protecting an internal analytics tool or a customer-facing chatbot.
It also helps to be specific about who feels the pain:
Guardrails aren't just defensive. They accelerate AI adoption by giving stakeholders confidence that outputs meet quality and compliance standards.
{{custom-cta-1}}
Controls can be implemented at multiple points in the AI pipeline. Where you enforce which rules affects latency, accuracy, and operational complexity.
Most teams use a three-layer model: input, processing, and output. This mirrors defense-in-depth security patterns where redundant controls at each layer reduce the chance that a single failure causes harm. Implementing guardrails at only one layer (typically output) and assuming that's sufficient is a common mistake. Each layer catches different failure modes, and gaps at one layer can't always be compensated for at another.
Input guardrails inspect prompts before they reach the model. They catch malicious inputs, enforce topic restrictions, and redact sensitive data, such as personally identifiable information (PII), from queries.
Large language model (LLM) guardrails at the input layer typically include:
Aggressive input filtering reduces risk but can block legitimate queries. Internal analysts might need lighter checks than a public chatbot serving untrusted visitors.
Input guardrails also apply to what feeds the prompt. If an agent pulls in unstructured content for retrieval-augmented generation (RAG), guardrails should validate that the documents are approved for that audience before they ever reach the model context window.
With Gartner predicting 40 percent of enterprise apps will feature agents by the end of 2026, AI agent guardrails are critical here, especially for systems that take actions. That projection signals a shift from AI as a tool people query to AI as a participant in workflows, which fundamentally changes the risk profile.
Processing guardrails operate during the AI workflow, after input validation but before the final output. They govern what the model can access and do.
Without tool permissioning, an agent asked to "delete old files" might interpret that scope more broadly than intended.
Two processing-layer details tend to separate "nice demo" from "safe in production":
Output guardrails inspect responses before delivery. They flag harmful content, likely hallucinations, and policy violations that slipped past earlier layers.
Hallucination guardrails and content filters typically include:
Teams often set output filters to block by default, meaning the system withholds the response when a rule triggers. This creates a poor experience when false positives occur. For lower-risk use cases, flagging suspicious outputs while still delivering them (then reviewing flagged responses to tune the classifier) works better.
For agent workflows, output guardrails can also decide whether the agent is allowed to act. An agent can draft an action (approve, refund, update) but pause for human-in-the-loop validation when the risk score, dollar amount, or policy conditions cross a threshold.
Guardrails aren't a single component you install. They're checkpoints distributed across the pipeline, coordinated by policies and monitored through telemetry.
The typical request flow looks like this:
When a guardrail blocks a request, the system should return a helpful message rather than a generic error. Silent blocks (where an output guardrail catches something and returns a blank screen) make people think the tool is broken. That detail often gets missed: when a guardrail blocks a request, the message needs to explain what happened and what to do next.
In production, teams also want freedom to change models without rewriting policies and validators. An AI service layer (an abstraction between apps and models) helps keep guardrails consistent whether the request routes to DomoGPT, a third-party model, or a custom model.
A complete system requires several pieces working together:
Teams with limited engineering capacity can start with vendor-provided guardrails and add custom validators as they identify gaps.
Teams deploying agents at scale usually add two more operational pieces:
Implementation isn't a one-time project. Threats evolve, models change, and behavior shifts.
Security teams sometimes define guardrails without product input, resulting in rules that block legitimate use cases. Product teams sometimes deploy AI features without security review, resulting in gaps discovered only after an incident.
Structure ownership clearly:
For each proposed guardrail, answer three questions. What should never happen? What should always happen? What requires human judgment?
For high-stakes workflows, make "human judgment" concrete. A finance approval agent might be allowed to draft an approval packet, but required to pause for human-in-the-loop signoff before sending money. A fraud analysis agent might auto-escalate to a review queue when confidence dips or risk climbs.
Teams deploy guardrails and assume they're working. Without metrics, you can't tell whether the system catches real threats or just creates friction.
Track these signals:
Weekly metric reviews, monthly threshold tuning, and quarterly policy audits work well for most teams. Low-volume applications might only need monthly spot-checks.
If multiple teams deploy multiple agents, add one more metric that keeps IT and data leaders sane: policy coverage. Which agents are governed, by which policies, and where do exceptions exist?
Domo applies guardrails where work happens, so permissions, policies, and audit logs follow the data and the agent workflow, not a separate policy document.
Because governance is built in, teams can apply consistent AI guardrails across workflows without stitching together separate systems or synchronizing policies by hand.
{{custom-cta-2}}
Guardrails determine whether AI systems earn trust or erode it. The pattern across successful deployments is consistent: Define policies with cross-functional input, implement validators at each pipeline stage, monitor metrics, and iterate as threats evolve.
Start with the risks that matter most for your use case. Add controls incrementally. Measure their impact. The goal isn't perfect safety but continuous improvement toward systems that are useful, accurate, and aligned with how your organization actually works. If you're ready to apply these guardrail ideas with permissions, auditing, and agent controls in one place, watch a demo.