The assistant reads your columns to understand a question: their ids, headers and types, and what you add under meta.assistant. Give each column a name your users recognise, and add units or meaning where the name is not enough.
Show tickets that are waiting on the customer
filter Status is Waiting on customerThe label "Waiting on customer" is stored as pending. Only the column's option list says so, and the plugin writes the stored value.
import { assistantColumn } from '@gridsay/tanstack-table';import { columnFilteringFeature, createColumnHelper, createFilteredRowModel, createSortedRowModel, rowSortingFeature, tableFeatures,} from '@tanstack/react-table'; type Order = { id: string; total: number; status: string; customer: string };export const features = tableFeatures({ columnFilteringFeature, filteredRowModel: createFilteredRowModel(), rowSortingFeature, sortedRowModel: createSortedRowModel(),});const helper = createColumnHelper<typeof features, Order>();export const columns = helper.columns([ helper.accessor('total', { header: 'Order total', meta: { assistant: { type: 'number', description: 'Order total in euros, including tax' } }, cell: (info) => `€${info.getValue().toFixed(2)}`, }), helper.accessor('status', { header: 'Status', meta: { assistant: { type: 'singleSelect', options: [ { value: 'paid', label: 'Paid' }, { value: 'refunded', label: 'Refunded' }, ], }, }, }), helper.accessor('customer', { header: 'Customer', meta: { assistant: { description: 'Customer display name', examples: ['Example company'] } }, }),]);export const defaultColumn = assistantColumn;id or a string header, which becomes its id. Ids longer than 255 characters are left out.header is sent as the column's name. A header that is a function is not sent; add a description instead.cell. A value such as €1,200 is text.All four are optional.
| Setting | Accepts | What it does |
|---|---|---|
type | string, number, date, dateTime, boolean, singleSelect | Wins over the type read from the rows. |
description | text | Units, abbreviations or meaning, sent with every question. Keep it short. |
options | values, or { value, label } | A singleSelect's choices. Users ask with the label; the table stores the value. |
examples | a list, or true | Sample values. A list sends its first 20. true sends up to five distinct, non-empty values from the first 100 rows. Off unless you set it. |
Without a type, the plugin reads the first 100 rows in the browser. All numbers make number, all booleans boolean, dates at midnight date, other dates dateTime, YYYY-MM-DD strings date, and strings that start with a date and a time, such as 2026-11-02T09:15 or 2026-11-02 09:15, dateTime. Anything mixed or unclear is string. A singleSelect is never inferred: set its type and its options. Options are sent only for a singleSelect, at most 500 of them, and a value or label longer than 255 characters is skipped.
With each question, the plugin sends:
| Sent | Why |
|---|---|
The question, and additionalContext if you set it | To answer it. |
| Each described column's id, header, type and description | To match words to columns. |
examples, only where you set them | To read values such as codes or names. |
A singleSelect's options | To match labels to stored values. |
| Which features are on, and which columns cannot be filtered, sorted or grouped | So an answer uses only what the table can do. |
| The current sorting and grouping, and the filters an earlier answer set, with their values | So a follow-up builds on the current view. |
The conversation id, privateMode and referenceId if you set them | To continue the conversation and apply your settings. |
Your rows are not sent, apart from the examples you ask for and the options you list. Nor are cell renderers, header functions, display columns, the selected rows, the page, the expanded groups, or a search-box value. The question, the filters and the option lists can contain values from your data.
A hidden column is still described: column visibility is not a privacy control. To keep a column out, leave it out of the table's columns.
enableColumnFilter: false, enableSorting: false and enableGrouping: false each turn off one operation on that column. The assistant is told, and a question that needs it is declined.filterFn cannot be filtered by the assistant; one with its own sortFn cannot be sorted by it, unless the table uses manualSorting. The other operations stay available.Every question carries the column descriptions, examples and options. A request over the size limits is refused with 413 context_too_large before the model and is not charged. Use short descriptions, list only the options users need, and leave examples off unless they help. The limits are in the reference.