Fill the tax declaration for the person to send
well_create_declaration_filingStart the fill of one prepared tax declaration in the person's own Chrome, from their WhatsApp turn. Well opens the authority's site there, the person signs in themselves, Well types the boxes of the prepared declaration and stops before the send: the person checks the form and clicks Envoyer themselves. Use it only when the person's own message asks Well to fill or file the declaration, after the declaration was prepared.
Pass declaration_type and the document_id the prepare tool returned. Never pass an amount: Well reads the figures from the stored declaration and checks them again against the declaration's blocking checks, and the CA3 against the books too, on the basis it was prepared on. Never say the declaration is filed or sent. On success, outcome queued means nothing runs yet: never say the fill started, and word the reply from message. waits_for_extension: true means the person's Chrome has no Well extension that takes the fill yet: the fill starts by itself once they install or update it, with no new ask, and message says what to tell them.
On refusal: no_extension, the PDF already sent is the path, the person files it themselves. extension_outdated, the PDF already sent is the path, and an update of the Well extension lets Well fill the next one. return_changed, prepare the declaration again and show the new figures. not_fileable, the books still do not give the whole return. When it carries reasons, first say each one in plain words: for unstamped posted entries, each entry gets its company in the source ledger and is synced again before the filing; for no books company confirmed, the person confirms their company first. With no reasons, when the prepared draft listed gaps, say in plain words what to fix and fill nothing; with neither, prepare the declaration again and show the new figures, and give no advice to correct the ledger. prior_credit_unconfirmed, line 22 waits for the person: ask once what « le crédit reporté de ta déclaration précédente » was, naming no line, prepare the declaration again with the prior_credit_euros they give, and show the new figures. check_blocked, the declaration fails a blocking check listed in rule_ids: say what to correct and fill nothing. already_filed, never fill again. period_already_filed, say plainly it is filed on the date in filed_on (day/month). filing_live, another fill runs: start nothing. handed_over_pending, the filled form waits in the person's Chrome: tell them to send it from that tab. not_validated, show the prepared figures and ask the person to confirm them in a new message. confirmation_required, ask the one numbered question the error text gives and end the turn. Follow the error text for any other refusal.
When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The `document_id` of the prepared declaration, as its prepare tool returned it in this conversation. | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| workspace_scope | No | Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace. | |
| declaration_type | Yes | The declaration to fill: `fr-vat-ca3` for the CA3 VAT return prepared by well_prepare_vat_return, `fr-micro-turnover` for the URSSAF micro-entrepreneur turnover declaration prepared by well_prepare_micro_declaration. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| site | No | ||
| error | No | ||
| period | No | ||
| message | No | ||
| outcome | No | ||
| reasons | No | ||
| refusal | No | ||
| success | Yes | ||
| filed_on | No | ||
| rule_ids | No | ||
| launch_link | No | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| newly_connected | No | Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later. | |
| declaration_type | No | ||
| browser_action_id | No | ||
| browser_reachable | No | ||
| resolved_workspace | No | The workspace that answered, when the caller named none and the token authorizes several. | |
| waits_for_extension | No | ||
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. |