# 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.

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: asks first: it changes something in your workspace, so clients ask you first.

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 | Required | Description |
| --- | --- | --- | --- |
| `document_id` | string | yes | The document's id (from upload_document, create_from_template or a document list) |
