render_template
Render a saved template's subject and body, substituting {{variable}} placeholders with provided values. Verify missingVariables is empty before sending to prevent 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" }. |