Examples
**Example — create a complete template in one step (best for AI agents):**
```json
{
"tool": "create_html_template",
"arguments": {
"template_name": "Welcome Email",
"version_name": "Version 1.0",
"subject": "Welcome to {{companyName}}, {{firstName}}!",
"html_content": "WelcomeWelcome {{firstName}}!
Thank you for joining {{companyName}}. We're excited to have you on board.
",
"test_data": "{\"firstName\":\"John\",\"companyName\":\"Acme Corp\"}"
}
}
```
**Example — add a new version with HTML content:**
```json
{
"tool": "create_template_version",
"arguments": {
"template_id": "your_template_id",
"name": "Newsletter v1.0",
"subject": "{{month}} Newsletter - {{companyName}}",
"html_content": "{{month}} Newsletter
{{#each articles}}{{/each}}",
"test_data": "{\"month\":\"January\",\"companyName\":\"Acme\",\"articles\":[{\"title\":\"Article 1\",\"summary\":\"Summary here\",\"link\":\"https://example.com\"}]}"
}
}
```
### Mail Sending
- `send_mail` - Send transactional emails (supports templates with dynamic template data)