1. Home
  2. Glossary
  3. Guardrails
AI glossary · Safety, ethics & policy

Guardrails

Guardrails: Guardrails are the rules, filters, and technical limits placed around an AI system to keep its behavior within acceptable bounds, such as refusing harmful requests, staying on topic, protecting data, or requiring approval before acting.

Guardrails operate at several layers. Inside the model, safety training teaches it to decline certain requests. Around the model, a system prompt sets the role and the rules. Outside the model, classifiers screen inputs and outputs for things like personal data, toxic content, or off-topic requests, and permission settings limit which tools an agent can call and what it can do without a human clicking approve.

No single layer is enough. Safety training can be jailbroken, system prompts can be overridden by clever inputs, and filters miss things. Good deployments stack them and assume each one will occasionally fail. The most reliable guardrail is structural: if an assistant cannot send email, it cannot send a bad email no matter what it is tricked into wanting.

You set guardrails whenever you build a custom assistant or automation, even a small one. Decide what it is for, what it must never do, what data it may see, and which actions need approval. Write those into the instructions, test them with adversarial prompts, and log what the system does so you can catch drift.

Example at work

A dental office builds a chat assistant for appointment questions. Its guardrails: it answers only scheduling and insurance-coverage questions, it never gives clinical advice and instead offers to book a consult, it has no access to patient records, and any request to cancel an appointment produces a draft that the front desk confirms.

Why it matters

Guardrails are the difference between a demo and a tool you can put in front of customers or staff. They also tell you how far to trust a vendor's product. If you cannot find out what an AI tool is prevented from doing, assume it can do anything its inputs talk it into.

Related terms