ai_assign
Let AI decide who fills each box that has no owner yet: one of the document's recipients, Skip, or a Fixed value, from the workspace's form memory, the team's habits, rules and then AI.
asks firstChanges something in your workspace, so clients ask you before running it.
What it does
Let AI decide who fills each box that has no owner yet: one of the document's recipients, Skip, or a Fixed value, from the workspace's form memory, the team's habits, rules and then AI. Boxes that already have an owner keep it, and AI never gives a box to the sender. Set recipients first (set_envelope_recipients). Returns how many boxes it assigned, to_check (the less certain picks: show them to the user), whether AI was off, and run_id + applied: pass them to send_envelope as assign_run_id and assign_applied so the send teaches AI assign. Use set_box_owner or skip_box afterwards to change a pick. Returns the document's saved Prepare state (recipients, routing, each box's owner and value, version; the same state the web Prepare page shows; a government ID number in a box shows only its last 3 characters, masked: true, and is sent in full), a box tally, and send: whether it is ready to send (else why not) and the web link to review it. When ready, send it with send_envelope and use_prepare_draft: true.
Inputs
| Name | Type | Description |
|---|---|---|
document_idrequired | string | The document's id (from upload_document, create_from_template or a document list). |
Call it
Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ai_assign",
"arguments": {
"document_id": "<document_id>"
}
}
}Input schema
The JSON Schema the server lists for this tool in tools/list.
{
"type": "object",
"properties": {
"document_id": {
"type": "string",
"description": "The document's id (from upload_document, create_from_template or a document list)."
}
},
"required": [
"document_id"
]
}set_envelope_recipients
Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy).
set_box_owner
Give boxes to one of the document's recipients (role_key from set_envelope_recipients), who fills them when they sign; or clear: true to take the owner off.