Skip to content
gist.link ↗

assist

Mutation Intelligence API — POST https://intelligence.api.gist.link/graphql

SERVICE callers only (e.g. Agent Workforce agents, scope intelligence:mutation:assist): stateless suite Q&A, billed to the token’s organization.

intelligence:mutation:assist

The calling IAM key must hold this permission (or a wildcard that covers it: intelligence:mutation:* or intelligence:*) and the access token must have been minted with audience=intelligence. See Permissions.

type Mutation {
assist(prompt: String!, context: String): AssistAnswer!
}
Argument Type Required Description
prompt String! Yes —
context String No —

AssistAnswer! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation Assist($prompt: String!, $context: String) { assist(prompt: $prompt, context: $context) { answer model } }",
"variables": {
"prompt": "example",
"context": "example"
}
}
JSON