email_templates_create
Create email templates for invoices, delivery notes, or receipts using dynamic variables like [[invoice_number]] and Markdown body formatting, with options to set a default per category.
Instructions
Create a new email template. Templates support dynamic variables that are replaced with actual data when emails are sent. Use the category parameter to specify the document type: "invoice" (default), "delivery_note", or "receipt".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Email body content (supports variables and Markdown formatting) | |
| name | Yes | Template name for internal reference | |
| subject | Yes | Email subject line (supports variables like [[invoice_number]]) | |
| category | No | Template category: "invoice" (default), "delivery_note", or "receipt" | |
| companyId | No | Company UUID (overrides configured default) | |
| isDefault | No | Set as default template (default: false). Only one template can be default per category |