Conditions (If)
How an If node tests one field and routes the run through its True or False output, the operators per field type, and the reference of every field, token and the node that publishes it.
Add an If node from the Conditions menu of the canvas. It tests one field published by a node before it: the trigger publishes the ticket, and each action publishes what it did.
Ticket fields always describe the ticket as it is when the node reads them. After Set status, Add tag or any action that changes the ticket, the nodes after it read the new value.
Operators
The operators offered depend on the field.
| Field type | Operators |
|---|---|
| Text (typed) | is · is not · is one of · contains · does not contain · starts with · does not start with · ends with · does not end with · is empty · is not empty · matches regex · does not match regex · exists · does not exist |
| Text (picked) | is · is not · is one of · is empty · is not empty · exists · does not exist |
| Text (picked, never empty) | is · is not · is one of · exists · does not exist |
| List (typed) | contains · does not contain · contains any of · contains none of · is not · is empty · is not empty · length is · length is not · length is greater than · length is less than · length is at least · length is at most |
| List (picked) | contains · does not contain · contains any of · contains none of · is empty · is not empty |
| Package | contains any of · contains none of · is empty · is not empty |
| Yes/no | is true · is false · exists · does not exist |
Picked means you choose the value from a list instead of typing it. The field reference gives the type of each field.
- Presence operators (is empty, exists, is true and their negatives) take no value.
- Multi-value operators (is one of, contains any of, contains none of) take a list. In a typed field, press Enter after each value: a value still being typed is flagged.
- Matches regex uses a linear-time engine, safe against malicious patterns. A pattern is capped at 200 characters. An invalid pattern matches nothing.
- Length operators compare against a whole number,
0or more. - A condition on a field that no node before it publishes keeps the workflow a draft. The editor names the node and the missing field.
Field reference
The one list of what a workflow can read. Condition is the field's type in the If node. Token is the placeholder to use in a message (— when the value is an internal ID, meaningless in text).
| Field | Condition | Token | Published by |
|---|---|---|---|
| Ticket number | Text (typed) | {ticket.number} | Every trigger |
| Subject | Text (typed) | {ticket.subject} | Every trigger |
| Current status | Text (picked) | {ticket.status} | Every trigger |
| Priority | Text (picked) | {ticket.priority} | Every trigger |
| Tags | List (picked) | — | Every trigger |
| Tag names | List (typed) | {ticket.tags} | Every trigger |
| Package (shop, category or script) | Package | — | Every trigger |
| Package ID (manual entry) | List (typed) | — | Every trigger |
| Package names | List (typed) | {ticket.package_names} | Every trigger |
| Form button | Text (picked) | {ticket.type} | Every trigger |
| Assignees | List (picked) | — | Every trigger |
| Assignee roles | List (picked) | — | Every trigger |
| Customer name | Text (typed) | {customer.name} | Every trigger |
| Project name | Not a condition | {project.name} | Every trigger |
| Actor | Text (picked) | — | Every trigger except No activity |
| Actor role | Text (picked) | — | Every trigger except No activity |
| Previous status | Text (picked) | {trigger.from_status} | Status changed |
| New status | Text (picked) | {trigger.to_status} | Status changed |
| Ticket source | Text (picked, never empty) | {trigger.source} | Ticket creation |
| Message ID | Text (typed) | — | On chat message |
| Message author type | Text (picked, never empty) | — | On chat message |
| Message content | Text (typed) | {trigger.message.content} | On chat message |
| Message author (team member) | Text (picked) | — | On chat message |
| Selected package (shop, category or script) | Package | — | Package selected |
| Selected package ID (manual entry) | List (typed) | — | Package selected |
| Selected package names | List (typed) | {trigger.added_package_names} | Package selected |
| Command name | Text (typed) | — | Command |
| One field per argument, under its name | Text (typed) | {trigger.command.args.<name>} | Command |
| Inactive since | Text (typed) | — | No activity |
| Last author | Text (picked, never empty) | — | No activity |
| Posted message ID | Text (typed) | — | Post message, Ask AI, Ask for the package |
| Posted message type | Text (picked, never empty) | — | Post message |
| Posted message content | Text (typed) | {message.content} | Post message, Ask AI |
| Chosen option ID | Text (picked) | — | Post message with choices |
| Chosen option label | Text (typed) | {choice.label} | Post message with choices |
| Scheduled closure date | Text (typed) | {closure.scheduled_at} | Schedule closure |
| Closure skipped | Yes/no | {closure.skipped} | Schedule closure |
| Payment link sent | Yes/no | {payment_link.sent} | Send payment link |
| Linked package IDs | List (picked) | — | Set package, Ask for the package |
| Linked package names | List (typed) | {package.names} | Set package, Ask for the package |
| Linked package category | List (picked) | — | Set package, Ask for the package |
| Linked package shop | List (picked) | — | Set package, Ask for the package |
| Package changed | Yes/no | {package.changed} | Set package |
| Package unlinked | Yes/no | {package.unlinked} | Unlink package |
| Unlinked package names | List (typed) | {package.previous_names} | Unlink package |
| Assignee ID | Text (picked) | — | Assign to a user |
| Assignee name | Text (typed) | {assignee.name} | Assign to a user |
| Assignee changed | Yes/no | {assignee.changed} | Assign to a user |
| New priority | Text (picked) | {priority.new} | Set priority |
| Previous priority | Text (picked) | {priority.previous} | Set priority |
| Priority changed | Yes/no | {priority.changed} | Set priority |
| New status | Text (picked) | {status.new} | Set status |
| Previous status | Text (picked) | {status.previous} | Set status |
| Status changed | Yes/no | {status.changed} | Set status |
| Tags added | List (picked) | — | Add tag, Tag with AI |
| Names of the tags added | List (typed) | {tags.added_names} | Add tag, Tag with AI |
| Tags removed | List (picked) | — | Remove tag |
| Names of the tags removed | List (typed) | {tags.removed_names} | Remove tag |
| Notification sent | Yes/no | {discord.sent} | Discord notification |
| Notified channel ID | Text (typed) | — | Discord notification, to a channel |
| Direct messages delivered | Text (typed) | {discord.dm_delivered} | Discord notification, as direct messages |
| Recipients skipped | Text (typed) | {discord.dm_skipped} | Discord notification, as direct messages |
| Webhook succeeded | Yes/no | {webhook.ok} | Call a webhook |
| Webhook HTTP status | Text (typed) | {webhook.status} | Call a webhook |
| AI confidence | Text (typed) | {ai.confidence} | Ask AI |
| AI asked for a human | Yes/no | {ai.staff_handoff} | Ask AI |
- A field only exists after its publisher. Place the condition after the action to test what it did.
- A node fed by several triggers reads only the fields all of them publish. See several triggers in one workflow.
- Personal data stays out of the run history. Customer name, message content, posted message content, assignee name and command arguments are never stored there.
Who performed the action
Actor is the person whose action fired the event: the member who changed the status, or the author of the chat message. Actor role is that person's role in your project.
- Customers have no role. Actor role is empty when a customer acts, for example from the portal.
- No person, no match. For an AI reply, another automation or the GitHub sync, Actor and Actor role are empty. A condition such as Actor role is
Owneris then False. - Assignee roles lists each role once: contains
Supportmatches as soon as one assignee holds it.
Message author type
Message author type (On chat message) and Last author (No activity) take these values:
| Value | Matches |
|---|---|
| Customer | A message the customer wrote |
| Team member | A message a member wrote, the project owner included |
| Project owner | Only the owner's messages |
| AI assistant | A reply the AI wrote |
| Automation | A message or package question a workflow posted |
- Team member never matches AI assistant or Automation.
- System lines are not chat messages: they never fire the trigger.
- Message author (team member) is empty when a workflow or the AI on its own posted the message.
- Last author is never Automation. When nobody has written yet, Last author does not exist.
Ticket source
Portal is the portal's ticket form. Order link is a direct ticket link to one script of one order. Discord is the ticket form in your server. An order link ticket is not a Portal ticket: to catch both, use is one of Portal · Order link.
Form button
Form button is the custom button the customer opened the ticket from. A ticket opened any other way has none: is empty is True.
- A picked button survives a rename. The condition targets the button, not its name.
- Disabled buttons stay in the list, marked as disabled.
- A removed button is flagged in the node. It can no longer match, but the workflow stays on and its other branches keep running.
- In messages,
{ticket.type}shows the button's name.
Package
Package tests the ticket's linked packages against shops, categories and scripts picked in one tree, as in Set package. contains any of Main · MLO · VIP rank is True when one package is sold on Main, sits in MLO, or is VIP rank.
The same tree as the package actions.
- A category covers its sub-categories.
- Categories are read from your catalog at run time. A package moved on Tebex matches its new category after the next catalog sync.
- One matching package is enough. There is no "all packages" operator: a condition cannot require every linked package to be in a category.
- A package no longer in your catalog only matches when the script itself is picked.
- A ticket with no linked package, or only a free-text name, is empty.
- Unlinking a package fires nothing. Package selected only reacts to packages being added.
The Selected package fields describe only the packages just linked. Package still describes every linked package.
Chosen option
Chosen option ID is picked from the choices of the messages before the condition. It is mostly useful where branches meet again: right after the message, each choice has its own output. A choice deleted from its message stays in the condition, marked as removed, and never matches.
Branching
- True runs when the test passes, False otherwise. An unconnected False output ends that branch: the run is recorded as Condition not met and costs nothing against your monthly quota. Other branches still complete.
- Conditions chained through their True outputs act as an AND.
- A condition guards its branch, not the action. Another path to the same action skips the test.
Only the True output is connected: other tickets end at the condition.
- True: the subject contains refund
- False: not connected, the branch ends
Example
Send each ticket to the maintainer of its package category, whether the package is known at creation or linked later.
Needs configuration: Field condition, Assign to a user
Older conditions
Conditions saved before a change keep working and stay editable. They are just no longer offered for a new condition.
- Operators no longer offered on a field (contains on a status, for instance) keep running, and the editor still shows them.
- Packages, Package category and Package shop (and their Selected versions) still run. Package category compares categories exactly, without their sub-categories.
- A condition on Project name keeps working.
- A Form button condition written before the button list compares the typed name exactly, so a rename stops it from matching. Pick the button to make it follow renames. A text operator such as contains keeps its typed value.
- Tickets opened before the button list existed are matched through the button's current name.