Documentation Index
Fetch the complete documentation index at: https://mintlify.com/metabase/metabase/llms.txt
Use this file to discover all available pages before exploring further.
Metabot is only available as an add-on on Metabase Cloud.
Set up Metabot
Before using Metabot, you’ll need to configure it in your Metabase instance.Add Metabot from the Metabase Store
- Go to store.metabase.com
- Log in with your Metabase Store account
- In the Instances tab, find your instance and click Add Metabot AI
- Select a plan based on your expected request volume
- Read and accept the terms of service
A “request” is any message sent to Metabot. Multiple messages in the same chat session count as separate requests.
Configure Metabot settings
Once added from the Store, log into your Metabase and navigate to Admin > AI to configure Metabot settings. See Metabot settings for configuration options.
What Metabot can do
Metabot can help you:- AI exploration - Start new conversations when you don’t already have a chart or query
- Create charts - Build visualizations using the query builder from natural language queries
- Generate SQL - Write SQL queries in the native editor from natural language prompts
- Inline SQL editing - Edit SQL directly without using the chat sidebar
- Analyze charts - Get insights from existing visualizations
- Fix SQL errors - Automatically correct errors in SQL code
- Answer questions - Get help from Metabase documentation
Like all generative AI, you should always double-check Metabot’s results.
The Metabot chat sidebar
There are multiple ways to start a chat with Metabot:- Type Cmd+E on Mac or Ctrl+E on Windows to open the chat sidebar
- Click the Metabot icon in the top right
Tips for using Metabot
- Provide context - If you know the table or fields you want to query, tell Metabot
- Reset when needed - When you want Metabot to do something completely different, reset the conversation to avoid confusion from irrelevant historical context
- Follow up and refine - Once Metabot creates a question, you can ask follow-up questions or take over yourself by drilling through the chart or tweaking the query in the editor
- Use English - Metabot works best with English prompts for the most reliable results
- Define terminology - Add domain-specific terms to the glossary to help Metabot understand your organization’s terminology
Metabot response menu
Hover over Metabot’s responses to:- Copy the response text
- Give feedback with thumbs-up/thumbs-down
- Re-run the prompt (useful if you’ve updated the chart or want a different response)
AI exploration
Use AI exploration to start a new conversation with Metabot when you don’t already have a chart, question, or query to work from.
When answering questions in AI exploration, Metabot searches a limited set of content instead of your entire Metabase. Admins can set a Collection for natural language querying to scope AI exploration to a specific collection and its subcollections.
You can still refer to content outside the scoped collection by explicitly @-mentioning it in your prompt.
Analyze charts with Metabot
When viewing a question, click the Metabot icon in the upper right to analyze a visualization. You can also open the command palette to tell Metabot to analyze the chart. When viewing a table of results, Metabase won’t display the Metabot button, but you can open the chat to ask Metabot to analyze the table, and it will produce an X-ray of the results. You can also ask Metabot to tell you about specific tables in your database.How Metabot uses the query builder
When you ask Metabot to create a chart from natural language, it first looks for existing questions that might answer your request. If it finds a relevant question, it’ll point you to that instead of creating something new. Otherwise, Metabot will use the query builder to create a new chart.Metabot can only handle basic query builder operations and lacks access to custom expressions. It’s also limited to single-level aggregation and grouping. For more complex analysis, take over and refine the query yourself, or switch to the SQL editor.
Generate SQL in the native editor
To have Metabot generate SQL for you:
Metabot will generate the SQL for you, but it won’t run the query automatically. This gives you a chance to inspect the code before executing it.
If you don’t specify a table in your natural language question, Metabot will only check the first 100 tables in the currently selected database. For tables beyond the first 100, specify them explicitly or Metabot may hallucinate table names.
Inline SQL editing
You can ask Metabot to generate or edit code in the SQL editor without using the chat sidebar:
Once you start typing or editing your SQL, you can continue using the keyboard shortcut to refine your code.
Fix SQL query errors
When you get an error in a SQL query, you can click the Have Metabot fix it button, and Metabot will attempt to correct the query. You can also ask Metabot to fix your SQL in the chat.Navigating after Metabot creates a chart
If Metabot creates a query or takes you to a new item but you want to return to the previous screen, use your browser’s back button. You can also save any chart that Metabot creates to a dashboard or collection.Giving feedback on Metabot responses
When you hover over Metabot’s responses, you’ll see options to give feedback. Both thumbs up and thumbs down are helpful. If you give a thumbs down, you can optionally provide more details with an issue type:- UI bug
- Took incorrect actions
- Overall refusal
- Did not follow request
- Not factually correct
- Incomplete response
- Other
When you submit feedback, the form may contain sensitive data from your conversation.
Privacy and data usage
Metabot has intentionally limited capabilities:- Cannot access API keys
- Cannot create assets
- Cannot write data
- Cannot send your data outside of your Metabase
What Metabot can see
Metabot has access to:- Metadata - Table, Question, Model, Dashboard, and Metric structure and configuration
- Sample field values - To understand how data is stored (e.g., “WI” vs “Wisconsin”)
- Timeseries data - For chart analysis, depending on the chart type
Your questions and conversations remain private to your Metabase unless you submit feedback. We collect some metadata to gauge and improve usage, but we don’t collect or store prompts unless you submit feedback.
Permissions
Metabot inherits the permissions of the current user. Whenever someone uses Metabot, it can only see what that person has permissions to see and do. To restrict what data Metabot can access for each person, apply data and collection permissions to their groups normally, and those permissions will apply to their use of Metabot as well.Viewing Metabot usage
To see how many Metabot requests have been made this month:- Navigate to Admin > Settings > License
- Log in to the Metabase Store if prompted
- View the Metabot AI requests used, this month (updated daily) field