G

Guardrails

AI guardrails are the rules and controls that keep an AI model or agent inside safe, approved boundaries, limiting what it will discuss, which actions it can take, what data it can see and what it is allowed to say.

What are guardrails in AI?

Guardrails in AI (sometimes written "guard rails") are the rules and controls that keep an AI model or agent inside safe, approved boundaries. They check what goes in, such as prompt injection or sensitive data; limit what the AI can do, through action permissions; and filter what comes out, such as toxic or confidential content. In Agentforce they are set as topic restrictions, action permissions, escalation rules and output filters.

What it is

Guardrails in AI (also written "guard rails") are the controls placed around a model or agent so it behaves within policy. They work at three points: on the input, blocking prompt injection, off-topic requests and sensitive data; on actions, through permissions that limit what the agent may do; and on the output, filtering toxic, confidential or off-policy content. In Agentforce, guardrails are configured as topic restrictions (what the agent can and cannot discuss), action permissions (what operations it can perform), escalation rules (when to hand off to a human) and output filters (what it cannot say). The Atlas Reasoning Engine applies them before any action is taken, and the Einstein Trust Layer adds data masking and toxicity detection around the model.

Why it matters

Without guardrails, AI agents are unpredictable. With them, agents operate within defined boundaries — which is what enterprise buyers, compliance teams, and regulators require. Guardrails are not limitations; they are what make AI deployable in production.

Key components

  • Topic restrictions
  • Action permissions
  • Escalation rules
  • Output filters
  • PII masking

How it connects

You configure guardrails in Agent Builder as part of topic and action definitions. The Trust Layer adds additional guardrails at the platform level.

Good to know

Guardrails should be tested with adversarial prompts — try to make the agent break its own rules. If you can break it in testing, customers will break it in production.

Frequently asked questions

What are AI guardrails primarily used for?

AI guardrails are primarily used to keep AI safe and on-task: stopping prompt injection and misuse, keeping sensitive data out of prompts and answers, limiting an agent to approved actions, handing hard or risky cases to a person, and blocking harmful, off-brand or non-compliant output. For a business, that is what makes an agent trustworthy enough to put in front of customers.

How are guardrails enforced in Agentforce?

Agentforce enforces guardrails in the platform, not in the prompt alone. The Atlas Reasoning Engine checks topic restrictions and action permissions before the agent acts, escalation rules route cases to a person, and the Einstein Trust Layer masks sensitive data and screens output for toxicity.

Need Help Implementing This?

We specialize in putting AI and Agentforce to work for Salesforce customers. Let's talk about your use case.

Book Intro Call