set_template_variables
Wire an existing template's {{1}}, {{2}} … placeholders to contact fields so broadcasts personalise. This is the fix when a message went out with a blank or wrong value (e.g. it said "Hi Alex" to a contact named Josef): that means the placeholder was never mapped. variable_mapping REPLACES the whole mapping — pass an entry for every placeholder, e.g. { "1": "name", "2": "fields.plan_tier" }. Values are a top-level contact field (name) or fields. for a custom field. Does not re-submit the template to Meta (content is unchanged), so no re-approval is needed. Use preview_broadcast afterwards to confirm the rendered message. Returns the updated template row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | DripRaven template id (from list_templates) | |
| variable_mapping | Yes | One entry per body placeholder, e.g. { "1": "name" }. Replaces the existing mapping. |