Set up Insight AI
Insight AI runs on your organization's own AI provider account: Anthropic (Claude), OpenAI, Google (Gemini) or any OpenAI-compatible service such as Groq. An admin sets it up once, in about five minutes.
Before you start
- An API key from your AI provider, and the name of the model you want to use.
- The Configure Insight AI permission (admins have it) and a plan that includes AI services.
- Some data to ask about: a connection and, ideally, a few datasets.
Turn on Insight AI
Open the AI settings
Go to Settings → Integrations & Services. On the AI & LLM Services card, choose Configure.
Store your key
Under Select AI Provider, pick Claude AI (Anthropic), OpenAI, Gemini AI or Groq AI, and paste the key into its key field. Keys are encrypted when saved and never shown again.
Switch on the assistant
Turn on Insight AI assistant. More settings appear: choose the Provider Insight AI should use and enter the Model (see below).
Save
Choose Close. Changes in the dialog are staged until you choose Save Changes at the top of the settings page.
Open Insight AI in the sidebar. Until a model is configured it says No model is configured yet; once it's set up you'll see suggested questions. Next: Ask Insight AI questions.
Provider and model settings
| Provider | Model | Also set |
|---|---|---|
| Anthropic (Claude) | Optional. Leave empty for the default Claude model, or enter a model id. | An Anthropic workspace ID, only if your key is an organization-level key. |
| OpenAI | Required, for example a GPT model id from your OpenAI account. | Nothing else. |
| Google (Gemini) | Required, for example gemini-2.5-flash. | Nothing else: DataViz knows Gemini's address. |
| OpenAI-compatible endpoint | Required: the model name your service uses. | The Base URL, such as https://api.groq.com/openai/v1 for Groq, and the service's key in API key override. |
- API key override
- Optional. A key used only by Insight AI, instead of the provider key stored above. Needed for an OpenAI-compatible service such as Groq, Azure OpenAI, OpenRouter or a self-hosted model.
Raw SQL access
Most questions are answered from datasets, where row and column security are applied. For questions datasets can't answer, Insight AI can write SQL against the connection directly. This setting decides when it may:
- Allow, except where row-level security applies
- The default. Raw SQL is refused on any connection where a row rule covers the person asking.
- Always allow
- Raw SQL everywhere. Like SQL Lab, raw SQL bypasses row-level security, so use this only if nobody's access is limited by row rules.
- Never — datasets only
- Answers come only from datasets.
An answer built on raw SQL is marked Unfiltered query, so people know row security wasn't applied.
How answers are produced
- Explore — the assistant picks its own tools
- The default. The assistant decides step by step what to look up and query. Best for open-ended questions.
- Plan first — far fewer requests
- The assistant plans the query, DataViz checks and runs it, and the assistant writes the answer: usually two requests to your provider. Cheaper and faster; when a question doesn't fit a plan, it falls back to exploring.
Who can use it
- Use Insight AI
- The permission to ask questions. Give it to the roles that should have the assistant.
- Configure Insight AI
- The permission to change these settings.
The assistant reaches only what the person asking may already see: the same datasets, the same row and column rules. See Members and roles.
What is sent to the AI provider
To answer a question, DataViz sends the question, the descriptions of the relevant tables, columns and datasets, and the query results the answer needs to the provider you configured, under that provider's terms. It never sends rows that row and column-level security hide from the person asking, and columns marked as personal data aren't sampled.
What the assistant knows up front
At the start of a chat, DataViz gives the assistant a short summary of your workspace: documented tables, datasets and verified answers. The Knows button in a chat shows what it was given. Describing your data well is the biggest single improvement you can make: see Teach Insight AI your data.
Turn it off
Switch off Insight AI assistant in the same dialog, or switch off Insight AI for the whole workspace under Workspace features. Nothing is deleted: conversations come back when it's turned on again.