---
title: "Personalise messages with variables"
description: "Insert a contact's details into an email, chat message, push notification or banner, set a fallback, and put variables in links."
url: https://help.gleap.ai/tr/articles/322-personalise-messages-with-variables
collection: "Campaigns"
updated: 2026-11-23
language: tr
alternates: [en]
---

# Personalise messages with variables

Insert a contact's details into an email, chat message, push notification or banner, set a fallback, and put variables in links.

A message that uses what you know about someone reads as written for them. Variables do that without writing each message by hand. The list is built from your own contact attributes, so anything you store about a customer can be used, plus your project's name.

### Insert a variable

1.  In **Outreach**, open the message's editor and put the cursor where the value should go.
    
2.  Type **/** and choose **Variable**. In a banner, click the **Variable** button in the toolbar instead.
    
3.  Pick an attribute from the list, such as **First Name**, or type an attribute name.
    
4.  Fill in **Fallback (used when variable is not set)**, for example “there”.
    
5.  Click **Save variable**.
    

The variable appears in the text as a chip. When the message goes out, each recipient sees their own value: “Hi Anna,” for Anna and “Hi there,” for someone without a first name.

![Demo newsletter editor using a First name variable in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/t8lwEAzSzYMhIQ6wA2mo8s42BlgcnMJ8jStXe2ZZQRoUwYYTjkCNcWOD2Mu6MtfByRUihMRnbp8.png)

### Where variables work

-   **Emails**: in the body. The subject line doesn't take variables.
    
-   **Chat messages**: type **/** and choose Variable.
    
-   **Push notifications**: use the variable icon beside the line you're editing.
    
-   **Banners**: the **Variable** button in the toolbar.
    
-   **WhatsApp**: through the template. Map each template placeholder to an attribute in Settings under WhatsApp message templates.
    
-   **News** doesn't support variables.
    

### Always set a fallback

> **Warning:** “Hi ,” is the classic failure, and it goes to more people than you'd expect: anyone who signed up without a name, came through a channel that doesn't provide one, or was imported from a system that stored it differently.

Write the fallback so the sentence still works: “Hi there” rather than “Hi \[name\]”. And prefer a first name: “Hi Anna Schmidt” reads like a database, not a person.

### Variables in links

Links can carry variables too, which is how you send someone to their own page rather than a generic one. In the link editor, click **Insert variable**; the link then contains something like `{{session.firstName}}`, filled in per recipient when the message goes out. In a banner, use **Insert variable in link**.

Test that with a real contact before sending. A link with an empty variable produces a URL that looks fine and leads nowhere, and nobody reports it: they just don't click the next one.

### How much to personalise

A first name and something specific is plenty. Messages that recite everything you know, from plan to signup date, read as surveillance rather than service.

### Related

-   [Identify users and send attributes and events](https://help.gleap.ai/en/articles/230-identify-users-and-send-attributes-and-events.md)
    
-   [Decide who gets a message, when, and how often](https://help.gleap.ai/en/articles/321-decide-who-gets-a-message-when-and-how-often.md)
    
-   [Send emails, chat messages, push and WhatsApp](https://help.gleap.ai/en/articles/325-send-emails-chat-messages-push-and-whatsapp.md)
    
-   [WhatsApp message templates and when you need them](https://help.gleap.ai/en/articles/286-whatsapp-message-templates-and-when-you-need-them.md)
