The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Apply review feedback to Metabot query execution copy (#85594)
Chris Truterdf6b38c87a65
diff --git a/docs/ai/privacy.md b/docs/ai/privacy.mdindex 7c032634d4b..0a8f6f0cf4a 100644--- a/docs/ai/privacy.md+++ b/docs/ai/privacy.md@@ -21,11 +21,15 @@ When using the Metabase AI service, the data we send includes:How Metabase the company processes this data is covered by your agreement with Metabase. Only Metabase Cloud customers have access to the Metabase AI Service.-## Metabot sends query results to the AI provider when it runs queries+## By default, Metabot sends query results to the AI providerWhen query execution is on, Metabot can run queries and read their results, so it can answer with actual values from your data. Metabase sends those results to the AI provider.-Metabot can run queries on your behalf, like the queries it builds or the question you're looking at. These can include SQL queries.+Metabot can run queries on your behalf, including ones it wrote itself, the one you're looking at, and saved questions you can access.++These can be query builder or SQL queries, but admins can disable SQL for Metabot.++Admins can prevent Metabot from reading query results in [AI settings](./settings.md#allow-metabot-to-read-query-results).For each query Metabot runs, Metabase sends part of the result to the AI provider, like the column names and a limited number of rows. Metabot can run many queries in one conversation.@@ -43,14 +47,6 @@ On Pro and Enterprise plans, admins can review stored conversations, including qBy default, your Metabase instance keeps stored conversations for a limited time. On self-hosted Metabase, you can change how long with [`MB_AI_USAGE_MAX_RETENTION_DAYS`](../configuring-metabase/environment-variables.md#mb_ai_usage_max_retention_days).-### Turn query execution on or off--Query execution is on by default. Admins can turn it off in [AI settings](./settings.md#query-execution).--When query execution is off, Metabot doesn't run queries to read their results, but it can still build queries and charts for you. Other features on this page, like chart analysis, can still send values from your data.--Metabot in Slack doesn't read query results, regardless of this setting.-## Data sent to your own AI providerIf you're using your own API key, everything listed above is sent to your selected AI provider, including query results when Metabot can run queries. Your provider's data handling, retention, and privacy policies apply to that data. Query execution is on by default, so review them before people start using Metabot, or turn query execution off until you have.diff --git a/docs/ai/settings.md b/docs/ai/settings.mdindex 49dcbfc4b07..8c5709927e5 100644--- a/docs/ai/settings.md+++ b/docs/ai/settings.md@@ -136,15 +136,19 @@ When enabled, Metabot is available to help people create questions, analyze dataToggling off Metabot only turns off in-app Metabot features. People can still use the [MCP server](./mcp.md) and [Agent API](./agent-api.md) if those are enabled.-### Query execution+### Allow Metabot to read query results_Internal tab._-Toggle query execution on or off. It's on by default, and the toggle is hidden while Metabot is off. With query execution on, Metabot can answer questions with values from your data. When it's off, Metabot can still build queries and charts, but it can't read their results.+This setting determines whether Metabot can run queries and read their _results_, so Metabot can answer questions about values in the results.-Metabot runs queries with the permissions of the person asking, and sends the result rows to your AI provider. See [AI privacy](./privacy.md#metabot-sends-query-results-to-the-ai-provider-when-it-runs-queries).+Metabot runs queries with the permissions of the person asking, and may send the result rows to your AI provider in order to respond to a prompt.-This setting doesn't apply to Metabot in Slack or in embedded apps.+When this setting is off, Metabot can still build queries and charts for you, but it can't read their results.++Metabot in Slack and in embedded apps doesn't read query results, regardless of this setting.++See [AI privacy](./privacy.md#by-default-metabot-sends-query-results-to-the-ai-provider).If [`MB_METABOT_QUERY_EXECUTION_ENABLED`](../configuring-metabase/environment-variables.md#mb_metabot_query_execution_enabled) is set, the toggle shows its value and is locked.diff --git a/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx b/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsxindex 484c6be4714..6279ef6ccdb 100644--- a/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx+++ b/frontend/src/metabase/admin/ai/MetabotSettingsPanel.tsx@@ -90,10 +90,10 @@ function MetabotQueryExecutionToggle() {<Box><SettingHeaderid="metabot-query-execution"- title={t`Query execution`}+ title={t`Allow Metabot to read query results`}description={<span id={descriptionId}>- {t`Metabot can run queries and read their results to answer questions, using the permissions of the person asking. The result rows are sent to your AI provider. This doesn't apply to Metabot in Slack or in embedded apps.`}+ {t`Metabot can run queries and read their results to answer questions, using the permissions of the person asking. The result rows are sent to your AI provider. Metabot in Slack and in embedded apps doesn't read query results, regardless of this setting.`}</span>}/>