This page describes the basic start-up tasks that you must complete before
using Agent Search.

## Create a project

To create a Google Cloud project for your Agent Search apps and
data stores, follow these steps:

1. In the Google Cloud console, on the [project selector
   page](https://console.cloud.google.com/projectselector2/home/dashboard), select or [create a Google Cloud project](https://docs.cloud.google.com/resource-manager/docs/creating-managing-projects.md.txt).

2. Make sure that billing is enabled for your Google Cloud project. Learn how
   to [check if billing is enabled on a
   project](https://docs.cloud.google.com/billing/docs/how-to/verify-billing-enabled).

3. If you plan to use the API, [install](https://docs.cloud.google.com/sdk/docs/install) and
   [initialize](https://docs.cloud.google.com/sdk/docs/initialize.md.txt) the gcloud CLI.

## Turn on Agent Search

To use Agent Search, you must activate the Agent Search
service.

To turn on Agent Search, follow these steps:

1. In the Google Cloud console, go to the **AI Applications** page.

   [AI Applications](https://console.cloud.google.com/gen-app-builder/start)
2. Optional: Click **Allow Google to selectively sample model input and
   responses**.

3. Optional: Review the [terms for data use](https://cloud.google.com/retail/data-use-terms).

4. Click **Continue and activate the API**.

## Access control in Agent Search

You can configure access control for Agent Search at the project
level. To grant access to Agent Search using the console, grant the
Discovery Engine Admin role to a principal for the project that contains the
Agent Search engine.

To grant access to Agent Search, follow the instructions at [Grant a
single role](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access#iam-grant-single-role-console) in
the IAM documentation using the following guidance:

- Select the project that contains the Agent Search engine.

- When selecting a role, enter **Discovery Engine** in the filter, and then
  click **Discovery Engine Admin**.

If you are an owner of the project, you automatically have the Discovery Engine
Admin role for that project.

To grant access to Agent Search for other users, groups, and service
accounts, see [Access control with IAM](https://docs.cloud.google.com/generative-ai-app-builder/docs/access-control.md.txt).

If you are using the API, see
[Set up authentication on Google Cloud](https://docs.cloud.google.com/generative-ai-app-builder/docs/authentication.md.txt#on-gcp)
for authentication and access control.

## What's next

- [Authenticate to Agent Search](https://docs.cloud.google.com/generative-ai-app-builder/docs/authentication.md.txt)
- [Access control with IAM](https://docs.cloud.google.com/generative-ai-app-builder/docs/access-control.md.txt)