Enable the Conversational Analytics API

This page describes the steps for enabling the Conversational Analytics API (accessed through geminidataanalytics.googleapis.com) for your Google Cloud project. The Conversational Analytics API is the first capability under the Data Analytics API with Gemini in the Google Cloud console.

Before you begin

To work with the Conversational Analytics API, you must fulfill the following prerequisites and have the required Identity and Access Management (IAM) roles on your Google Cloud project.

Prerequisites

  1. Identify the data that you want to use with the Conversational Analytics API. You can use data sources like BigQuery tables, Looker Explores, and Looker Studio reports.
  2. In the Google Cloud console, on the project selector page, create a Google Cloud project that can access the data that you want to use with the Conversational Analytics API.

    Go to project selector

Required roles

Ensure that you have the following IAM roles on the Google Cloud project that you will use with the Conversational Analytics API:

Go to Roles

Enable the required APIs

To use the Conversational Analytics API, you must enable the required APIs in your Google Cloud project. When you enable an API, you might need to refresh the page to confirm that the API has been enabled.

Enable the Gemini Data Analytics API

To use the Conversational Analytics API, enable the Gemini Data Analytics API by using the Google Cloud console or the Google Cloud CLI.

console

Enable the Gemini Data Analytics API in the Google Cloud console.

gcloud

To enable the Gemini Data Analytics API with the Google Cloud CLI, run the gcloud services enable command as follows:

gcloud services enable geminidataanalytics.googleapis.com --project=project_id

In the previous example, replace project_id with your Google Cloud project ID.

Enable additional required APIs

In addition, to use the Conversational Analytics API, you must enable the following APIs in the Google Cloud project that you will use with the Conversational Analytics API:

Enable APIs for Colab Enterprise

If you plan to use the Conversational Analytics API from a Colab Enterprise environment, enable the following APIs:

Additional configuration for VPC Service Controls

If VPC Service Controls is enabled for your organization or for the Google Cloud project that you're using, add the following APIs, which are used by the Conversational Analytics API, to the allowlist: