This page describes how to create media recommendation apps and media search
apps.

The processes for [creating media recommendations apps](https://docs.cloud.google.com/generative-ai-app-builder/docs/create-app-media.md.txt#recs) and [creating
media search apps](https://docs.cloud.google.com/generative-ai-app-builder/docs/create-app-media#search) are similar. Both apps can use the same media data
stores---although when you create a media recommendations app, you must choose a
recommendations type and a business objective for your app.

## Before you begin

Make sure that you have created your media data store.

For information about
creating a media data store, see [Create a media data
store](https://docs.cloud.google.com/generative-ai-app-builder/docs/create-data-store-media).

## Create a media recommendations app

To use the Google Cloud console to create a media recommendations app, follow these
steps:

### Console

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

   [AI Applications](https://console.cloud.google.com/gen-app-builder/engines)
2. On the **Apps** page, click **Create app**.

3. On the **Create app** page, under **Media recommendations** , click
   **Create**.

4. In the **App name** field, enter a name for your app. Your app ID,
   also called the engine ID, appears under the field.

5. Optional: Click **Edit** to edit your app ID.

6. Select a recommendations type. For more information, see
   [Recommendations types](https://docs.cloud.google.com/generative-ai-app-builder/docs/about-media-recommendations-types.md.txt).

7. Select a business objective. For more information, see
   [Optimization for business objectives](https://docs.cloud.google.com/generative-ai-app-builder/docs/about-media-recommendations-types.md.txt#opt-obj).

8. (Only for Recommended for you) Select a context event type. For more
   information, see [Recommended for you](https://docs.cloud.google.com/generative-ai-app-builder/docs/about-media-recommendations-types.md.txt#recommended-for-you).

9. (Only for Most popular) Enter a time window in the **Days** field if you
   selected the **Most popular** recommendations type.

10. Click **Continue**.

11. Select a media data store that you previously created.
    Only media data stores are displayed for selection.

12. Optional: To see a list of unavailable data stores, click **Learn why**.

    A table is displayed with a list of data stores and the reason why they are
    unavailable.
13. On the **Data Stores** page, click **Create**. Your new app is created and
    connected to the data store that you selected. The information page for your
    data store appears.

14. Check the quality of the data in your data store:

    1. Click **Data quality** . If you see the message **Data requirements not met** ,
       you have to import more data, usually in the form of more recent user events.
       For information about importing user events, see [About media user
       events](https://docs.cloud.google.com/generative-ai-app-builder/docs/media-user-events) and [Import historical user events](https://docs.cloud.google.com/generative-ai-app-builder/docs/import-user-events.md.txt),
       and [Record real-time user events](https://docs.cloud.google.com/generative-ai-app-builder/docs/record-user-events.md.txt). After importing
       data, it can take some time for the **Requirements** tab to update its
       status.

    2. To review additional quality metrics about your data, click
       **Optimization** . For more information, see [Check data quality
       for media recommendations](https://docs.cloud.google.com/generative-ai-app-builder/docs/check-media-data-quality).


<br />

> [!NOTE]
> **Note:** It can take two to five days for your app to train and be ready for queries.

## Create a media search app

To use the Google Cloud console to create a media search app, follow these
steps:

### Console

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

   [AI Applications](https://console.cloud.google.com/gen-app-builder/engines)
2. On the **Apps** page, click **Create app**.

3. On the **Create App** page, under **Media search** , click
   **Create**.

4. In the **App name** field, enter a name for your app. Your app ID,
   also called the engine ID, appears under the field.

5. Optional: Click **Edit** to edit your app ID.

6. Click **Continue**.

7. Select a media data store that you previously created.
   Only media data stores are displayed for selection.

8. Optional: To see a list of unavailable data stores, click **Learn why**.

   A table is displayed with a list of data stores and the reason why they are
   unavailable.
9. On the **Data Stores** page, click **Create**. Your new app is created and
   connected to the data store that you selected. The information page for your
   data store appears.

<br />

## What's next

- For search apps: [Configure search results for structured
  data](https://docs.cloud.google.com/generative-ai-app-builder/docs/configure-widget-attributes#configure_search_structured)

- For recommendations apps: [Get media recommendations](https://docs.cloud.google.com/generative-ai-app-builder/docs/preview-recommendations.md.txt#get-media-recommendations)