Text templates (Pebble)
Wherever evalink talos sends or shows text, you can write placeholders that are filled in from the alarm, the site and the workflow when the text is needed. The template language is Pebble.
Alarm {{ alarmCode }} at {{ device.name }}, {{ alarm.timestamp | date('dd.MM.yyyy HH:mm') }}
Output: Alarm BA at Shop Bahnhofstrasse, 04.04.2025 14:14
Where you can use templates
| Where | For example |
|---|---|
| Workflow steps | Step texts, SMS and call texts, email subject and text, webhook URL and body |
| Notifications | Email, SMS and call texts |
| Incoming webhooks | Field mappings that build the alarm |
| Alarm Dispatcher and escalation | Messages to monitoring stations and escalation texts |
| Integrations | Free texts of interventions |
| Reports | Report and PDF texts |
Three kinds of braces
| Write | Does |
|---|---|
{{ … }} |
Prints a value |
{% … %} |
Logic: if, for, set |
{# … #} |
A comment that doesn't appear in the text |
{# Test mode first #}{% if device.testMode %}TEST: {% endif %}{{ alarm.alarmName }} at {{ device.name }}
Find the names you can use
- In a text field, press Ctrl+Space: the list shows what the field offers, including your company's custom fields.
- Print a value as JSON with
dump(), for example{{ dump(alarm.headers) }}, and run the workflow on a test alarm.
A name that doesn't exist prints nothing, not an error. See When a template doesn't work.
Watch the whole story
Write a templateWrite your first template step by step: print a value, give it a fallback, shape it with a filter, add text only when a condition is true, and repeat text for a list.Data you can useThe data a template can use: the alarm and its site, the workflow, the results of earlier steps, the contact being called, and your company's environment variables.Filters and functionsShape values with filters and look up more data with functions: dates and times, text, numbers, JSON, encodings, and the alarm functions evalink talos adds.ExamplesReady-to-copy templates for common jobs: SMS and email texts, call texts, webhooks, and the results of earlier steps. Replace the step references, such as twilioCall , with the Step Reference of your own step.When a template doesn't workWhat to check when a template prints nothing, prints the wrong value, or makes a step fail.
Loading the walkthrough…