---
title: Assign an input guardrail to a specialized agent
slug: agent-platform/docs/assign-an-input-guardrail-to-a-specialized-agent
docTags: 
createdAt: 2026-08-26T22:43:33.000Z
---

Assign an input guardrail to an individual specialized agent when separate agents handle distinct conversations and need their own content policies. A per-agent guardrail enforces its policy only on messages sent to that agent. This gives you targeted control beyond the single [instance-level input guardrail](docId:2LMsn2ASefUWAAmkCGuPh).

Per-agent guardrails operate independently of the instance-level active guardrail. An agent has its own guardrail even when no instance-level guardrail is active, and the reverse is also true. When you assign a guardrail to a specialized agent, Agent Platform evaluates each input the agent receives. Mark blocks the message when any input violates a policy.

## Prerequisites

The guardrail must already exist and have a trained model with the status **Ready**. To create and train one, see [Create and train an input guardrail](docId:-seHtlUToZb5C0L8Bmkvu).

## Assign a guardrail to an agent

To assign a guardrail to an agent, complete the following steps:

1. Open a specialized agent in the agent editor. See [Manage agents](docId\:SSeNiblVMXwVvDR_lhtvI) for information on selecting or creating an agent.
2. Find the **Input Guardrails** setting.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/f0WaFDkClS3UGozgnvujV_assign-to-agent.png" size="100" isUploading="false" position="center" width="2002" height="1044" darkWidth="2002" darkHeight="1044" showCaption="false" indent="1"}

3. Select the trained guardrail you want to enforce for this agent from the drop-down list.
4. Select the version of the guardrail you want to enforce for this agent from the **Select version** drop-down list.

::Image[]{src="https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/MysW6KtU_qX03u-ni7jVG_select-input-guardrail-version.png" size="70" isUploading="false" position="center" width="638" height="438" darkWidth="638" darkHeight="438" showCaption="false" indent="1"}

5. Do one of the following to save your changes:
   1. Click **Update** if you are editing an existing agent.
   2. Click **Save** if you are creating an agent.

The guardrail takes effect immediately for conversations with that agent. To change the policy later, select a different guardrail version or clear the setting to remove per-agent enforcement.

:::hint{type="info"}
**Note**

If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See [Turn generative AI off across Optimizely applications](docId\:X5U0kKD2azV5cIdNqwGNj).
:::
