summarizeThread
query · in the family Reading your records
What it does
Ask AI for a short synopsis of this record’s note thread — what it is about, what was decided, what still hangs.
Ask AI to summarize one record's note thread: the model reads the thread you sent (one line per note — the server reads no tenant data of its own) and answers a short plain-text synopsis: what the thread is about, what was decided, what still hangs — 2..6 lines. A synopsis is not an issues-review (that is reviewRecord). Read-only — nothing changes. Trimmed and bounded 1..2000. type is the record kind word; text is the thread (<= 4000 chars). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1).
Before you call
A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).
Capability area: Reading your records — Looking up and listing the records of your organization.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
What happens
Read-only advice over the notes already on screen; nothing changes on the record. This is a summary, not a data-quality review (that is the record review).
Arguments
Returns
ThreadSummary ThreadSummary! — The thread-summary answer: the synopsis of the thread YOU sent — advice words, nothing changes.
Example request
query ExampleSummarizeThread($type: String!, $text: String!) {
summarizeThread(type: $type, text: $text) {
summary
}
}Variables:
{
"type": "<type>",
"text": "Restock before the weekend."
}Example response
{
"data": {
"summarizeThread": {
"summary": "<summary>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)