create_document_from_template
Fill a data template's placeholder fields to create a document in one step. If a timeout occurs, check list_documents first to avoid duplicate creation.
Instructions
PREFERRED way to create a document: fills a data template's placeholder fields and creates the document in one step. Get field machine names from get_data_template (content_type.fields → lowercase name, spaces to underscores, e.g. "Client Name" → client_name). NOT idempotent: if the call times out, the document may still have been created — list_documents before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Optional document metadata (contract content types: start_date, expiry_date, contract_value) | |
| title | No | Optional title override; defaults to the template's title_template with [Field] placeholders filled | |
| fields | Yes | Field values keyed by machine name, e.g. {"client_name": "Acme Corp", "effective_date": "2026-08-02"} | |
| data_template_id | Yes | Data template id (UUID) — see list_data_templates |