

# Add an Amazon Bedrock guardrail component to a chat agent app
<a name="add-guardrail-component-chat-app"></a>

In this procedure, you add a guardrail component to an existing [chat agent app](create-chat-app.md).

1. Navigate to the Amazon SageMaker Unified Studio landing page by using the URL from your administrator.

1. Access Amazon SageMaker Unified Studio using your IAM or single sign-on (SSO) credentials. For more information, see [Access Amazon SageMaker Unified Studio](getting-started-access-the-portal.md).

1. If the project that you want to use isn't already open, do the following:

   1. Choose the current project at the top of the page. If a project isn't already open, choose **Select a project**.

   1. Select **Browse all projects**. 

   1. In **Projects** select the project that you want to use.

1. Choose the **Build** menu option at the top of the page.

1. In **MACHINE LEARNING & GENERATIVE AI** choose **My apps**.

1. In **Apps** choose the chat agent app that you want to add the guardrail to.

1. In the **Configs** pane, choose **Guardrails**.

1. For **Guardrails**, select the guardrail component that you created in [Create an Amazon Bedrock guardrail component](creating-a-guardrail-component.md).

1. (Optional) Preview the guardail by choosing **Preview**. From the preview you can edit the guardrail, if desired.

1. Choose **Save** to save your changes.