Create Email Template
meisa_create_templateCreate a new email template in Meisa. Use this when the user wants to save new email content as a reusable template. The template can then be used in broadcasts or sequences. Requires a name, subject line, and HTML body. Returns the created template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name (internal, not shown to recipients). | |
| subject | Yes | Email subject line. Supports {{variable}} personalization tokens. | |
| category | No | Template category for organization. | other |
| description | No | Internal description/notes about this template. | |
| content_html | Yes | Full HTML email body. Must be valid HTML. | |
| preview_text | No | Preview text shown in email client inbox previews (max 255 chars). | |
| spintax_variables | No | Reusable spintax variable pools, shaped as {"name": ["option1", "option2", ...]}. Reference inside subject/content with [[name]] and Meisa picks one option randomly per recipient at send time. Example: {"greeting": ["Hi", "Hey", "Hello there"], "opener": ["Quick note.", "Hope your week's been solid."]}. Inline spintax of the form {a|b|c} also works directly inside content_html/content_text and does NOT require this field. |