Skip to content

Describe fields for AI

A custom role tells the AI assistant and AI agents what a column holds, in a sentence you write. Use one when a column’s name doesn’t say it: a size column holding 43 is clear to a person and ambiguous to a model. EU shoe size next to it settles it.

  • The AI assistant and AI agents on the MCP server read the column with your sentence beside it. In a long text, the assistant finds the part that answers the question.
  • Semantic search also reads a custom role on a text column, once you regenerate the vectors: see Semantic search.
  • Nothing else changes. Keyword ranking and the widget’s cards stay as they are, and saving a custom role never rebuilds the index.
  1. Open Search → Setup and pick the collection under Collection. Custom roles sits in the Fields card, between the roles and Searchable fields.

  2. Click Add role and pick a column. A column that already holds a role, Unique ID included, isn’t listed.

  3. Under Meaning, say what the column holds in one sentence.

    The end of the Fields card: Custom roles with its Add role button, then Searchable fields with the columns search reads
    Custom roles and Searchable fields close the Fields card
  4. Under Name, type the name AI should use for the column, if its own name won’t do. Left empty, the column’s name is used.

  5. Click Save changes in the bar at the bottom of the page.

WhatLimit or behaviour
Custom roles12 per collection. At 12, Add role gives way to 12 of 12.
MeaningUp to 200 characters. A row without one isn’t saved: its field turns amber and says so.
NameUp to 100 characters
ColumnsAny column without a standard role
A column that’s a filterHas one name. The Name here and the filter’s Name on the Filters card are the same field. Removing the custom role keeps the filter’s name.
Moving a rowPicking another column in the row’s Column moves the name and the meaning with it.
Set for youNothing is guessed. A WooCommerce store connected through the WordPress plugin starts with its short description as Summary; edit or remove it like any other.

Ask the AI assistant a question that only this column answers. Its answer should use the column’s values.

For developers. fieldMeta on POST /v1/collections and PATCH /v1/collections/{id} sets custom roles, and GET /v1/collections/{id} returns them. Each column takes a label (its Name) and a description (its Meaning); a column with a description is a custom role.

PATCH /v1/collections/{id}
PATCH /v1/collections/{id}
Authorization: Bearer sq_your_api_key
{ "fieldMeta": { "size": { "label": "Size", "description": "EU shoe size" } } }
RuleBehaviour
PATCHMerges into each column’s current entry. null removes a column’s entry; an empty string clears one key.
Column namesEach key names a column as fields[].name in GET /v1/collections/{id} lists it. An unknown column is a 400 naming fieldMeta.
Before importBefore the first import, any column name is accepted as the coming column.
LimitsThe limits above. Past them, the request fails with 400.
MCPThe create_collection tool takes the same fieldMeta.

Next: see what the assistant reads, or look up the standard roles.