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. Ask a follow-up
  2. What is kept
  3. Who can continue a conversation
  4. How long
  5. What ends a conversation
  6. Long conversations
  7. Errors
  8. 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

Follow-up questions

On this page

  1. Ask a follow-up
  2. What is kept
  3. Who can continue a conversation
  4. How long
  5. What ends a conversation
  6. Long conversations
  7. Errors
  8. Next

A follow-up such as "now sort them by salary" builds on the earlier answers. Send the conversationId of the last answer with the next question; the table packages do this for you.

Ask a follow-up#

  1. Ask the first question without a conversationId. The answer's data.conversationId names a new conversation.
  2. Send that id with the next question, together with the columns and the table's current view, read from the table just before you ask.
  3. Keep the id from each answer.
JavaScript
// On your server. `conversationId` is the last answer's; `context` is your columns.const key = process.env.GRIDSAY_SECRET_KEY;if (!key || !(key.startsWith('sk_gs_') || key.startsWith('sk_ayt_'))) throw new Error('Set GRIDSAY_SECRET_KEY to a secret key.'); // What the table shows now, read from the table just before asking: the user may have changed// it by hand since the last answer. filterOperator too: without it, the filters combine with and.const view = readTableView(); // yours: { filters, filterOperator, sorting, grouping, aggregation, pivoting } const response = await fetch('https://api.gridsay.com/api/v1/datagrid/prompt', {  method: 'POST',  headers: { 'Content-Type': 'application/json', 'x-api-key': key },  body: JSON.stringify({    query: 'now sort them by salary, highest first',    context,    conversationId,    grid: {      state: {        filters: view.filters,        filterOperator: view.filterOperator,        sorting: view.sorting,        grouping: view.grouping,        aggregation: view.aggregation,        pivoting: view.pivoting,      },    },  }),  redirect: 'error',});

Send the view the table shows now, not the last answer: your user may have changed the table by hand, and the current view wins over the conversation. On the Data Grid endpoint, send it as grid.state with all its parts, filterOperator included: a view sent without filterOperator reaches the model as and, so an or filter would come back narrower. The TanStack Table plugin sends the view for you; the MUI X helper does when you give it apiRef.

What is kept#

  • Each successful answer saves one turn: the question and the state it answered with, under your key and the conversation id.
  • A follow-up reads the newest six turns of its conversation.
  • A refusal or a failure saves no turn; the conversation goes on from the last answer. Keep the id you had, since a refusal returns none. Outside private mode, your Usage log still keeps its question and response, as for every question that reached the model.
  • Turns are saved after the response is sent. If two questions of one conversation run at once, one may not see the other.

Who can continue a conversation#

  • Secret key: anyone your server sends the id for. Keep each user's ids apart on your server; referenceId does not separate them.
  • Publishable key: only the signed-in user who started it. Another user sending the same id starts a new conversation.

How long#

A follow-up only reads turns from within your plan's request history: 30 days on Pro, 90 on Business, as your contract says on Enterprise. What is stored and when it is deleted: Data.

What ends a conversation#

A new conversation starts, with a new id in the answer, when:

  • you send no conversationId, or null;
  • the id has no saved turns: it is unknown, belongs to another key or another user, or every turn is older than your plan's history;
  • the question is in private mode, which reads and saves no turns.

To start over on purpose, drop the id. Asking "start over" in the same conversation keeps the history but asks for an empty view.

Long conversations#

A follow-up must fit the 73,728-byte limit of what the first model call for a question is sent. The question itself must fit without history; then only the newest turns that still fit are sent. The answer does not say turns were left out, and the id stays the same. On a wide table this can be only the last exchange, so make questions that depend on an older detail say it again.

Errors#

StatusCodeWhenSend again unchanged?
400Codeinvalid_requestWhenconversationId is over 255 characters or not a string.Send again unchanged?No. Fix the id.
413Codecontext_too_largeWhenThe question is over the size limit even without history.Send again unchanged?No. Send less context.

An unknown id is not an error: it starts a new conversation.

Next#

  • Private mode
  • Data Grid endpoint
  • Limits