Expressions

View as Markdown

Most of the time a step’s setting is a fixed value you type in. But workflows get powerful when a setting can change based on the data flowing through a run: an email that greets each customer by name, a condition that checks a score, a URL built from a contact’s ID. Expressions are how you do that.

There are two kinds, and they work well together.

String templates

A string template builds a piece of text with values dropped into it, using {{ }} markers. Reach for a template whenever you are composing text such as an email body, a message, or a URL:

Hi {{node.contact.first_name}}, your renewal is due on {{node.policy.due_date}}.

See String Templates.

Expressions that compute values

When you need to calculate or compare, rather than assemble text, you write an expression. Expressions handle arithmetic, comparisons, yes/no logic, and picking between options:

node.quote.premium * 1.08
node.score.value >= 80 ? "APPROVED" : "NEEDS_REVIEW"

See Expressions.

Explore