Skip to main content
POST
/
templates
/
{templateId}
/
apply
Apply template to bot
curl --request POST \
  --url https://api.helloannie.com/v1/templates/{templateId}/apply \
  --header 'Content-Type: application/json' \
  --data '
{
  "botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "variables": {
    "office_name": "Happy Dental",
    "phone_number": {
      "value": "+15551234567",
      "createOrgVariable": true
    },
    "office_address": {
      "existingOrgVariableId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    }
  }
}
'
{
  "success": true,
  "data": {
    "applicationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workflowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workflow": {}
  }
}

Path Parameters

templateId
string<uuid>
required

Body

Request body for applying a template to a bot

botId
string<uuid>
required

The bot to apply the template to

variables
object
required

Variable values keyed by variable name. Each value can be a plain string (inline substitution) or an options object.

Example:
{
"office_name": "Happy Dental",
"phone_number": {
"value": "+15551234567",
"createOrgVariable": true
},
"office_address": {
"existingOrgVariableId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}

Response

Response containing the applied template result

success
enum<boolean>
required
Available options:
true
data
object
required