AlmondTill/G3N API

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:

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

NameTypeRequiredNotes
typeString String!yes
textString String!yes

Returns

ThreadSummary ThreadSummary! — The thread-summary answer: the synopsis of the thread YOU sent — advice words, nothing changes.

Example request

graphql
query ExampleSummarizeThread($type: String!, $text: String!) {
  summarizeThread(type: $type, text: $text) {
    summary
  }
}

Variables:

json
{
  "type": "<type>",
  "text": "Restock before the weekend."
}

Example response

json
{
  "data": {
    "summarizeThread": {
      "summary": "<summary>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer