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:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
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
Returns
SuggestedNote SuggestedNote! — The note-suggest answer: ONE drafted note body. Pre-fills only — nothing posts automatically.
Example request
query ExampleSuggestNote($type: String!, $context: String!, $draft: String!) {
suggestNote(type: $type, context: $context, draft: $draft) {
suggestion
}
}Variables:
{
"type": "<type>",
"context": "<context>",
"draft": "<draft>"
}Example response
{
"data": {
"suggestNote": {
"suggestion": "<suggestion>"
}
},
"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)