Embedding Metabot AI chat in your product: what it does and when to use it
A product team that wants customers to ask natural language questions inside their app, without writing SQL, can use Metabase's embedded AI chat, but only on the Pro and Enterprise plans. The component builds query builder questions on top of metrics, models, saved questions or tables that already exist in your Metabase. It does not write SQL and it does not build dashboards. If your customers need a question that no existing metric or table can answer, the chat will not produce it, so the answer to that question is to model the data first. Before scoping the feature, confirm the current embedded AI chat limits in Metabase's embedding documentation, since the feature set is the basis for every later decision.
The fit is strongest when your data is already modeled for business users and the questions are routine: filtering a customer's own orders, counting open tickets by status, or comparing usage over a date range. Each tenant's questions should resolve to content inside a single collection with its own permissions, so the chat sees only what that tenant is allowed to see. The embedded AI chat requires SSO-authenticated embeds, which means your identity provider must be able to pass tenant and group attributes into Metabase. Confirm that your identity provider and SSO setup meet the requirement before committing to the design. If you only need fixed charts or a few filters, a static or modular embed with dashboards you control is simpler to review. Guest embeds work on every plan, including open source, but they are not a substitute for the SSO path that the AI chat requires.
Plan the rollout around two checks. First, test that a tenant's chat session cannot reach another tenant's collection, models or saved questions, using accounts from at least two tenants. Second, ask what usage limits you will set per tenant, because a chat feature that customers can call repeatedly creates warehouse query load and cost that your team, not the customer, will carry. Metabase's usage analytics and auditing, which also sit on the Pro and Enterprise plans, help you see that load. Your own engineers or a partner will do this work, and the quote should list the SSO integration, collection and permission design, tenant testing and any usage controls as separate items so you can see which parts recur after launch.
How a customer question moves from your app to Metabase
The journey starts with a signed-in customer in your application, whose identity provider issues the SSO identity that the embed relies on. Your embedding app server hands the request to Metabase, where Metabot works only on the metrics, models, saved questions and tables inside the collection you scoped to that tenant. Metabase then queries your warehouse through those existing definitions. Check that the SSO attributes you pass identify the tenant correctly, and that the trust boundary sits where you expect.
Customer question path from your app through SSO and a tenant-scoped Metabase collection to the warehouse.
Embedding options and which plan each needs
This table compares Metabase's embedding options against the requirements for the embedded AI chat. Read the rows from top to bottom to see which embed types work on Open Source and which need SSO, which means a Pro or Enterprise plan. For Metabot AI chat in a customer-facing app, the decisive row is the SSO requirement.
| Embedding option | Plan required | Can host embedded AI chat | Notes for this decision |
|---|---|---|---|
| Guest embeds | Open Source and above | No | Guest authentication works on all plans, but the AI chat needs SSO-authenticated embeds, so guest embeds cannot host it. |
| Public links | Open Source and above | No | Public links are unauthenticated and unsuitable for per-tenant data or AI chat. |
| Static embedding | Open Source and above | No | Deprecated by Metabase, and it does not provide the SSO-authenticated session the AI chat requires. |
| Modular embedding with SSO | Pro or Enterprise | Yes | Requires SSO-based embedding. Confirm the AI chat component is available in your chosen modular embed setup. |
| Full app embedding with SSO | Pro or Enterprise | Yes | Embeds the full Metabase interface. Consider how much of it your customers should see. |
| Pro plan price (reference) | Pro | Not applicable | Pro is $575 per month, or $517.50 per month billed yearly, with the first 10 users included, per Metabase's pricing page. Confirm current pricing with Metabase. |
Setting up the embedded AI chat for a tenant-aware product
This sequence takes a self-hosted Metabase from plan check to a tested embedded AI chat in which each tenant's users can ask questions only about the data their tenant is allowed to see. The result is an embed that has been checked for isolation before any customer uses it.
Confirm the plan and embedding scope
Confirm with Metabase's pricing page that the plan you intend to run includes SSO and the AI chat embed, since the embedded AI chat requires SSO-authenticated embeds and the Pro or Enterprise plans carry SSO. Decide which product screens will host the chat and which tenant identifiers your application will pass. Your team owns this decision, and a partner can help document it. Done means a written note listing the plan, the embed locations and the tenant identifier format, approved by the product owner and the security lead.
Connect the identity provider for SSO embeds
Connect your identity provider to Metabase using JWT, OIDC or SAML, depending on what your application already issues. Your identity or platform team configures the provider, and the embedding application signs in its own users and hands Metabase a signed identity that carries the tenant claim. Check that a test user signing in through the embed reaches Metabase as the expected user, with the expected group membership, and that a user without a valid token is refused.
Build the collection with permitted metrics and models
Create a dedicated collection that holds only the metrics, models, saved questions and tables that tenants may query, and set permissions so that the embedding group can read that collection and nothing outside it. The AI chat builds query builder questions on these existing objects, so the quality of the answers depends on how well these objects are named and described. Check by signing in as a test user in the embedding group and confirming that the chat's visible objects match the collection contents and nothing else.
Map tenant boundaries to data access
Decide how each tenant's rows are separated, for example through row-level permissions or by using separate data sources or filtered models, and implement the choice in the collection's underlying objects. Tenant isolation must hold at the data layer, not only in the interface. Confirm the design by running the same question as two users from different tenants and checking that each result contains only that tenant's rows.
Configure the embed and its signed parameters
Configure the embed so that the tenant identifier and any other fixed parameters are signed by your application and cannot be altered in the browser. Set the embed to use the collection you built and confirm that parameters a user could change do not override the tenant filter. Test by attempting to modify the tenant value in a request and confirming that Metabase rejects the change or returns only the signed tenant's data.
Enable the AI chat and set its boundaries
Turn on the AI chat for the embed and confirm the boundaries you documented. The chat will not write SQL or build dashboards, so tell tenant users what it can answer and test one question that falls outside those limits to confirm the response is a refusal or a redirect, not a generated query. Record the usage limits you intend to apply per tenant and confirm with Metabase's current documentation how those limits are configured in your version.
Test isolation with two tenants
Create two test tenants with separate test users, populate each with distinct sample data, and run the same questions from both accounts through the embed. Confirm that each user sees only their own collection contents and only their own tenant's rows, and that a user from one tenant cannot reach the other's data by editing identifiers. Record the results and have a security reviewer sign off. The sequence is complete when both tenants pass every check and the evidence is stored with your release records.
Scoping the chat to a collection and keeping tenants apart
The collection is the main boundary for what Metabot can answer from in an embedded chat. The chat builds query builder questions on existing metrics, models, saved questions or tables, so the practical question is which of those objects sit in the collection you expose to the embed. Put only the metrics, models and saved questions a tenant should see into that collection, and keep raw tables for other purposes out of its reach. Before going live, confirm with the Metabase docs for embedding AI chat which object types the component can draw on in your version, because a table that is visible to the embed identity can become a source of answers even if nobody curated it.
Collection permissions do not work alone. The embed runs as an SSO-authenticated user or group, and what that identity can read at the data level still governs the results. A collection can look tightly scoped while the underlying database permissions let the same identity query broader tables, so review both layers together. Row and column level permissions and multi-tenant data segregation are features of the Pro and Enterprise plans only, according to the Metabase pricing page. If your design relies on one tenant never seeing another tenant's rows, that requirement points to a paid plan, and the cost of that plan belongs in the quote.
Whatever design you choose, confirm tenant isolation in a test environment before any customer data is loaded. Create two test tenants with distinct rows, log in as each through the embed, and ask Metabot questions that would expose the other tenant's data, including questions phrased to reach past the collection. Check the generated queries as well as the answers, and repeat the test after every change to groups, collection permissions or data sandboxing. Record the result as evidence, since your customers' security reviewers will ask how isolation is achieved and you should be able to show it rather than describe it from memory.
Security and operational considerations for customer-facing AI chat
Customer-facing AI chat puts Metabase in front of people outside your organization, so the identity, data, audit, key and upgrade decisions made for embedded analytics now carry AI traffic as well. The cards below cover what to settle before launch and what to re-check on every upgrade.
SSO and session handling for external users
The embedded AI chat component requires SSO-authenticated embeds on Pro or Enterprise, so every external user must arrive with an identity your application vouches for. Confirm how your application issues the signed identity, how long a Metabase session lasts, and what happens when a customer's account is disabled on your side. Test that a user removed from your product cannot keep asking questions through a cached session.
Embed AI chat docsData exposure through query results
Chat answers are built from the metrics, models, saved questions and tables you expose, and the rows returned still come from your warehouse. Permissions decide what a tenant can reach, so review group data access and collection scope before launch. Ask your team to trace one question end to end: which database is queried, which rows are returned, and whether those rows could include another tenant's data.
Audit and usage analytics on Pro or Enterprise
Usage analytics and auditing are included only on the Pro and Enterprise plans, so an Open Source or Starter deployment has no built-in record of who asked what. Decide what your security and compliance teams need to see, such as question volume per tenant and access by external users, and confirm the plan covers it. Ask the vendor which activity is logged and how long those logs are kept.
Secrets and signing keys for embeds
Embedded sessions depend on signing material and the Metabase secret key, and anyone holding those values can generate an authenticated embed. Store them in a secrets manager, restrict who can read them, and plan rotation with your release process. Document which keys sign identity tokens, which protect encrypted database credentials, and how each is replaced without breaking live customer sessions.
Upgrade planning for the Metabase version in use
Metabase upgrades run application database migrations automatically, so a customer-facing instance needs a tested window, a backup taken first, and a rollback path. Major upgrades may require reducing a cluster to a single node because of a migration lock. Check the version support page before choosing a release, and test AI chat behavior on a staging copy because feature changes can reach embedded users directly.
- LTS support window
- 14 months
AI provider data path
Questions typed by external users are sent to the AI provider configured for Metabot, so the provider, its region, its data retention terms and its network route determine what leaves your environment. Treat this as a separate review from the embed itself. The sibling topics on connecting your own provider, running a self-hosted model with vLLM, and using Amazon Bedrock or Azure cover the configuration for each option.
Questions teams ask before embedding Metabot in a product
What does it cost to embed Metabot AI chat in a product?
Expect costs in three places: the Metabase plan, the people doing the integration work, and the model provider you pay for AI usage. The embedded AI chat component requires SSO-authenticated embeds, which the Metabase pricing page lists only on Pro and Enterprise plans. Pro is listed at $575 per month or $517.50 per month billed yearly, with the first 10 users included, and Enterprise is priced by quote starting at $20,000 per year. Those plan fees recur, while identity integration, data modeling and testing are usually one-time work. Ask any quote to separate the one-time build from the recurring support and retainer, and to state which plan it assumes.
What drives the cost of an embedded AI chat project up or down?
The main drivers are the number of identity providers and tenant rules, how much of your data is already modeled, and how much testing you need. A single identity provider with one tenant model is simpler than several providers with per-customer groups. Teams with clean models, saved questions and collections that map to customer scopes need less modeling work. Tenant isolation testing, usage limit verification and review of the chat boundaries add effort. Ask for the quote to list each of these as a separate line item so you can see which choices move the price.
How long does it take to set up embedded Metabot chat?
Duration depends mainly on how ready your identity provider, data models and tenant rules already are. Metabot in an embed can only answer questions built on existing metrics, models, saved questions or tables, so the data model work usually sets the pace. A team with an existing SSO integration and documented collections can move faster than one that must design tenant scopes from scratch. Procurement, security review and any Metabase plan change also add elapsed time. Your written scope should state a timeline and the assumptions behind it.
What must our team provide before the work starts?
You need to provide access to your identity provider, a test tenant setup, the data models or saved questions Metabot will rely on, and written tenant rules. Identity provider access should include the ability to configure the SSO protocol and map groups or attributes that carry tenant identity. Data owners must confirm which tables and metrics each customer may see, because the chat will not write SQL or build dashboards and cannot be relied on to enforce boundaries you have not defined. Name a product owner who can approve scope and a security contact who can review the findings.
Can our internal team embed Metabot in the product on its own?
An internal team with Metabase, identity and data modeling experience can often build the core embed without a partner, provided it has the plan and time. The harder parts are tenant isolation, SSO group mapping and testing that one customer cannot reach another customer's collection or data. Those tasks need engineers who have done similar multi-tenant work and who can review the results independently. A partner can take on that scope under a fixed written plan, or review your build. Decide based on the skills you hold, the deadline and who signs off on the security evidence.
What should we confirm about per-tenant usage limits before committing?
Confirm what usage controls exist for each tenant before you commit to a per-customer offer. Ask Metabase which usage analytics and auditing features apply to your plan, since the pricing page lists usage analytics and auditing only on Pro and Enterprise. Ask whether limits can be set per tenant or only per group, how the model provider bills tokens, and how you would stop one tenant from driving costs for others. Get those answers in writing from the vendor and test them in your environment before you publish the feature to customers.
Which parts of the embedded AI chat will not work as customers might expect?
The embedded chat builds query builder questions on existing metrics, models, saved questions or tables. It does not write SQL and does not build dashboards, so customers who expect either will be disappointed. Questions outside your modeled data will also return weaker results. Set expectations in product copy and test the most common customer questions before launch. Confirm these limits against the current Metabase embedded AI chat documentation for your version.
How does SSO affect the security of an embedded Metabot chat?
SSO-authenticated embeds tie each chat session to an identity your identity provider has verified, which is the basis for applying each customer's permissions. Guest authentication works on all plans, but SSO-based embedding requires Pro or Enterprise, so the choice of identity model drives both licensing and security design. Verify that group or attribute claims arrive as expected, that sessions expire, and that a user from one tenant cannot change the scope in the request. Compliance teams will want this control documented and tested.
How DeployOpen scopes and delivers embedded Metabot
DeployOpen plans, implements and hardens self-hosted Metabase inside your own infrastructure, including the SSO-authenticated embed that Metabot chat depends on. We start from the written scope, confirm the plan and identity requirements before any build, and hand over documentation your product and security teams can review.
How we scope
- We confirm your Metabase plan against the SSO and embedding requirements before committing to a build.
- We define which collection, models and saved questions Metabot may query for each embedded tenant.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We configure SSO-authenticated embedding and map each customer tenant to its scoped collection.
- We set per-tenant usage limits and test that Metabot cannot reach data outside the agreed scope.
- We run security testing on the embed, including attempts to widen access through prompts or parameters.
How we hand over
- We document the embed architecture, tenant mapping, permission model and usage limit settings.
- We deliver a test record showing which questions were in scope and which requests were refused.
- We walk your engineering and security teams through operations, so they can review the setup independently.
How we support
- Ongoing support, Metabase upgrades and continuous testing are available as retainers.
- Upgrades are planned with application database backups and tested against the embedded AI chat setup.
- Retainer scope is agreed in writing, so your team knows which changes and retests are covered.

