apply_template
Compose emails from templates by substituting variables, then preview, save as draft, or send immediately.
Instructions
Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient addresses (required for send, optional for draft) | |
| action | No | What to do with the composed email | preview |
| account | Yes | Account name from list_accounts | |
| template | Yes | Template name from list_templates | |
| variables | Yes | Variable values as key-value pairs, e.g. { topic: 'Q1 Review' } |