# docs_ai_draft

> Draft a new Doc (a contract, letter or agreement) with AppliFlo's AI from a short brief, as Docs → New → Draft with AI does.

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.

Draft a new Doc (a contract, letter or agreement) with AppliFlo's AI from a short brief, as Docs → New → Draft with AI does. Makes a new private Doc marked as an AI draft, writes the whole draft into it and names it (unless you give a title). Returns doc_id, title, revision, the section headings, and checks (facts the AI added that weren't in the brief, unknown variables, a cut-off answer): tell the person to check those. Spends the workspace's monthly AI writing allowance (Free: 3 drafts a month) and is refused like the app with ai_disabled, ai_plan, ai_rate_limited or ai_budget_reached. Sending an AI-drafted Doc later asks the person to accept the own-risk terms. To add to an existing Doc use docs_ai_continue; for a library clause use insert_clause.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `brief` | string | yes | What the Doc is, in the person's words, with the facts they gave (parties, fees, dates). Up to 4000 characters |
| `title` | string | no | The Doc's title. Leave out to use the draft's own title. Up to 200 characters |
| `doc_type` | string | no | The kind of document, e.g. "Engagement letter". Up to 80 characters |
| `tone` | string | no | plain, formal or short. One of: plain, formal, short |
| `jurisdiction` | string | no | Whose law it is written for. Leave out for the workspace's setting. One of: Australia, New Zealand, United Kingdom, Ireland, Canada, United States, Singapore, India |
| `roles` | object[] | no | Who signs or gets a copy, in order (default: the app's default roles). The draft puts a signature for each signer. 1 to 10 items |
| `roles[].label` | string | yes | e.g. Client, Agent. Up to 60 characters |
| `roles[].kind` | string | yes | One of: signer, cc |
