Learn AI Math

Guardrails

What is Guardrails?

In one sentence: Guardrails are rules and checks that keep an AI system's behavior safe, appropriate and on-task.

They can block harmful requests, filter unsafe outputs, stop agents from risky actions, or keep answers on approved topics. They can be built into the model, the prompt or separate checking software.

What does Guardrails look like?

A banking bot with guardrails refuses to discuss anything except the bank's services and never reveals account data without verification.

Why does Guardrails matter?

Guardrails help prevent harm, misuse and embarrassing mistakes.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.