Apply a workflow template to a bot by providing values for all required variables. If the template has already been applied to this bot, the existing workflow will be replaced. Each variable can be provided in one of three ways: (1) an inline value (plain string or { value }) that substitutes text directly, (2) { value, createOrgVariable: true } which creates/updates an org variable and keeps the {{placeholder}} in the workflow for runtime resolution, or (3) { existingOrgVariableId } which links to a pre-existing org variable by ID. Org-variable-backed placeholders are resolved at runtime, so updating the variable value propagates to all linked workflows automatically.
Request body for applying a template to a bot
The bot to apply the template to
Variable values keyed by variable name. Each value can be a plain string (inline substitution) or an options object.
{
"office_name": "Happy Dental",
"phone_number": {
"value": "+15551234567",
"createOrgVariable": true
},
"office_address": {
"existingOrgVariableId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}