Appearance
Personalising with variables
Variables fill in details for each person, so a message reads "Hi Maria" instead of "Hi there". They also carry data from one step to the next.
What you'll achieve: personal messages that never come out blank or wrong.
Time needed: 5 minutes.
Before you start: a workflow with a trigger, so Flowtracker knows which details are available.
Steps: insert a variable
Click a step and put your cursor in a text field, such as a message or note.
Type
{{, or click the {x} button. The variable picker opens with everything available at this point in the workflow:Group Contains Trigger Data Details from whatever started the run, such as the message text, the chat, the tracked link, or the Telegram user's name. Contact Properties The person's contact record: name, email, phone, city, country, Telegram username and your custom properties. Registration Data Broker registration details, when the trigger relates to one. One group per earlier step What each previous step produced, such as a found lead or a generated AI reply. Variables Values you stored with Set Variable, plus some set by steps (for example the tapped button). System The current date and time, hour and time zone. Secrets Passwords and keys you stored under Automation → Secrets. Never shown in previews or logs. Click the one you want. It's inserted in the right format, for example
{{contact.firstName}}.Save, then test to see the real value filled in.
Use the picker
The picker always writes the correct name. Typing variables by hand is the most common cause of blank messages.
The rules
Always include the prefix
{{firstName}} on its own does not work, and your message will contain nothing where the name should be. Every variable must start with one of these words:
| Starts with | Means | Examples |
|---|---|---|
contact. | The person's contact record | {{contact.firstName}}, {{contact.lastName}}, {{contact.email}}, {{contact.phone}}, {{contact.city}}, {{contact.country}}, {{contact.telegramUsername}} |
contact.customProperties. | Your own fields | {{contact.customProperties.account_type}} |
lead. | The lead from a CRM trigger | {{lead.firstName}}, {{lead.status}} |
trigger. | Anything from the trigger | {{trigger.firstName}} on a Telegram trigger, {{trigger.message.text}}, {{trigger.leadId}} |
nodeOutputs. | Output of an earlier step (the picker fills in the step's id) | {{nodeOutputs.STEP_ID.FIELD}} (pick it from the picker rather than typing it) |
variables. | Values stored with Set Variable, or set by steps | {{variables.callbackData}} (the button someone tapped) |
system. | Time and environment | {{system.now}}, {{system.currentHour}}, {{system.timezone}} |
secrets. | A stored secret | {{secrets.MY_API_KEY}} |
When contact details aren't available
Contact properties only appear for triggers about a person, such as a message, a join, a lead or a tag. Scheduled, One-time, Manual, Webhook, Contact date-style and Link clicked triggers have no contact attached, so contact fields would always be empty there. That's why the picker doesn't offer them.
Functions: fallbacks, formatting, first words
Wrap a variable in a function to clean it up. Functions can be nested.
| Function | Example | Result |
|---|---|---|
ifEmpty | {{ifEmpty(contact.firstName, "there")}} | Maria, or there if no name is saved |
coalesce | {{coalesce(contact.firstName, trigger.firstName, "there")}} | The first value that exists |
capitalize | {{capitalize(contact.firstName)}} | maria → Maria |
upper / lower / trim | {{upper(contact.country)}} | es → ES |
split + first (optional) | {{first(split(contact.firstName, " "))}} | Maria Lopez → Maria, for people who typed both names into one field |
replace | {{replace(contact.phone, "+", "")}} | Removes the plus sign |
formatDate | {{formatDate(system.now)}} | A readable date |
round | {{round(variables.total, 2)}} | Two decimals |
Others include length, substring, contains, startsWith, endsWith, join, last, isEmpty, toNumber, encodeURI, min and max.
Getting names right
How names are saved
- Telegram (bot and personal account): First name is the person's Telegram first name and Last name is their Telegram last name. So
{{contact.firstName}}gives Maria, not Maria Lopez. - Until Flowtracker knows someone's name (for example right after a join request, before they've messaged), the contact may briefly show a placeholder such as Telegram User 12345. It's replaced with their real first and last name as soon as Flowtracker learns it.
- A name with no letters at all (for example only emoji) is saved as Unknown.
- Flowtracker keeps names as the person typed them. If someone typed both words into Telegram's first-name box, their first name is Maria Lopez.
The safe greeting
Hi {{ifEmpty(contact.firstName, "there")}}!This gives Hi Maria!, or Hi there! if no name is saved.
On Telegram triggers such as Join request and /start received, the trigger also carries the person's Telegram first name, available instantly. Use it in the very first message:
Hi {{ifEmpty(trigger.firstName, "there")}}!Optional: first word only. If many of your contacts typed their full name into Telegram's first-name box, take just the first word:
Hi {{ifEmpty(first(split(contact.firstName, " ")), "there")}}!Fix the record too
If a lead's name is stored wrongly, open the lead in CRM → Leads and correct First Name / Last Name. Future messages use the corrected name.
"Unknown"
If a person's name has no letters, the contact's first name is Unknown, and the greeting above would say Hi Unknown!. If your audience uses emoji-only names, prefer the Telegram trigger's name, or use a neutral greeting.
Storing your own variables
Use Set Variable to keep a value for later steps:
- Variable Name, for example
offerCode. - Value Source: Literal text (stored exactly as typed), Expression (fills in
{{…}}first) or Copy from a context path. - Later steps use it as
{{variables.offerCode}}.
To see every variable in a workflow, open Variables in the canvas toolbar (Ctrl+Shift+V).
Check it worked
- Click Test Run and pick a real conversation or lead.
- Open the send step in the run. The message shows the filled-in text, for example Hi Maria!.
- Test with a contact that has no name too. You should see your fallback (Hi there!).
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| The greeting says "Hi !" | Missing prefix ({{firstName}}) or no fallback. | Use {{ifEmpty(contact.firstName, "there")}}. |
| The greeting shows the full name | The person typed their full name into Telegram's first-name field. | Edit the lead's First Name / Last Name, or use the optional first-word formula above. |
| The greeting says Telegram User 12345 | The message went out before the person's real name was known. | Use {{trigger.firstName}} on Telegram triggers. |
| A variable is empty on a scheduled or webhook workflow | Those triggers have no contact. | Use {{trigger.…}} fields, or a Find Customer / Find Lead step first. |
| A message went out with a blank where data should be | The variable couldn't be filled. | Turn on Strict variable resolution in Execution & reliability, so the step fails instead of sending blanks. |
Text with {{…}} was stored as-is | Set Variable used Literal text. | Switch Value Source to Expression. |