Skip to content

Glossary · AI

AI guardrails

Also called: LLM guardrails, AI safety checks, output filters

AI guardrails are automated checks placed before or after a model call that block, correct or route away inputs and outputs that break your rules, such as banned content, leaked data or invalid formats.

A prompt asks the model to behave. A guardrail checks whether it did. Because models are probabilistic, any rule that really matters should be enforced by a deterministic check outside the model.

Types of guardrails

TypeChecksExample
FormatOutput parses and matches a schemaReject a reply missing category
ContentBanned terms, topics or toneBlock "guarantee" in a sales draft
Data leakageFields that must never leaveStrip internal notes or account numbers
Value rangeNumbers and choices within limitsDiscount no higher than 10%
GroundingClaims supported by provided dataFlag a reply citing a policy that isn't in the prompt

Where to put them

  • Before the model: redact sensitive fields, trim input, refuse obviously malicious text.
  • After the model: validate format, scan content, check values.
  • Before the action: the last gate. If a guardrail fails, route to a person or a safe default; don't just log it and carry on.

Guardrails reduce risk; they don't remove it. Pair them with human review for anything irreversible, and with least-privilege tools against prompt injection.

In Fluxo Flow

The Guardrail node blocks or warns on banned terms or fields; the Validator node checks rules or a JSON schema and routes to pass or fail; Human Review is the final gate before risky actions. A typical support-reply workflow runs an AI draft through a Guardrail that blocks internal notes and banned terms, then waits for an agent's approval.

All 40 glossary terms

Build your first workflow today.

Build and Dry Run on the Free plan, no credit card. Run live on a paid plan, on your own AI key at cost.

Free to explore · No credit card · 30-day money-back guarantee on paid plans