Conversational Analytics, powered by Gemini for Google Cloud, lets you investigate your data by asking questions in conversational language through an intuitive chat interface. When you use Conversational Analytics with a LookML dashboard, you can define and customize a dashboard data agent directly in your version-controlled LookML code.
LookML dashboard agents let developers inject tailored business logic, custom instructions, and analytical settings into LookML-managed dashboards. Because LookML dashboards represent governed, version-controlled sources of truth across organizations, LookML dashboard agents ensure that AI interactions remain consistent across environments and adhere to organizational data standards.
This page covers the following topics:
- Before you begin
- Defining a dashboard agent in LookML
- Using LookML constants in agent instructions
- Associating a dashboard agent with a LookML dashboard
- Testing LookML dashboard agents in Development Mode
- Copying dashboard agent LookML from user-defined dashboards
- Viewing agent details in the Looker UI
- Querying a LookML dashboard with a dashboard agent
Before you begin
Before you can configure or use LookML dashboard agents, ensure that the following requirements are met:
- Instance requirements: A Looker admin must enable Conversational Analytics on the Gemini in Looker admin page. The admin must also turn on the Enable Trusted Tester Features and the Enabled Dashboard Agents settings. Advanced Analytics for dashboard agents, the Advanced Analytics admin setting must also be enabled. This setting doesn't apply to LookML dashboard agents in Looker 26.14.
- Permissions for developers: To create, edit, or configure LookML
dashboard agents and dashboards, you must have a Looker role
with the
developandsee_lookml_dashboardspermissions, as well as access to the LookML models that underlie the dashboard. - Permissions for viewers: To chat with a LookML dashboard agent, users
must have the
see_lookml_dashboardspermission and access to the LookML models that underlie the dashboard tiles.
Define a dashboard agent in LookML
To define a dashboard agent in LookML, declare the agent
parameter in a LookML model file or a dedicated LookML file within your project.
A LookML dashboard agent definition uses the following syntax:
agent: agent_name {
advanced_analytics: yes | no
description: "Description of the agent"
instructions: "Custom agent prompt and instructions"
is_dashboard_agent: yes
show_debuginfo: yes | no
show_thinking: yes | no
}
Dashboard agents support the following LookML parameters:
agent: Declares a new agent and defines its name.advanced_analytics: (Optional) Acceptsyesorno(default isno). When set toyes, the agent can use Advanced Analytics to translate natural language questions into Python code and execute that code for advanced computations and visualizations. This parameter is available for LookML dashboard agents; however, it is not functional in Looker 26.14.description: (Optional) A brief description of the agent.instructions: (Optional) A string that provides free-form instructions and business context to guide the agent when answering queries. If omitted, the agent uses default conversational processing without custom prompt context.is_dashboard_agent: (Required for dashboard agents) Set toyesto identify the agent specifically as a dashboard agent.show_debuginfo: (Optional) Acceptsyesorno(default isno). When set toyes, the agent displays detailed execution and troubleshooting information in conversation responses.show_thinking: (Optional) Acceptsyesorno(default isno). When set toyes, the agent displays its step-by-step reasoning process in conversation responses.
Example dashboard agent definition
The following example defines a LookML dashboard agent that enforces specific filtering rules and tone:
agent: sales_dashboard_agent {
instructions: "Focus on revenue metrics. Always filter by the current fiscal year unless the user specifies otherwise."
description: "LookML Dashboard Agent for sales performance analytics."
is_dashboard_agent: yes
advanced_analytics: yes
show_thinking: yes
show_debuginfo: no
}
Use LookML constants in agent instructions
If you manage multiple LookML dashboards across an organization, you can use LookML constants to share standard business rules, glossaries, or filtering requirements across agent definitions without duplicating text.
To use a constant in agent instructions, follow these steps:
Define the constant in your project's
manifest.lkmlfile:constant: FISCAL_YEAR_RULE { value: "Always filter all requests by the current fiscal year unless the user explicitly specifies a different timeframe." }Reference the constant in the
instructionsparameter of your dashboard agent using@{<var>CONSTANT_NAME</var>}syntax:agent: finance_dashboard_agent { instructions: "Prioritize gross margin and operating expense metrics. @{FISCAL_YEAR_RULE}" is_dashboard_agent: yes advanced_analytics: yes }
When the agent processes queries, Looker dynamically substitutes the constant string into the agent instructions.
Associate a dashboard agent with a LookML dashboard
To attach a dashboard agent to a LookML dashboard, configure the dashboard-level
parameters in the .dashboard.lookml file.
The following dashboard parameters control agent behavior on LookML dashboards:
enable_dashboard_agent: (Optional) Acceptstrueorfalse. Determines whether users can see the spark Chat with this dashboard icon and interact with the dashboard agent. If omitted, this parameter defaults totrueat the API layer.default_dashboard_agent: (Optional) Specifies the name of the LookML agent (defined with theagentparameter) that serves as the default agent for the dashboard.dashboard_agents: (Optional) A list of agent names available for the dashboard.
Example LookML dashboard configuration
The following snippet shows how to map the sales_dashboard_agent to a
LookML dashboard:
- dashboard: executive_sales_overview
title: "Executive Sales Overview"
layout: newspaper
enable_dashboard_agent: true
default_dashboard_agent: sales_dashboard_agent
dashboard_agents: [sales_dashboard_agent, regional_sales_agent]
elements:
- name: total_revenue_by_quarter
type: looker_column
model: sales_ops
explore: orders
measures: [orders.total_revenue]
dimensions: [orders.created_quarter]
If enable_dashboard_agent is set to true and no default_dashboard_agent
is specified, users can still chat with the dashboard; the agent will run
without custom instructions.
Test LookML dashboard agents in Development Mode
LookML developers can iteratively modify agent instructions and test responses directly in the Looker UI before deploying changes to production.
To test a LookML dashboard agent in Development Mode:
- Turn on Development Mode.
- Edit the agent
instructionsor settings in your LookML file and save your changes. - Open the LookML dashboard in the Looker UI.
- Select spark Chat with this dashboard to open the chat panel.
- Ask questions to test how the agent interprets and responds to your prompts.
When Development Mode is turned on, Conversational Analytics references the in-memory agent definition, LookML dashboard definition, and model files from your development branch. When you turn Development Mode off, Conversational Analytics reverts to referencing the deployed definitions from the production branch.
Conversation history created during Development Mode is persisted and visible in your recent conversations list across sessions.
Copy dashboard agent LookML from user-defined dashboards
If you prototype a dashboard as a user-defined dashboard in the UI, you can export its complete configuration—including the dashboard agent settings and instructions—into LookML code.
To copy LookML from a user-defined dashboard:
- Open the user-defined dashboard.
- Select the three-dot more_vert Dashboard actions menu, and then select Get LookML.
- In the Get LookML dialog, copy the generated dashboard LookML and the dashboard agent definition code.
- Paste the dashboard LookML into a
.dashboard.lookmlfile, and paste theagentblock into your model or agent LookML file.
The exported LookML preserves the state of the Enable chat with dashboard
toggle by using the enable_dashboard_agent parameter and copies any custom agent
instructions.
View agent details in the Looker UI
When viewing a LookML dashboard with an active dashboard agent, you can inspect the agent configuration from the chat panel:
- Select spark Chat with this dashboard.
- Select tune Manage agent.
For LookML dashboards, the Manage agent panel displays agent instructions, Advanced Analytics status, and debug options in read-only mode. Settings cannot be edited directly within the UI.
To edit the configuration, developers with the develop permission on the
underlying models can click Edit in LookML to navigate directly to the
relevant LookML file in the IDE.
Query a LookML dashboard with a dashboard agent
To start a conversation with a LookML dashboard agent:
- Open the LookML dashboard.
- Select spark Chat with this dashboard.
- In the Ask a question field, enter your query in natural language.
- If
show_thinkingis allowed for your dashboard agent, you can choose a question mode:- Fast: Quickly translates your query into direct LookML metric lookups.
- Thinking: Evaluates complex analytical questions and displays step-by-step reasoning.
- Click send Send.
To cancel a query in progress, click Stop response.
Manage conversations
- Recent conversations: To open previous conversations, select more_vert Menu > Recent conversations.
- Rename a conversation: Select more_vert next to a conversation and select edit Rename.
- Delete a conversation: Select more_vert next to a conversation and select delete Delete.
Related resources
- Conversational Analytics in Looker overview: The landing page for Conversational Analytics in Looker.
- Query a user-defined dashboard with a dashboard agent: Configure and query dashboard data agents on user-defined dashboards.
- Building LookML dashboards: Create and manage version-controlled dashboards using LookML.
- LookML dashboard parameters: Reference documentation for all LookML dashboard parameters.
agentparameter: Reference documentation for the LookMLagentparameter.- Best practices for configuring Conversational Analytics in Looker: Guidance on writing high-quality instructions and optimizing data agents.