Templates
Translator note: machine-translated baseline. Needs human review by a native UK speaker. EN source is canonical.
Templates — це reusable message bodies. Один template per channel (email, sms, push, telegram). Змінні Mustache-render-яться проти traits гравця + journey/campaign context.
Channels + поля
| Channel | Обов'язкове | Опційне |
|---|---|---|
body (HTML), subject | preheader (preview text) | |
| sms | body (plain text, ≤1600 знаків) | — |
| push | body (notification body), subject (title) | data (key-value payload для in-app handling) |
| telegram | body (Markdown / HTML) | — |
Змінні
Mustache syntax:
<p>Welcome, {{first_name | default: "player"}}!</p>
<p>Your bonus code: <strong>{{bonus.code}}</strong></p>
{{#has_unfinished_bet}}
<p>You have a bet still pending — open the app to follow.</p>
{{/has_unfinished_bet}}
Доступний context:
{{external_id}}{{email}}{{phone}}{{first_name}}{{last_name}}{{total_deposited}}{{total_wagered}}{{ggr}}{{current_tier_code}}{{kyc_status}}- Journey context:
{{journey.run_id}}{{journey.context.<key>}} - Bonus context (коли викликаний з
grant_bonus):{{bonus.code}}{{bonus.amount}}{{bonus.currency}}
Для JSON bodies у webhook nodes використовуйте triple-stache {{{var}}}, щоб skip HTML escaping.
Live preview + send-test
Editor previews rendered output проти syntetичного гравця. Клацніть Send test для dispatch однієї message на ваш email/phone (обходить frequency caps + quiet hours; admin-only).
Versioning
Templates mutable, але bonus_grants бере frozen snapshot template-у в issue time (тож editing template-у пізніше не змінює retroactively історичні sends). Campaign sends використовують live template at fan-out time.