create_template
Create email templates with custom subject, HTML content or blocks, and optional labels. Streamline email marketing by building reusable templates.
Instructions
Create a new email template
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Company ID. If not provided, uses the currently selected company. | |
| name | Yes | Template name | |
| subject | Yes | Email subject line | |
| html | No | Email HTML content. Mutually exclusive with `blocks`. | |
| blocks | No | Sequenzy email blocks. Use `styles` for per-block background, background opacity, text color, padding, border radius, border width, and border color. Top-level style aliases such as `backgroundColor`, `backgroundOpacity`, `borderColor`, `borderWidth`, and `borderRadius` are also accepted and saved under `styles`. Use this for editor-compatible content, including conditional and repeat blocks. Repeat blocks use { type: 'repeat', source: 'items', itemAlias: 'item', children: [...] }. | |
| labels | No | Optional label names to assign. Missing labels are created automatically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the Sequenzy operation succeeded. | |
| message | No | Human-readable status, confirmation, or next-step message. | |
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| template | No | The email template record returned by Sequenzy. | |
| appUrls | No | Dashboard URLs for relevant Sequenzy resources. | |
| url | No | Primary dashboard URL for this result. | |
| settingsUrl | No | Company settings URL when available. |