preview_demand_letter
Review demand letter text content as structured JSON before final PDF generation. Refine wording, check legal references, and verify all fields.
Instructions
Render the demand letter's text content (title, subject, body paragraphs, amount line, legal reference, closing) as structured JSON, without producing a PDF. Use to review or refine wording before generating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Payment/bank details keyed by field (e.g. {bankName, iban, accountNumber}). Optional. | |
| tone | No | Escalation level. Default: final. | |
| amount | Yes | Amount owed, as a number (no separators). Required, > 0. | |
| attested | No | Confirms authorization to send under the sender name. Required when senderType is business/firm. | |
| currency | No | ISO 4217 currency (optional; defaults to the jurisdiction's). | |
| language | No | Letter language code (e.g. en, es, fr, de, pt, ar, zh, ja). Must be offered for the jurisdiction; defaults to en. | |
| senderRef | No | Creditor's own reference number (optional). | |
| debtorName | Yes | Debtor name. Required. | |
| debtorType | No | Whether the debtor is a private individual (consumer) or a business. 'individual' activates jurisdiction consumer rules (e.g. GB Pre-Action Protocol 30-day floor, NL WIK wording). Default: business. | |
| enclosures | No | Enclosed documents, printed as 'Encl.: …' under the signature (e.g. 'Copy of invoice INV-123'). Optional. | |
| senderName | Yes | Creditor name (person or business). Required. | |
| senderType | No | Creditor type. Business/firm requires attested=true. | |
| signerName | No | Name of the person signing (optional; defaults to senderName). | |
| description | No | What the debt is for (optional). | |
| senderTitle | No | Signer's job title (optional). | |
| deadlineDays | No | Days from issue to pay (optional; default 14). | |
| jurisdiction | No | ISO 3166-1 alpha-2 country code of the debtor (e.g. US, GB, DE, BR, AE). Use list_jurisdictions for the full set; XX = generic/international. | |
| originalDate | No | ISO date the debt was incurred/invoiced (optional). | |
| debtorAddress | Yes | Debtor postal address, multi-line. Required. | |
| invoiceNumber | No | Invoice/account number (optional). | |
| senderAddress | Yes | Creditor postal address, multi-line (\n separated). Required. | |
| senderContact | No | Creditor email/phone (optional). | |
| deliveryMethod | No | How the letter is sent; printed as a notation above the recipient (e.g. 'By registered post and email'). Optional. |