Skip to content
gist.link ↗

sendUserMessage

Mutation Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Send a message to the supervisor mid-run or start a new session around it.

agentworkforce:mutation:sendUserMessage

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

type Mutation {
sendUserMessage(workforceUuid: ID!, content: String!): WorkSession!
}
Argument Type Required Description
workforceUuid ID! Yes —
content String! Yes —

WorkSession! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SendUserMessage($workforceUuid: ID!, $content: String!) { sendUserMessage(workforceUuid: $workforceUuid, content: $content) { uuid workforceUuid triggerKind goal status stepsUsed tokensIn tokensOut } }",
"variables": {
"workforceUuid": "01a01234-abcd-7000-9000-0123456789ab",
"content": "example"
}
}
JSON