AI glossary

What is AI Guardrails?

Definition

AI guardrails are the controls that keep an AI system safe and on-task: input and output checks, permission limits, business rules, human approval steps and monitoring.

Guardrails turn a clever demo into a system you can trust with customers, money and data.

Types of guardrails

  • Input guardrails: validate and filter what goes into the model (format checks, PII detection, abuse filters).
  • Output guardrails: check what comes out (schema validation, fact checks against sources, tone and policy filters).
  • Action guardrails: limit what an agent can do (least-privilege tools, spending caps, code-enforced business rules).
  • Human-in-the-loop: require approval for high-impact or low-confidence actions.
  • Operational guardrails: step limits, token budgets, rate limits, audit logs and alerts.

Principle

The prompt guides the model; code enforces the rules. Assume the model will sometimes be wrong, and design so mistakes are caught before they cause harm.

Learn how to implement them: Add Guardrails and Human Approval to an AI Agent.

Free newsletter

The Agent Brief

One practical email a week on AI agents, RAG and generative AI, for builders and business owners. No hype, no spam.