email_templates_create
Create reusable email templates with dynamic variables for invoices, delivery notes, or receipts, and set defaults per category for consistent automated emails.
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".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"subject": "<subject>",
"body": "<body>"
},
"name": "email_templates_create"
}
}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 |