create_html_template
Generate email templates with HTML content and Handlebars support for SendGrid campaigns. Create templates with subject lines, plain text versions, and test data in a single operation.
Instructions
Create a new template with HTML content in one step - perfect for AI-generated designs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
html_content | Yes | Complete HTML email template (supports Handlebars) | |
plain_content | No | Plain text version (will auto-generate if not provided) | |
subject | Yes | Email subject line (supports Handlebars like {{firstName}}) | |
template_name | Yes | Name of the template | |
test_data | No | JSON string with test data for preview (e.g., '{"firstName":"John","company":"Acme"}') | |
version_name | Yes | Name for the initial version |
Input Schema (JSON Schema)
{
"properties": {
"html_content": {
"description": "Complete HTML email template (supports Handlebars)",
"type": "string"
},
"plain_content": {
"description": "Plain text version (will auto-generate if not provided)",
"type": "string"
},
"subject": {
"description": "Email subject line (supports Handlebars like {{firstName}})",
"type": "string"
},
"template_name": {
"description": "Name of the template",
"type": "string"
},
"test_data": {
"description": "JSON string with test data for preview (e.g., '{\"firstName\":\"John\",\"company\":\"Acme\"}')",
"type": "string"
},
"version_name": {
"description": "Name for the initial version",
"type": "string"
}
},
"required": [
"template_name",
"version_name",
"subject",
"html_content"
],
"type": "object"
}