

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

In this procedure, you add a function component to an existing [chat agent app](create-chat-app.md). You can add up to 5 functions to an app. For each function you add, be sure to update the system instruction with information about the function.

**To add a function component to a chat agent app**

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. From the project selector dropdown at the top of the page, choose the project that you want to use.

1. In the left navigation pane, under **Generative AI**, choose **AI apps**.

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

1. In the **Configs** pane, do the following:

   1. For **Enter a system instruction**, enter or update the system prompt so that it describes the function.

   1. Choose **Functions**.

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

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