Conversational analytics in BigQuery lets you query your open-format data using natural language prompts. This capability relies on the Lakehouse runtime catalog within borderless Lakehouse to automatically map your questions to the underlying table schemas so you can generate and execute SQL queries without writing the code manually.
When setting up your queries, you can use data agents to provide business glossaries and system instructions for greater accuracy.
How conversational analytics works
Conversational analytics uses large language models (LLMs) to understand your natural language questions and map them to the schema of your tables. The process follows these steps:
- Schema discovery: the system retrieves metadata from the Lakehouse runtime catalog to understand table structures, column names, and data types.
- SQL generation: the LLM generates a SQL query that is compatible with the BigQuery engine and the underlying data format.
- Execution: BigQuery executes the generated SQL query directly against the open-format data in Google Cloud's Lakehouse.
- Response: the results are returned to the conversational interface, often accompanied by a summary or visualization.
For more information about conversational analytics, such as managing data agents, pricing, or best practices, see Conversational analytics overview.
Supported formats
Conversational analytics translates your natural language questions into SQL queries. It supports the open table formats supported by the Lakehouse runtime catalog, such as Apache Iceberg tables.
Before you begin
Before you can query your data, register your external tables in the Lakehouse runtime catalog. The Lakehouse runtime catalog acts as the unified hub that connects BigQuery Studio to your external open-format data. Once connected, the tables become discoverable assets within BigQuery.
Query tables with conversational analytics
In the Google Cloud console, go to the BigQuery Agents page.
Create a data agent or start a direct conversation with a data source:
- To create a data agent, in the Agents navigation menu, click Agent catalog, click Create agent, and then in the Knowledge sources section, click Add source. For more information, see Create data agents.
- To start a direct conversation with specific tables, in the Agents navigation menu, click New chat > Source.
Select your tables.
Because the Lakehouse runtime catalog unifies these formats, you discover external tables the same way you discover standard BigQuery tables. In the Select sources dialog, do the following:
On the All tab, browse your project's catalogs, or in the search field, enter your table name or fully qualified name, and then press Enter. For example, you can search by using the following formats:
TABLE_NAMEPROJECT_ID.CATALOG_ID.NAMESPACE_NAME.TABLE_NAME
Replace the following:
TABLE_NAME: the name of your tablePROJECT_ID: the ID of your projectCATALOG_ID: the ID of your catalogNAMESPACE_NAME: the name of your namespace
Verify the source by checking the fully qualified table name. Apache Iceberg tables managed by the Lakehouse runtime catalog typically follow the four-part PCNT (Project.Catalog.Namespace.Table) format—for example,
PROJECT_ID.my_lakehouse_catalog.finance_namespace.my_iceberg_table. SAP Business Data Cloud tables follow a five-part format—for example,PROJECT_ID.my_bdc_catalog.sales_share.sales_schema.delta_table.In the search results, select the checkbox next to your table. To add the table to your active conversational context, click Confirm.
Ask questions in natural language. The system automatically translates your prompt into a BigQuery SQL query.
Improve query accuracy
To help conversational analytics better understand your schemas and terminology, use data agent configuration options. These options include business glossaries, verified SQL queries, and system instructions.
What's next
- Learn more about conversational analytics in BigQuery.
- Learn how to register external tables in the Lakehouse runtime catalog.
- Learn more about data agents.
- Try the tutorial Forecast demand from customer feedback using Lakehouse and AI.