# fill_form_oneshot

> One-shot demo/quick-fill: upload a PDF (or a Word DOCX, converted to PDF; as content_base64 OR file_url, exactly one; at most 20 MB) and a values map keyed by each field's detected label text (the only thing knowable before detection runs), and get back a filled PDF in one call — no persisted document_id, no separate detect_fields/fill_document round trip.

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.

One-shot demo/quick-fill: upload a PDF (or a Word DOCX, converted to PDF; as content_base64 OR file_url, exactly one; at most 20 MB) and a values map keyed by each field's detected label text (the only thing knowable before detection runs), and get back a filled PDF in one call — no persisted document_id, no separate detect_fields/fill_document round trip. Low-confidence (flagged) fields are NEVER filled here; they come back in `warnings` instead, so check `warnings` for anything that still needs a human/agent review before treating the result as final. Per-field `results` follow the same filled/formatted/overflowed/skipped semantics as fill_document. A choice question (e.g. Title: Mr/Mrs/Miss/Ms) is answered by its label: values["Title"] = "Ms" (a list for a multi-select); `groups` says which options were ticked, and an unsure grouping comes back in `group_warnings`, unfilled. A box for a government ID number (passport, visa grant, tax file, social security, driver licence) is filled in full in the PDF, but its rendered_text comes back masked to its last 3 characters. Masked values (•••123) can't be sent back: ask the person for the full number.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `content_base64` | string | no | Base64-encoded PDF or DOCX bytes |
| `file_url` | string | no | Instead of content_base64: a public https:// link to the file (e.g. a chat attachment's download URL). AppliFlo downloads it: no private or internal addresses, at most 3 redirects, 20 MB and 20 seconds. The type is read from the file itself, never the link. Up to 2048 characters |
| `values` | map of string \| number \| boolean \| string[] | no | Map of the field's label text -> value, and a choice question's label -> option or [options] |
| `deterministic` | boolean | no |  |
| `idempotency_key` | string | no | Same key = same call: a retry (e.g. after a timeout) returns the first result instead of doing it again. The same key with other arguments is refused (422 idempotency_key_reused). Up to 255 characters |
