AlmondTill/G3N API

suggestNote

query · in the family Reading your records

What it does

Ask AI to draft one internal note — from the thread so far, or by cleaning up words you already wrote.

Ask AI to draft ONE internal note: with an empty draft the model writes a note from the context you sent (the visible thread + the record word — the server reads no tenant data of its own); with a present draft it cleans/enhances your own words (same facts and intent, never new claims). The answer pre-fills the composer — nothing posts automatically. Trimmed and bounded 1..4096 (what cannot post is never suggested). type is the record kind word; context <= 4000 chars; draft <= 4096 chars (empty = the write-me face). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — write the note by hand. 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

The suggestion pre-fills the note box for you to edit; nothing posts until you press Add note. With an empty draft it writes from the visible thread; with your draft present it improves your own words without adding new claims.

Arguments

NameTypeRequiredNotes
typeString String!yes
contextString String!yes
draftString String!yes

Returns

SuggestedNote SuggestedNote! — The note-suggest answer: ONE drafted note body. Pre-fills only — nothing posts automatically.

Example request

graphql
query ExampleSuggestNote($type: String!, $context: String!, $draft: String!) {
  suggestNote(type: $type, context: $context, draft: $draft) {
    suggestion
  }
}

Variables:

json
{
  "type": "<type>",
  "context": "<context>",
  "draft": "<draft>"
}

Example response

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

Errors this call can answer