create_custom_variable
Declare a custom personalization variable, or update one that already exists (upsert by token, so retries are safe). The main reason to call this rather than relying on auto-discovery is default_value: without a default, any lead missing this value causes the whole message to fall back to the step's generic fallback text. Token is normalized: 'Recent Funding' becomes recent_funding. Tokens colliding with built-ins (firstName, lastName, fullName, company, jobTitle, location, headline, email, sender*) are rejected. A workspace holds at most 50 variables; past that this returns 400 variable_limit_reached and you must delete one first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>"
},
"name": "create_custom_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Human-friendly name shown in the UI picker. | |
| token | Yes | Variable name WITHOUT braces, e.g. 'recent_funding' for {{recent_funding}}. | |
| description | No | Optional help text shown in the picker tooltip. | |
| default_value | No | Substituted when a lead has no value of its own. Strongly recommended: it's the difference between a partially-covered list sending personalized messages and sending the generic fallback. Trimmed and truncated at 500 characters; the response echoes the stored variable, so a default that was shortened comes back visibly shortened. | |
| idempotency_key | No | UUID for safe retry. |