Create Template
listmonk_create_templateCreates new Listmonk campaign, visual email, or transactional templates from a template name and HTML body, with subject line support for transactional messages.
Instructions
Creates a new campaign or transactional template.
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>",
"type": "<type>",
"body": "<body>"
},
"name": "listmonk_create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | HTML body of the template. | |
| name | Yes | ||
| type | Yes | ||
| subject | No | Subject line (only used when type is 'tx'). | |
| body_source | No | JSON source for the visual email builder (only for 'campaign_visual'). | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable data. | markdown |