Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. Install
  2. Replace the stock resolver
  3. When to pass apiRef
  4. What it adds
  5. The current view
  6. Checked answers
  7. One question at a time
  8. Limits
  9. What leaves the browser
  10. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Using the helper

On this page

  1. Install
  2. Replace the stock resolver
  3. When to pass apiRef
  4. What it adds
  5. The current view
  6. Checked answers
  7. One question at a time
  8. Limits
  9. What leaves the browser
  10. Next

@gridsay/mui-x-data-grid gives you createPromptResolver, which replaces MUI's stock resolver as the grid's onPrompt. It tells Gridsay what your grid looks like now and what it allows, and checks every answer before the grid applies it.

It works behind your own server route and from the browser with a publishable key. It is MIT licensed, and its only dependency is @gridsay/core.

Install#

Shell
npm install @gridsay/mui-x-data-grid

It needs @mui/x-data-grid-premium 9.18 or a later 9.x release, and your own MUI X Premium licence. Other major versions are not tested.

Replace the stock resolver#

Behind the route from the quickstart, the grid's component changes: onPrompt moves inside it and comes from createPromptResolver, kept between renders with useMemo, and the grid gets an apiRef from useGridApiRef(). The whole component:

TSX
'use client'; import { createPromptResolver } from '@gridsay/mui-x-data-grid';import {  DataGridPremium,  type DataGridPremiumProps,  GridAiAssistantPanel,  useGridApiRef,} from '@mui/x-data-grid-premium';import { useMemo } from 'react'; type Props = Pick<DataGridPremiumProps, 'rows' | 'columns'>; export function OrdersGrid({ rows, columns }: Props) {  const apiRef = useGridApiRef();  const onPrompt = useMemo(    () => createPromptResolver({ url: '/api/ai-assistant', apiRef }),    [apiRef],  );   return (    <DataGridPremium      apiRef={apiRef}      rows={rows}      columns={columns}      aiAssistant      onPrompt={onPrompt}      slots={{ aiAssistantPanel: GridAiAssistantPanel }}      showToolbar    />  );}

The route stays as it is: the helper posts the same body MUI's resolver posts, with one more field, grid. To call Gridsay from the browser instead, pass the gateway's full prompt URL with a publishableKey and getToken: see From the browser.

When to pass apiRef#

Pass the grid's apiRef, the same one you give DataGridPremium, whenever you can. Without it the helper still checks answers and turns failures into readable sentences, but it cannot describe your grid or adapt answers to it.

Create one resolver per grid and keep it between renders, as useMemo does above. The resolver keeps the queue of questions for its grid.

What it adds#

MUI's stock resolvercreatePromptResolver with apiRef
What Gridsay seesMUI's stock resolverThe question and your column definitionscreatePromptResolver with apiRefAlso the features you switched off, each column's limits, option labels, and the current filters, sorting, grouping, totals and pivot
Changes made by handMUI's stock resolverUnknown: a follow-up builds on the last answercreatePromptResolver with apiRefSeen: a follow-up builds on what the grid shows now
A feature your grid has switched offMUI's stock resolverGridsay does not know the switch, so an answer can ask for itcreatePromptResolver with apiRefThe question is declined with a sentence
A malformed or cut-off answerMUI's stock resolverNot checked by Gridsay; the user can see a browser errorcreatePromptResolver with apiRefRefused before the grid changes; the user reads a short sentence
A question typed while one is runningMUI's stock resolverSent at oncecreatePromptResolver with apiRefWaits for the previous answer, so a follow-up builds on it
"Top 5 by rating"MUI's stock resolverCan fail when fewer rows exist than asked for, or they span pagescreatePromptResolver with apiRefSelects the rows that exist after filtering and sorting, across pages
Sorting a grouped columnMUI's stock resolverSorts the column; group headers keep their ordercreatePromptResolver with apiRefReorders the groups
Leaving pivot modeMUI's stock resolverThe grouping and totals from before the pivot can come backcreatePromptResolver with apiRefThe new answer is what stays
A chart follow-upMUI's stock resolverThe chart can bring back an older aggregationcreatePromptResolver with apiRefKeeps the aggregation the answer asked for

The current view#

With apiRef, each question carries the grid's current view. Gridsay uses it, not the conversation's last answer, as the starting point. If the user removed a filter by hand, "now sort by salary" sorts without bringing the filter back. The view is sent even in private mode, where no conversation is kept.

Checked answers#

The helper reads every response before the grid sees it. An answer with a missing field, a wrong type, an incomplete pivot or an aggregation function the grid does not have is rejected, and the grid stays as it was. The user reads a short sentence; you get a code: see Refusals and errors.

One question at a time#

A question sent while another is running waits for the answer, and for the helper's own changes to the grid, before it is sent. A question typed before the first answer of a new conversation joins that conversation.

Limits#

  • Grid-wide switches such as disableRowGrouping, rowSelection and dataSource are not in MUI's public API. The helper reads them from the grid's internal props, tested with 9.18. If a later version moves them, the helper treats every feature as switched on.
  • With a dataSource, "top N" selects at most the rows of the loaded page.
  • In single grouping-column mode, all group levels share one sort direction: the first grouped column in the sort decides it.
  • While leaving pivot mode, the grid shows its pre-pivot view for a moment before the answer lands.
  • The view leaves out quick-filter text, filter values that are not text, numbers, booleans or dates, aggregation functions other than sum, avg, min, max and size, and option lists computed from a row.
  • The helper cannot create, remove or change the type of a chart: it fills the chart that is open.
  • Requests use the browser's default credentials mode: cookies go only to your own origin. For a route on another origin, send credentials with headers or getToken.

What leaves the browser#

The question, your column definitions and, with apiRef, the switches, column limits, option lists and the current filters, sorting, grouping, totals and pivot. Current filter values and option labels can contain your data. No whole rows are sent; example values from your rows go only if you turn on allowAiAssistantDataSampling or write them into your columns.

Next#

  • Reference
  • Follow-up questions
  • Filtering