Guardrails

Last checked: 7 November 2026

In short: Guardrails are the rules and filters placed around an AI system to keep its output safe, accurate and on topic. They block harmful replies, protect private data and stop the AI acting outside agreed limits.

How it works

  1. Set limits. The business decides what the AI may discuss, what tone it uses and what it must never say or do.
  2. Check inputs. Filters screen user messages for attacks, abuse or attempts to push the AI off topic.
  3. Check outputs. Further filters review each reply before it goes out and block or rewrite anything that breaks the rules.

Where you’ll meet it

When ChatGPT, Claude or Gemini declines a request, a guardrail is at work. Customer service chatbots on retail and banking sites use guardrails to stay on topic.

What it means for your business

  • No guardrails, no launch. Any customer-facing AI needs tested limits on topics, tone and data before going live.
  • Retest after changes. Updates to the model, prompts or software can break guardrails that worked before.
  • Have an off switch. Make sure staff can turn off an AI feature quickly if it misbehaves.

Watch out for

  • Determined users. People share tricks online for getting around guardrails. Test with the same tricks.
  • Over-blocking. Strict filters can refuse reasonable questions and frustrate customers.

Example

DPD. In January 2024 a customer chasing a lost parcel got the delivery firm’s chatbot to swear, criticise the company and call DPD the worst delivery firm in the world. His screenshots on X were viewed more than a million times. DPD blamed an error that followed a system update, and it disabled the AI element of its online chat while it was updated.

Guardrails vs content moderation

GuardrailsContent moderation
ChecksWhat an AI system says and doesWhat people post online
WhenBefore or as the AI repliesAfter users submit content
Run byThe business using the AIPlatforms, using people and software

Frequently asked questions

Can guardrails make an AI chatbot completely safe?

No. They cut risk, but determined users and unusual questions still get through sometimes. Combine guardrails with monitoring, human escalation and a quick way to switch features off.

Who sets the guardrails on a bought chatbot?

Both sides. The model maker adds general limits, and your business adds its own through system prompts, filters and settings. Ask the supplier which controls you can change.

How often should guardrails be tested?

Before launch, after every update and on a regular schedule, such as monthly. Use real customer questions plus known tricks for getting around limits.

Related terms

Jailbreak
System Prompt
Prompt Injection