Merge tags and personalisationMenu
On this page

Merge tags and personalisation

Personalise emails with contact details and set fallbacks for missing values.

View as MarkdownOpen in ClaudeOpen in ChatGPTUpdated

Merge tags insert customer details when a message is sent. A greeting such as “Hi there” can become “Hi Ada”. Add a fallback to each optional value so the message still reads naturally when a contact’s details are missing.

Add a tag in the designer

  1. Select a heading or text block and click into its text.
  2. In the sidebar, open Insert personalisation and choose a Field: a contact field such as First name, one of your custom attributes, or a workspace detail.
  3. Enter the Default value: the word to use when a contact has no value, such as “there”.

On the canvas the tag shows as a named chip, such as First name. While you’re editing the text, it shows in its short form, for example {{first_name|there}}. You can type the short form yourself in any block’s text, such as a button or a quote, and in the subject.

A text block selected in the designer with Insert personalisation open: Field and Default value

The tags you can use

Tag What it fills in
{{ contact.firstName }} First name
{{ contact.lastName }} Last name
{{ contact.email }} Email address
{{ contact.phone }} Phone number
{{ contact.externalId }} Your own ID for the contact
{{ contact.id }} Kirora’s ID for the contact
{{ contact.attributes.plan }} Any custom attribute or date field, by its key (here plan), written exactly as it’s stored
{{ org.name }} Your workspace’s name
{{ org.address }} Your workspace’s postal address

The short form works for the contact’s own fields only: id, external_id, email, first_name, last_name and phone. {{first_name|there}} means the same as {{ contact.firstName | default: "there" }}.

Two more kinds work only in certain messages:

  • {{ event.properties.total }} reads a detail of the event that started a journey, or of a transactional send, such as an order number or total. {{ data.total }} names the same value.
  • {{ item.name }} reads one row inside a Repeating list block, such as each line of a Juniper Kitchen order receipt. Use {{ item }} when the list holds plain values rather than rows.
Tag Campaign Journey Transactional template
contact.* and org.* Yes Yes Yes
event.properties.* or data.* Only when sent from the API (see below) Yes, from the event that started the journey Yes, from the send’s data
item.* Inside a Repeating list block Inside a Repeating list block Inside a Repeating list block

A campaign can use event.properties.* and data.* only when it’s sent from the API to the people you list, each with their own data. Such a campaign can’t be sent any other way.

A Repeating list can repeat over a custom attribute, or over the event’s or send’s data. It writes out up to 100 items. If the value isn’t a list, the block is left out.

See Attributes for creating your own fields.

Fallbacks

Give tags a fallback. In marketing email, if a contact has no value for a tag and the tag has no fallback, Kirora skips that contact rather than send them a broken email. Before a campaign sends, its review warns how many people each contact tag would skip, so you can add a fallback first.

Add the fallback inside the tag, in double or single quotes:

Code
Hi {{ contact.firstName | default: "there" }},

A contact with no first name sees “Hi there,”. fallback: works the same way as default:, so {{ contact.firstName | fallback: "there" }} is also fine. The one difference is a value of false: default: replaces it with the fallback, while fallback: shows the word “false”. Workspace details such as {{ org.name }} are the same for everyone and don’t need one.

Format numbers, prices and dates

Custom attributes and Repeating list fields can be written out for the reader. When you insert one, choose a Format:

Format Adds to the tag
As stored nothing
Number | number
Number, 2 decimals | number: 2
Price | currency: "USD"
Date | date
Date, written out | date: "long"
Time | time
Date and time | datetime

For Price, enter the three-letter Currency code in capitals, such as USD or EUR. The format goes before the fallback:

Code
Your total: {{ contact.attributes.total | currency: "USD" | default: "0" }}

If you type a format yourself, number takes 0 to 6 decimal places, and date, time and datetime take "short", "medium", "long" or "full".

Each reader sees the format of their own Language and region, set on their contact, or the email’s language when it isn’t set. So the same price or date reads naturally in the US, France or Japan. Times are shown in the contact’s time zone, or UTC when they have none. A date on its own, such as 2026-10-31, shows as that day everywhere. A value the format can’t read, such as text in a number tag, is shown as it’s stored.

What happens when a value is missing

The value is With a fallback Without a fallback
Missing or null The fallback Blank
Empty text The fallback Blank
Only spaces The spaces: they count as a value The spaces
0 0 0
false The fallback with default:, or “false” with fallback: “false”
A list or a set of fields, rather than one value The fallback Blank

Where a tag would be blank:

  • Marketing email (campaigns and journeys): the contact is skipped and the message isn’t sent to them. A tag inside a block that isn’t shown to them doesn’t count.
  • Transactional email and push notifications: the message sends with the tag left blank.

To hide a whole block instead, such as a VAT row, use Show only when this has a value in the block’s settings. The block is hidden when the value is missing, empty, only spaces, false or an empty list.

  • In the email body, a value is always shown as text. A name such as <b>Ada</b> appears exactly like that, never as formatting.
  • The subject, preview text, plain-text version and push notifications are plain text, so values go in as they are.
  • In a link or image address, a tag must fill in an address that starts with https:, http:, mailto: or tel:. Anything else, such as javascript:, is left out and the address is left empty.
  • Each value is filled in once. A value that looks like a tag, such as {{ contact.email }} typed into a name, is shown as typed and never filled in.

Personalise the subject line

An email’s subject and preview text take the same tags as the body, in either form. Under the Subject field, open Insert personalisation, choose a Field and a Default value, then choose Insert. The tag goes in where your cursor was. For example:

Code
{{first_name|Friend}}, your table at Juniper Kitchen is ready

A push notification’s title is different: use the full form, such as {{ contact.firstName | fallback: "Friend" }}. If you paste the short form into a push title, Kirora flags it and asks for the full form.

Check before you send

  • Use Preview as in the designer’s Preview view to see the email filled in for a real contact, or with the fallbacks.
  • Only use the tags listed above, or their short form. Don’t invent tags such as {{discount_code}}.
  • You never need to add an unsubscribe link: Kirora adds a personal one to every marketing email.

Kirora checks each tag’s spelling, its format and where it’s used. A tag it doesn’t recognise, an unclosed {{, a format such as currency without a valid code, or item outside a Repeating list is handled like this:

Where it is What happens
The email body, in the designer The Preview flags it as Merge tag not recognised. It’s sent exactly as typed
A campaign’s subject or preview text, or a push notification’s title or message It’s refused until you fix it
A transactional template, sent through the API The send is refused with an error that names the tag

Show different content to different people

To go beyond swapping in a word, select a block and set Show this block to to Only contacts who match. For example, show a “Welcome back” banner only to contacts who have ordered before. See Design an email.