render_template
Fill a saved email template with variable values and get the rendered subject and body, while identifying any missing placeholders to avoid sending literal {{placeholder}} text.
Instructions
Render a saved template's subject and body, substituting {{variable}} placeholders with the given values. Placeholders left unfilled stay literal (e.g. {{firstName}}) and are listed in missingVariables — check that field is empty before passing the rendered subject/body to send_email, or the recipient will see literal {{placeholder}} text in the message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The template id. | |
| variables | No | Map of variable name to replacement value, e.g. { "firstName": "Alex" }. |