Basic syntax
Wrap a variable in double curly braces:trigger, ticket variables are available under trigger:
lookupCustomer and creates an output named segment, later actions can use:
setVariables and creates a variable named customerTier, later actions can use:
Node names matter
Variable paths use the automation node name. If you rename a node, update any Liquid templates that reference that node. Use short, descriptive names such astrigger, lookupCustomer, setVariables, formatSummary, or routeByTier.
The variable picker and AI automation tools use the app and customer names below. Existing templates using previous variable names continue to work.
Common ticket variables
Ticket triggers and manual workflows expose ticket-related variables such as:
Some trigger types expose extra variables. For example, Customer message exposes the latest message and message history, while Ticket events exposes the event that started the automation.
Common issue variables
Issue raised and Issue resolved triggers expose:
Some automation runs may not include
alertId, as it is only being rolled out. Templates should handle cases where this variable is empty.
Ticket created triggers expose the latest ticket state available when the automation runs. This can include updates made after ticket creation by Issue automations or other Ticket created automations. Ticket events and Customer message triggers also expose the current ticket details available when the automation runs, such as tags, fields, customer tier, and other ticket values. However, their message and event history variables are limited to the state at the time of the triggering message or event.
Custom fields
Ticket triggers and manual ticket workflows automatically expose custom field values under<trigger node name>.fields.<field key>. You do not need a Set variables action to access them.
If your trigger node is named trigger and a custom field has the key accountType, use:
trigger with your trigger node’s name if you renamed it.
Bracket notation also works and is useful for keys containing spaces or punctuation:
Missing values
A field that is not set on the ticket renders as empty. Use thedefault filter to provide fallback text:
default filter also replaces false. To keep a boolean field’s false value, use allow_false: true:
Field types
For dropdown fields, use the exact option text, including capitalization. If the option is VIP account, check for
"VIP account":
Tags
Ticket tags are available as an array of tag names under<trigger node name>.tags. Use the exact tag name, including capitalization, rather than a tag ID.
If your trigger node is named trigger, format the tags as a comma-separated list:
contains:
join example renders an empty list, the contains condition does not match, and the loop above shows its fallback text.
Customer and device metadata
Built-in customer and device metadata is available undermetadata, with values such as:
fields for custom fields and metadata for built-in metadata. Missing metadata values render as empty; you can use the same default filter shown above.
Workflow inputs
Manual workflows can ask the agent for inputs before running. Inputs are available underinputs on the workflow trigger node.
For example, if the trigger is named trigger and an input key is escalationReason, use:
Switch variables
Switch nodes expose information about the branch they selected:
For example:
AI Switch variables
AI Switch exposes the same selection variables as Switch, plusconfidence (a number between 0 and 1). For AI Switch, selectedBranchOrder is the display position, not evaluation priority; it is null for fallback selections. selectedBranchId is fallback when Otherwise is selected.
For example, if the node is named aiSwitch:
value (the branch ID), label (the branch label, or the fallback label), and probability (a number between 0 and 1). Confidence does not affect routing.