evalinkdocs

Examples

Ready-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.

See all data a step can use

Before you write a template, print what is there. Put this into a step text and run the workflow on a test alarm:

{{ dump(device) }}
{{ dump(alarm.headers) }}
{{ dump(twilioCall) }}

Each line prints the value as JSON, so you can copy the exact names. See Data you can use.

Add a line only in test mode

SMS, email, step text:

{% if device.testMode or alarm.testMessage %}TEST – no action needed. {% endif %}{{ alarmName() }} at {{ device.name }}

Output: TEST – no action needed. Burglary at Muster AG Zürich

Use the company name, or the site ID if it's missing

{{ device.customerCompany | default(device.evalinkDeviceId) }}

Output: Muster AG, or Site-001 if the site has no company name.

Different text per alarm type

Call text, SMS:

{% if alarm.alarmType == 'FIRE' %}Fire alarm at {{ address }}{% elseif alarm.alarmType == 'BURGLARY' %}Intrusion at {{ address }}{% else %}{{ alarmText() }}{% endif %}

Output: Fire alarm at Muster AG, Bahnhofstrasse 1, 8001 Zürich, Switzerland

Show the alarm time

In the site's time zone, or in a fixed one:

{{ alarm.timestamp | date('dd.MM.yyyy HH:mm') }}
{{ alarm.timestamp | date('dd.MM.yyyy HH:mm', timeZone='Europe/Zurich') }}

Output: 01.12.2026 14:05

Tomorrow at 08:00

{{ now | toTime('08:00', 1) | date('dd.MM.yyyy HH:mm') }}

Output: 02.12.2026 08:00. Leave out | date(...) to get milliseconds, for example for an API.

SMS, email:

Alarm {{ alarm.shortId }} at {{ device.name }}: {{ alarmShareLink() }}

The link is valid for 60 minutes.

Use an alarm header, with a fallback

For example the account in an Alarm Dispatcher template:

ARC-{{ alarm.headers['dispatch-account'] | default('9999') }}

Output: ARC-1234

Some receivers add a link to a clip or picture in the header attachment.url:

Alarm {{ alarmCode }} – File: {{ alarm.headers['attachment.url'] }}

To pass it as a parameter in another link, encode it:

https://viewer.example.com/open?file={{ alarm.headers['attachment.url'] | urlEncode }}

Webhook URL or parameter:

https://api.example.com/jobs?zone={{ alarm.alarmZoneName | urlEncode }}

Output for the zone Entrance + Parking: …?zone=Entrance+%2B+Parking

Escalate after repeated attempts

Call text of a step that runs several times, here with the reference callOperator:

{% if callOperator.executionCount >= 3 %}Call the police!{% else %}Attempt {{ callOperator.executionCount }} of 3{% endif %}

Output on the second run: Attempt 2 of 3

List who acknowledged a Twilio call

A Twilio Call step lists the contacts it called, those who acknowledged, success and rejected. Each entry has name and phone.

{{ twilioCall.acknowledged | length }} acknowledged:
{% for p in twilioCall.acknowledged %}- {{ p.name }} ({{ p.phone }})
{% endfor %}

Output:

2 acknowledged:
- Anna Muster (+41791112244)
- Ben Keller (+41794442233)

Show who verified the alarm

The Twilio Alarm Verification and Twilio SMS Verification steps keep the contact who answered in responder, with outcome (for example VERIFIED or FALSE_ALARM):

{% if twilioVerifyAlarm.responder is not empty %}Verified by {{ twilioVerifyAlarm.responder.name }}: {{ twilioVerifyAlarm.responder.outcome }}{% endif %}

Output: Verified by Anna Muster: VERIFIED

Use an answer from a form

A Form step keeps its fields as JSON text in fields. Read one answer by its label:

{{ (fromJson(form.fields) | get('$[?(@.label=="Customer phone")].value'))[0] }}

Output: +41790000000. You can use this, for example, as the phone number of a later call step.

List all answers:

{% for f in fromJson(form.fields) %}{{ f.label }}: {{ f.value | default(f.values | join(', ')) }}
{% endfor %}

List the alarm's files

Email, report:

{% for f in files() %}{{ f.name }} ({{ f.contentType }}, {{ f.size }} bytes)
{% endfor %}

Output: snapshot.jpg (image/jpeg, 48213 bytes). Only files under 1 MB are listed.

Send the alarm as JSON to a webhook

Body of a Trigger Web Hook step with JSON content:

{"site": "{{ device.evalinkDeviceId }}", "code": "{{ alarm.alarmCode }}", "time": "{{ alarm.timestamp | date("yyyy-MM-dd'T'HH:mm:ssXXX") }}", "alarm": {{ toJson(alarm) }}}

toJson() inserts the whole alarm as JSON.

Use a secret key in a webhook

Header Authorization of a Trigger Web Hook step, with a secret environment variable:

Bearer {{ env('PARTNER_API_KEY') }}

The key is filled in only when the step sends; previews show the text unchanged. Don't add filters to env().