AlmondTill/G3N API

On this page

suggestFormFill

query · in the family Reading your records

What it does

Ask AI to draft values for the empty inputs on this wizard page, predicted from what you already answered.

Ask AI to draft values for the EMPTY inputs of ONE wizard/form step AND check the answered ones: the model reads what YOU SENT — FILLED (the step's answered label: value lines the merchant already sees) and WANT (one line per empty field: name — label (kind): help; EMPTY = verify-only) — the server reads no tenant data of its own — and answers suggestions ONLY for WANT fields it can predict from FILLED (unpredictable fields are skipped honestly; an empty list is a legal answer) plus advice: a short verification of FILLED (formats · consistency · real-world plausibility — an address's parts must agree; '' = nothing to flag). DRAFTS ONLY — nothing applies or corrects automatically. type is the record kind word (prompt context only, 1..64); step the page word (1..120); filled 1..4000 chars; want 0..2000 chars; materialIds names ≤4 of YOUR OWN confirmed wizard materials on the SAME type word — their stored extractions compose into the model's context (raw content is never re-read; a foreign/mismatched id refuses NOT_FOUND). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — fill by hand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1).

What happens

A drafting assist: suggestions only pre-fill empty boxes for your review — your own answers are never overwritten, and nothing saves until you finish the wizard. It predicts only what it reasonably can and skips the rest. Each use makes one metered AI call.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Arguments

NameTypeRequiredNotes
typeString String!yesNo further notes.
stepString String!yesNo further notes.
filledString String!yesNo further notes.
wantString String!yesNo further notes.
materialIdsID [ID!]noNo further notes.

Returns

FormFillSuggestion FormFillSuggestion! — The form-fill assist's answer: drafted values for the empty fields you asked about, name/value pairs the office pre-fills for review, PLUS advice about what you already answered. DRAFTS ONLY — nothing applies automatically; an empty list means nothing was predictable.

Example request

query ExampleSuggestFormFill($type: String!, $step: String!, $filled: String!, $want: String!, $materialIds: [ID!]) {
  suggestFormFill(type: $type, step: $step, filled: $filled, want: $want, materialIds: $materialIds) {
    advice
  }
}

Variables:

{
  "type": "<type>",
  "step": "<step>",
  "filled": "<filled>",
  "want": "<want>",
  "materialIds": [
    "01900000-0000-7000-8000-a36392ca0000"
  ]
}

Example response

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

Errors this call can answer