Apply template
apply_templatePopulate an email template with variable values, then preview, save as a draft, or send the composed message using a connected account.
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' } |