> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budecosystem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Your First Guardrail

> Build a production-ready guardrail profile step-by-step

This tutorial helps you build a reusable guardrail profile that protects both inputs and outputs for a production-facing deployment.

## What You Will Build

A guardrail profile that:

1. Uses Bud Sentinel probes for safety and PII categories.
2. Applies both input and output guard types.
3. Uses a tuned severity threshold.
4. Deploys to an existing project deployment.

```mermaid theme={null}
flowchart LR
    A[Select Provider] --> B[Select Probes]
    B --> C[Choose Deployment Type]
    C --> D[Select Project and Deployment]
    D --> E[Configure Profile Settings]
    E --> F[Deploy and Validate]
```

## Prerequisites

* Access to Bud AI Foundry.
* A project with at least one active deployment.
* Permission to create and deploy guardrails.

## Step 1: Start the Workflow

1. Go to **Guardrails**.
2. Click **+ Add Guardrail**.
3. Confirm you can access the provider selection screen.

## Step 2: Choose Provider and Probes

1. Choose a provider (for example, **Bud Sentinel**).
2. Click **Next**.
3. Search probe catalog with tags (for example, Safety and PII).
4. Select the probes you need.
5. Review probe details to validate coverage.

## Step 3: Choose Deployment Type

1. Choose **Guardrail Endpoint** to deploy as a standalone guardrail endpoint.
2. Select **Add to Existing Deployment** so the profile protects an already-running endpoint.

<img src="https://mintcdn.com/budecosystem-b7b14df4/GYJ3s_7AEuMnFfTA/images/image-73.png?fit=max&auto=format&n=GYJ3s_7AEuMnFfTA&q=85&s=d3547c7eaf761f73e1013394dd7d9123" alt="Image" width="1920" height="872" data-path="images/image-73.png" />

## Step 4: Choose Project and Deployment

1. Pick your target project.
2. Select the deployment/endpoint you want to protect.
3. Continue to profile configuration.

## Step 5: Configure the Profile

Set:

* **Name**: `production-safety-guardrail`
* **Guard Types**: `input`, `output`
* **Severity**: start at medium and tune based on observed traffic
* **Description**: add policy intent and owner team

<img src="https://mintcdn.com/budecosystem-b7b14df4/GYJ3s_7AEuMnFfTA/images/image-74.png?fit=max&auto=format&n=GYJ3s_7AEuMnFfTA&q=85&s=d44458f88543e695bd4c67fc85d4a953" alt="Image" width="1920" height="876" data-path="images/image-74.png" />

## Step 6: Deploy

1. Click **Deploy**.
2. Wait for the success state.
3. Open the guardrail detail page and validate:
   * selected probes
   * active deployment mapping
   * status and timestamps

## Step 7: Validate with Test Prompts

Use known-safe and known-risk prompts to verify behavior and reduce false positives/negatives before broad rollout.

```mermaid theme={null}
flowchart LR
    A[Test Prompt] --> B[Guardrail Evaluation]
    B --> C{Violation?}
    C -->|Yes| D[Block or Flag]
    C -->|No| E[Allow]
```

## Best Practices
