Template Syntax

Templates let you insert dynamic record data into emails, SMS messages, documents, and other automation action fields. The syntax uses double curly braces for placeholders.

Basic Placeholders

Use {{record.FieldName}} to insert the value of a field from the current record.

Hello {{record.FirstName}},

Your order #{{record.OrderNumber}} has been confirmed.

Field name matching:

  • Field names are case-sensitive — {{record.Email}} and {{record.email}} are different
  • Use the exact field name as it appears in the table column header
  • For field names with spaces, use the name as-is: {{record.First Name}}

Transforms

Transforms modify the value before inserting it. Use the pipe syntax: {{record.FieldName|transform}}

Text Transforms

TransformDescriptionExample InputExample Output
lowercaseConvert to lowercase"HELLO""hello"
uppercaseConvert to uppercase"hello""HELLO"
capitalizeCapitalize first letter of each word"hello world""Hello World"
first_wordExtract the first word"John Smith""John"
last_wordExtract the last word"John Smith""Smith"

Lithuanian Language Transforms

These transforms apply Lithuanian grammatical cases, which is essential for generating grammatically correct documents and messages in Lithuanian.

TransformDescriptionExample InputExample Output
vocative_ltVocative case (addressing someone)"Jonas""Jonai"
instrumental_ltInstrumental case (with/by someone)"Jonas""Jonu"

Usage example (Lithuanian email):

Sveiki, {{record.Vardas|vocative_lt}},

Jūsų dokumentas buvo pasirašytas {{record.Vadovas|instrumental_lt}}.

Numeric and Financial Transforms

TransformDescriptionExample InputExample Output
trimRemove leading/trailing whitespace" hello ""hello"
roundRound to nearest integer"3.7""4"
round2Round to 2 decimal places"3.456""3.46"
currencyFormat as currency"1234.5""1,234.50"
extract_numberExtract first number from text"Invoice #123""123"
next_numberIncrement extracted number by 1"INV-042""43"
vat_21Calculate 21% VAT amount"100""21.00"
with_vat_21Add 21% VAT to amount"100""121.00"

Date Transforms

TransformDescriptionExample InputExample Output
date_shortShort date format"2025-03-15T...""2025-03-15"
date_fullFull readable date"2025-03-15T...""March 15, 2025"
date_euEuropean date format"2025-03-15T...""15.03.2025"
date_ltLithuanian date format"2025-03-15T...""2025 m. kovo 15 d."
plus_7_daysAdd 7 days to date"2025-03-15""2025-03-22"
plus_15_daysAdd 15 days to date"2025-03-15""2025-03-30"
plus_30_daysAdd 30 days to date"2025-03-15""2025-04-14"

Chaining Transforms

You can chain multiple transforms by separating them with pipes:

{{record.FullName|first_word|uppercase}}

This would extract the first word from FullName and then convert it to uppercase. So "john smith" becomes "JOHN".

Conditional Blocks

Use conditional blocks to include or exclude sections of text based on field values.

Basic If/Else

{{if record.Status equals "Active"}}
Your account is active and in good standing.
{{else}}
Your account is currently inactive. Please contact support.
{{/if}}

Supported Operators

OperatorDescriptionExample
equalsExact match{{if record.Status equals "Active"}}
not_equalsDoes not match{{if record.Type not_equals "Internal"}}
containsText contains substring{{if record.Tags contains "VIP"}}
not_containsText does not contain{{if record.Notes not_contains "cancelled"}}
is_emptyField has no value{{if record.Phone is_empty}}
is_not_emptyField has a value{{if record.Email is_not_empty}}
greater_thanNumeric comparison{{if record.Amount greater_than "1000"}}
less_thanNumeric comparison{{if record.Amount less_than "100"}}

Nested Conditions

You can nest conditional blocks:

{{if record.Country equals "Lithuania"}}
  {{if record.Language equals "Lithuanian"}}
    Sveiki, {{record.Name|vocative_lt}}!
  {{else}}
    Hello, {{record.Name}}! (Lithuania, English)
  {{/if}}
{{else}}
  Hello, {{record.Name}}!
{{/if}}

Full Example: Invoice Email Template

Subject: Invoice #{{record.InvoiceNumber}} from {{record.CompanyName}}

Dear {{record.ClientName|first_word}},

Please find attached invoice #{{record.InvoiceNumber}} for {{record.Currency}} {{record.Amount}}.

{{if record.DueDate is_not_empty}}
Payment is due by {{record.DueDate}}.
{{/if}}

{{if record.Notes is_not_empty}}
Notes: {{record.Notes}}
{{/if}}

{{if record.Amount greater_than "5000"}}
As this is a large invoice, please contact us if you need to arrange a payment plan.
{{/if}}

Best regards,
{{record.SenderName}}
{{record.CompanyName}}

Tips

  • Preview before sending: Use the automation test feature to see how templates render with real record data
  • Handle empty fields: Use {{if record.Field is_not_empty}} blocks to avoid rendering blank lines
  • Special characters: Template syntax works inside HTML email bodies, so you can combine it with HTML formatting
  • Date fields: Dates render in the format configured for the field in the table settings