Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
Esta página describe los pasos para habilitar la API de análisis conversacional (a la que se accede a través de geminidataanalytics.googleapis.com ) para su Google Cloud proyecto. La API de análisis conversacional es la primera capacidad de la API de análisis de datos con Gemini en el Google Cloud consola.
Antes de empezar
Para habilitar la API de análisis conversacional, debe cumplir con los siguientes requisitos previos y tener los roles de administración de identidad y acceso (IAM) necesarios en su Google Cloud proyecto.
Prerrequisitos
Identifique los datos que desea usar con la API de Análisis Conversacional. Puede usar fuentes de datos como tablas de BigQuery, Looker Explores e informes de Looker Studio.
En la consola de Google Cloud, en la página del selector de proyectos, cree un Google Cloud proyecto que puede acceder a los datos que desea utilizar con la API de análisis conversacional.
Habilite las siguientes API en el Google Cloud Proyecto que usará con la API de Análisis Conversacional. Al habilitar la API, es posible que deba actualizar la página de la consola para confirmar que se ha habilitado:
Configuración adicional para los controles de servicio de VPC
Si los controles de servicio de VPC están habilitados para su organización o para la Google Cloud proyecto que esté utilizando, agregue las siguientes API, que son utilizadas por la API de análisis conversacional, a la lista de permitidos:
Desde geminidataanalytics.googleapis.com , permita la siguiente API:
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-06-11 (UTC)."],[],[],null,["# Enable the Conversational Analytics API\n\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis 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](https://console.cloud.google.com/apis/library/geminidataanalytics.googleapis.com) in the Google Cloud console.\n\nBefore you begin\n----------------\n\nTo 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.\n\n### Prerequisites\n\n1. 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.\n2. In the Google Cloud console, on the project selector page, [create a Google Cloud project](/resource-manager/docs/creating-managing-projects) that can access the data that you want to use with the Conversational Analytics API.\n\n | **Note:** There is no billing for the Conversational Analytics API at this time.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n### Required roles\n\nEnsure that you have the following IAM roles on the Google Cloud project that you will use with the Conversational Analytics API:\n\n[Go to Roles](https://console.cloud.google.com/iam-admin/roles)\n\n\u003cbr /\u003e\n\n- [Gemini for Google Cloud (`roles/cloudaicompanion.user`)](/iam/docs/roles-permissions/cloudaicompanion#cloudaicompanion.user)\n- [BigQuery User (`roles/bigquery.user`)](/iam/docs/roles-permissions/bigquery#bigquery.user)\n- [BigQuery Studio User (`roles/bigquery.studioUser`)](/iam/docs/roles-permissions/bigquery#bigquery.studioUser) (if you are using BigQuery Studio and data canvas)\n\nEnable the required APIs\n------------------------\n\nTo 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.\n| **Note:** If you don't have permission to enable the APIs, ask your project administrator to enable the APIs for you from the [APIs \\& Services dashboard](https://console.cloud.google.com/apis/dashboard). Alternatively, your project administrator can grant you the [Service Usage Admin (`roles/serviceusage.serviceUsageAdmin`)](/service-usage/docs/access-control) role in the Google Cloud console, which lets you enable and disable APIs for the current project.\n\n### Enable the Gemini Data Analytics API\n\nTo use the Conversational Analytics API, enable the Gemini Data Analytics API by using the Google Cloud console or the Google Cloud CLI. \n\n### console\n\nEnable the Gemini Data Analytics API in the Google Cloud console.\n\n- [Enable the Gemini Data Analytics API](https://console.cloud.google.com/flows/enableapi?apiid=geminidataanalytics.googleapis.com)\n\n### gcloud\n\nTo enable the Gemini Data Analytics API with the [Google Cloud CLI](/sdk/docs/install-sdk), run the [`gcloud services enable`](/sdk/gcloud/reference/services/enable) command as follows: \n\n```\ngcloud services enable geminidataanalytics.googleapis.com --project=project_id\n```\n\nIn the previous example, replace \u003cvar class=\"readonly\" translate=\"no\"\u003eproject_id\u003c/var\u003e with your Google Cloud project ID.\n\n### Enable additional required APIs\n\nIn 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:\n\n- [Enable the Cloudaicompanion API](https://console.cloud.google.com/flows/enableapi?apiid=cloudaicompanion.googleapis.com)\n\n- [Enable the BigQuery API](https://console.cloud.google.com/flows/enableapi?apiid=bigquery.googleapis.com)\n\n### Enable APIs for Colab Enterprise\n\nIf you plan to use the Conversational Analytics API from a Colab Enterprise environment, enable the following APIs:\n\n- [Enable the Dataform API](https://console.cloud.google.com/flows/enableapi?apiid=dataform.googleapis.com)\n\n- [Enable the Compute Engine API](https://console.cloud.google.com/flows/enableapi?apiid=compute.googleapis.com)\n\n- [Enable the Vertex AI API](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com)\n\nAdditional configuration for VPC Service Controls\n-------------------------------------------------\n\nIf [VPC Service Controls](https://cloud.google.com/security/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:\n\n- From `geminidataanalytics.googleapis.com`, allow the following API:\n - `projects.locations.chat`\n- From [`aiplatform.googleapis.com`](/vertex-ai/docs/reference/rest), allow the following API:\n - [`projects.locations.endpoints.generateContent`](/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent)\n- From [`datacatalog.googleapis.com`](/data-catalog/docs/reference/rest), allow the following APIs:\n - [`entries.lookup`](/data-catalog/docs/reference/rest#rest-resource:-v1beta1.entries)\n - [`catalog.search`](/data-catalog/docs/reference/rest/v1/catalog/search)\n- From [`bigquery.googleapis.com`](/bigquery/docs/reference/rest), allow the following APIs:\n - [`jobs.query`](/bigquery/docs/reference/rest/v2/jobs/query)\n - [`jobs.insert`](/bigquery/docs/reference/rest/v2/jobs/insert)\n - [`jobs.getQueryResults`](/bigquery/docs/reference/rest/v2/jobs/getQueryResults)"]]