Templates are how you author the actual content Spotzee sends. Every template belongs to a campaign and targets a single channel. Each template has a locale, so a campaign can carry multiple variants of the same channel for different audiences.Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Templates live inside the campaign that uses them, not as a separate top-level catalogue. Editing a campaign’s templates requires the project
editor role or higher. Liquid renders user attributes and event data into every field that supports variables.The template model
Two attributes shape every template: its channel type and its locale.- Channel type decides which fields the template carries. An email template has
from,subject, andhtml. A push template hastitle,body, andurl. The two types share no fields. - Locale lets you author variants of the same template for different audiences. A campaign sending in English and German would carry one email template per locale.
Channel field reference
- Email
- SMS
- Push
- Webhook
- In-app
Email templates are the most field-heavy. Compose with HTML, MJML, or plain text.
The
| Field | Purpose |
|---|---|
from | The sender address. Either a plain email or an object with name and address. |
reply_to | Optional. Where replies go. Defaults to the from address. |
cc, bcc | Optional carbon-copy recipients. |
subject | The subject line. Liquid-rendered. |
preheader | Optional preview text shown next to the subject in most clients. HTML emails only; plain-text emails have no preheader. |
html | The HTML body. Required for code and visual editor modes. |
mjml | Optional MJML source. When present, the visual editor compiles it down to HTML on save. |
text | Optional plain-text alternative. Required for the plain editor mode. |
editor | One of code, visual, or plain. Decides which fields are required and which the UI shows. |
subject, preheader, from.name, from.address, reply_to, cc, bcc, text, and html fields all run through Liquid before sending.Liquid variables
Spotzee renders fields that support variables through Liquid. The most common variables are exposed under three roots:{{ user }}for the user’s attributes ({{ user.email }},{{ user.first_name }},{{ user.attributes.tier }}).{{ project }}for project-level configuration.{{ context }}for run-time context likecampaign_id,reference_id, and the user’s enrolment data.
Locale variants
Multi-locale projects rely on per-template locales. The pattern is straightforward:- Set a project default locale in Settings → General → Regional defaults.
- Create the default-locale template inside your campaign.
- Add per-locale variants for each additional audience (
en-US,de-DE,es-MX, and so on).
Email editor modes
Email templates carry aneditor field that decides which authoring surface you see:
codedrops you into raw HTML. You write or paste HTML directly. Good for templates moved over from another platform or built externally.visualuses a drag-and-drop builder backed by MJML. Themjmlfield stores the source; thehtmlfield stores the compiled output that Spotzee actually sends.plainis plain-text only. Thetextfield is required and thehtmlfield is ignored. Use this for transactional notifications, agent-style communications, or audiences where HTML is unwelcome.
visual to code discards the MJML source (the compiled HTML stays).
Tracking and link wrapping
Two project-level switches change what Spotzee does to template content at send time:- Track opens (email). When on, Spotzee injects a 1×1 tracking pixel into HTML emails so you can report opens. Plain-text emails (
editor: plain) never get a tracking pixel. - Wrap links (email and push). When on, Spotzee rewrites every link through your tracking domain so you can report click-throughs. The link wrapping respects your custom domain configuration if one is set.
Next steps
Concepts
Brush up on Users, Journeys, Segments, Channels, and Providers.
Trigger a campaign
Send a one-shot campaign through the API.
Set up a project
Configure your default locale and tracking switches.
Provider catalogue
See which providers handle each channel type.