Smaily templates and fields

The engine writes personalised fields onto every contact each night. Your Smaily templates and automations use them like any merge field — there is no new sending platform.

Recommendation slots (1-9)

Every slot N (1..9) carries the same fields:

FieldContent
rec_N_skuproduct code; empty = no slot (use this as the condition)
rec_N_nameproduct name in the customer's language (when the store sent no language but the customer's website: the language most of that website's customers have; the link and copy follow it too)
rec_N_descriptionshort description (max 200 chars)
rec_N_priceprice
rec_N_compare_pricecompare-at price for showing a discount (may be empty)
rec_N_image_urlproduct image
rec_N_link_urlfull product link with tracking parameters
rec_N_link_paththe same link WITHOUT the domain (see the link pattern below)
rec_N_headlineready-made headline phrase — in rec_N_name's language when the store's industry pack has copy in it, else in the store's default language; a product name inside the phrase is always in rec_N_name's language (the same holds for rec_N_cta and rec_N_reason)
rec_N_ctaready-made button copy
rec_N_reasonhuman-readable reason the product was picked; may name the product that prompted it (e.g. the earlier purchase). A purchase is named only when the recommendation rests on the customer's real purchase or activity: a product picked as a store favourite, or picked without a purchase behind it, carries no reason line, or a neutral sentence in some industry packs — it never says "because you bought"

An empty slot is written empty (not left stale), so a template can always trust the condition:

{% if rec_4_sku and rec_4_sku != "" %} ... slot 4 content ... {% endif %}

Use exactly this nil-safe form: a missing field is nil in Liquid (not an empty string) — that is what a comparison-group contact looks like after the engine removes their fields. A bare == "" comparison OR a bare {% if rec_4_sku %} alone would each leave one case uncovered and produce empty product cards.

The text fields are HTML-safe. rec_N_name, rec_N_description, rec_N_headline, rec_N_cta and rec_N_reason arrive with ", ', <, > and & written as HTML entities (&quot;, &#39;, &lt;, &gt;, &amp;), so a name like Rose "Lady's Pink" shows as typed both in the text and inside an attribute, e.g. alt="{{ rec_1_name }}". Links, prices and product codes are written as they are. rec_subject_hook is not escaped, because the subject line shows an entity literally.

In templates, use your store domain + link_path:

<a href="https://your-store.com/{{ rec_1_link_path }}">{{ rec_1_name }}</a>
  • link_path already contains the full path and tracking parameters (including smaily_rec, which the store plugin captures at purchase). Do not insert your own catalog prefix (e.g. /product/) — the path is already in there and a double prefix produces a 404.
  • Why not just link_url? That works too if your template allows a full URL; link_path exists so the link reliably lives on your domain and attribution works.

Ready-made product block (9 recommendations)

A ready HTML block shows all 9 recommendation slots. Each product shows its image, the headline (rec_N_headline), the product name, the reason line (rec_N_reason), the price (with the struck-through compare price when there is one) and a button whose text comes from rec_N_cta. A slot without a product shows nothing. On a wide screen there are 3 products per row, on a phone 1. The block is table-based, its styles are inline and it uses no external files or scripts, so it works in the common email clients. The block has no discount section.

File: product-block.txt. The same file works for every language, because all text comes from the fields.

How to put the block in an email

  1. Open the file from the link, select all text (Ctrl+A / Cmd+A) and copy it.
  2. Add an HTML element to the Smaily template and paste the block into it.
  3. Replace every https://your-store.com in the block with your store's address (find and replace, without a trailing slash) — see the link pattern. Optionally replace #be3e77 with your brand colour. Prices show a euro sign.
  4. Send a test email to a contact who has recommendations and check the images, links and prices.

A comparison-group contact and a contact without recommendations see nothing from the block — keep other content in the email too.

Subject line

Write {{ rec_subject_hook }} in the campaign's subject field — every customer sees their own subject-line hook. Use it only on a send without the comparison group, and read the caveats there first.

Per-customer texts

Besides the product itself, the engine writes four ready-made texts onto each contact. A static template says the same thing to everyone; these texts change with the customer and the product.

FieldWhat it is
rec_N_reasonone sentence: why this product was picked for this customer (may be empty on a product picked as a store favourite or without a purchase behind it)
rec_N_ctathe button text that fits the pick ("Re-order", "View", "Discover")
rec_N_headlinea short headline phrase about the product
rec_subject_hooka subject line for this customer (subject-line hook)

The same email for two customers of a pet store, from one template:

Anna buys the same dry food every monthMarek bought a cat tree last week
SubjectTime to restock: AcanaMarek, your weekly pick
Product 1Acana Adult Cat 1.8 kgSisal scratching mat
Reason lineYou typically buy this every 30 daysRecommended because you recently bought Cat tree Oslo
ButtonRe-orderView

Why use them. The reason says what a template cannot: it names this customer's own purchase or habit, so the product reads as a pick and not as an advert. The button text follows the pick — a reorder says "Re-order", a new product "Discover". A product picked by a rule names what prompted it; a product that fills the list carries the pack's general line.

Where they already are. The engine's starter designs show the reason line under each recommended product's name and take the button text from rec_N_cta (see Starter design). The ready-made product block shows all three per product.

In your own Smaily template, put this inside a slot's rec_N_sku guard (here slot 1; replace https://your-store.com and repeat with 2–9):

<a href="https://your-store.com/{{ rec_1_link_path }}">{{ rec_1_name }}</a>
{% if rec_1_reason and rec_1_reason != "" %}
  <p>{{ rec_1_reason }}</p>
{% endif %}
<a href="https://your-store.com/{{ rec_1_link_path }}">
  {% if rec_1_cta and rec_1_cta != "" %}{{ rec_1_cta }}{% else %}View{% endif %}
</a>

The {% if %} leaves no empty line when the reason is empty, and the button falls back to your own text. The fields are empty for a comparison-group contact and for a contact whose fields the engine has cleared.

Language. The texts are in the contact's language when the store's industry pack has copy in that language, otherwise in the store's default language. A product name inside a text is always in rec_N_name's language.

Analytics fields on the contact

FieldContent
rec_segmentsegment
rec_engagement_state / rec_engagement_trajectorystate and direction
rec_days_to_replenish / rec_replenish_sku / rec_predicted_next_replenish_atreplenishment
rec_discount_tier_suggestedsuggested discount tier (0/5/10/15) for this customer's sensitivity; always 0 until the store offers discounts
rec_loyalty_brand_top / rec_loyalty_scorefavourite brand and loyalty
rec_preferred_send_windowthe customer's best send window
rec_active_triggerscurrently active reasons, comma-separated (see the value list below)
rec_subject_hook / rec_subject_hook_typeready-made subject-line hook and its category
rec_last_sync_at / rec_engine_versionwhen the data was refreshed
languageSmaily's own native field — lets you language-segment your static copy; written only when the store sent the customer's language, and never blanked (otherwise Smaily keeps its value)

What rec_active_triggers can contain

rec_active_triggers is a comma-joined list of the reasons the engine currently sees for this customer — you can branch or segment on it in Smaily. The possible values:

ValueMeaning
cadence_window_reacheda recurring product is predicted to run out soon
dormant_to_clickera long-quiet customer clicked an email again
life_stage_transition_duethe pet is crossing an age band (pet stores only)
category_first_purchasefirst-ever purchase in a category
purchase_in_categorya recent purchase to follow up with matching products
stock_status_changea relevant product's stock status changed
aov_below_free_shipping_thresholdthe basket is just below your free-shipping line
seasonal_window_opena seasonal window has opened

Which values can appear depends on your store's sector — for example the life-stage trigger only applies to pet stores.

Cohort flags (rec_seg_<slug>)

Separately from the nightly sync, the console's "Create Smaily segment" action (available on any filtered Audience view) writes a cohort flag onto the chosen contacts: a field named rec_seg_<segment-slug> set to "yes". It is a partial push — only the contacts in that cohort get the flag, and re-running the same-named segment clears it from contacts that have left the group. Build your Smaily segments and automations on that flag. Note this is written on demand, the moment you click the action — not by the nightly sync.

Value formats (for template conditions)

  • Prices (rec_N_price, rec_N_compare_price) are bare numbers with two decimals and no currency symbol (e.g. 12.90) — add the € yourself in the template.
  • Personal prices (price groups). Once the store's plugin sends price groups (contract 1.36.0), a customer in a group (wholesale, staff, a loyalty tier, a negotiated price) sees their group price in rec_N_price, rec_bis_price and rec_rep_price; everyone else, and every product without a price for the customer's group, shows the public price. So do not label rec_N_price as the "regular price" in a template. rec_N_compare_price stays the store's own pre-sale price. On the store's website the recommendations show the group price only to a logged-in customer the store names by its customer id; a returning guest recognised by the cookie sees the public price. The engine chooses products by the public price; the group price only changes the number shown.
  • rec_discount_tier_suggested is a whole number written as text (0 / 5 / 10 / 15). Build the template so that 0 shows no discount block at all: besides customers who buy fine without one, a small fixed share (~10%) of contacts is deliberately kept at 0, so the engine can see what happens without a discount and learn who actually needs one.
  • Until the store offers discounts, rec_discount_tier_suggested is 0 for every contact and no subject line promises a discount. This is the default for every store; the operator switches discounts on per store (admin → Settings → Discounts) once the store gives the discount codes its templates show.
  • In a wine, beer and spirits store rec_discount_tier_suggested is always 0 (the switch cannot be turned on) and rec_N_compare_price is always empty: alcohol is never recommended with a low price. A customer's personal price (price group) is their real price, not a discount, and shows in rec_N_price once the store has confirmed its lawyer accepts it. The required alcohol warning belongs in the store's own template footer — the engine puts it in no field.
  • In a travel and experiences store, show three recommendations, not nine: a traveller compares a few trips, not a catalogue (the contact still carries nine slots). Label the price as a starting price (from {{rec_1_price}} € or "indicative price") — rec_N_price is the price the store sent, not a final price. Put no rec_* block in a service or booking email (confirmation, pre-departure information, changes, cancellations): the store confirms this before it goes live.
  • Timestamps (rec_predicted_next_replenish_at, rec_last_sync_at) are in ISO format.

Subject-line hook

rec_subject_hook is a short (≤30 characters), ready-to-use subject line personalised per customer — for example "Time to restock: Acana", "New from Orijen" or "Personal picks for you". The engine picks exactly one per customer from a small ladder (replenishment due → win-back → favourite brand → weekly pick → generic).

The examples are the Pet supplies pack's wording. Other packs word their hooks differently — for example, the Home & surface care pack's weekly pick is "This week's surface care picks".

Every customer who gets recommendations gets a hook: a customer with no strong signal gets a clean generic phrase. The field is empty:

  • for a comparison-group (holdout) contact;
  • for a contact whose fields the engine has cleared (unsubscribe or profiling objection);
  • in a salon, for a customer with an open booking;
  • in a spa, for a customer with an open booking when their hook would be a replenishment (replenish) or win-back (winback) hook — a hook of any other type stays.

So the subject needs a fallback for them. The engine's starter designs write it like this (within the allowed tags, see Merge tags in a design):

{% if rec_subject_hook and rec_subject_hook != "" %}{{rec_subject_hook}}{% else %}<static subject>{% endif %}

Only on a treatment send can you set the whole subject row to just the merge tag:

{{ rec_subject_hook }}

rec_subject_hook_type carries the language-neutral category (replenish / winback / brand / top_pick / generic) — use it to segment or to branch, not the localised text.

Caveats:

  • For any send that may include the comparison group (holdout), the hook is intentionally blank for those contacts — use a static subject for such sends and reserve {{ rec_subject_hook }} for treatment-only sends. The engine's starter designs for the win-back and life-stage emails carry that fallback themselves: their subject is the hook when the contact has one and the static subject otherwise. The post-purchase starter keeps its own subject: the email is about the order, and the hook is about the customer's picks.
  • When a subject has a condition ({% if %}), send a test email before the first real send and check that the subject comes out right.

Automation recipes

  • Replenishment: trigger when rec_days_to_replenish <= 5 — see the replenishment page.
  • Win-back: trigger when rec_engagement_state changes to lapsed; take the discount size from rec_discount_tier_suggested.
  • Branching content by state:
{% if rec_engagement_state == "lapsed" %}
  <p>We haven't seen you in a while…</p>
{% else %}
  <p>{{ rec_replenish_sku }} is about to run out:</p>
{% endif %}

The design page and its editor

Your store's plugin opens one email at a time on the engine's design page. The header names the email and has three buttons: Save, Preview with your products and Close (or Back to your store in a browser tab). When you leave with unsaved changes, the page asks first. Inside your store's admin the page opens in a window over the admin; when that window is smaller than 1024 × 640 pixels, the page asks you to make it larger or to open the design in a new tab.

You design the email in the email editor (Stripo): drag blocks, change texts, images, colours and buttons. The editor opens your saved design, or the starter design when you have not saved one. Its merge-tag menu offers only the fields Smaily fills in (the customer's first name, the email's own product, the recommended products 1–3, the discount, the cart or order lines and the unsubscribe link), and its conditions show a block only when the customer has that product or is offered a discount. The editor's colour palette and fonts are your brand's. The editor itself is in your language, like the page around it: Estonian for an Estonian store, English otherwise. Above the editor you set the subject, the preheader and the sender.

Above the editor are two view controls. Desktop and Mobile switch the editor between the email's desktop and mobile view; press the other one to switch back. With my products shows the email you are editing right now, saved or not, with products from your store in every recommendation slot, in the editor's place and at the width you chose. Turn it off to go on editing: your unsaved changes are still there. It never saves anything.

Preview with your products shows your last saved design with products from your store. Save first to see your changes there.

The page tells you in plain words where the email stands: saved or not, and for an engine email whether real sends are on and what still blocks them. If the editor does not open within 15 seconds, the page says so and offers Retry.

Test email and real sends

The design page of an engine automated email (for example the post-purchase recommendation) has two boxes: Test email and Real sends. The design page of a plugin or transactional email has neither.

Test email. Type one email address and press Send test email. Smaily sends the email through its Smaily workflow, with real products from your store and no customer's name. The test shows the design your Smaily workflow holds, not the design saved on the design page. The address joins your Smaily list as a test contact; the engine keeps no copy of it. You can send at most 10 test emails an hour. When the email has no Smaily workflow yet, its design did not pass the check or it has no subject, the button is grey and the reason shows above it. A test email is not a condition: you can switch real sends on without one.

Real sends. Tick "I confirm that your customers will receive this email." and press Switch real sends on. The engine records when you switched them on. When something blocks it (the email has no Smaily workflow, no design is saved, the design did not pass the check, it has no subject, or sends were stopped automatically), the box and the button are grey and the reason shows above them. When the email's Smaily workflow is not active yet (for example, the sender domain is not verified in Smaily), the page says "Starts when your sender domain is verified in Smaily." and sends start by themselves once the workflow is active; you do not switch again. Switch real sends off puts the email back in test mode: then only your test addresses receive it.

Real sends start slowly: from the first real email, at most 10 emails a day for 7 days, then 25 a day for 7 days, then 50 a day for 14 days, then your daily cap. A lower daily cap applies all the time. Each switch-on starts again at 10. The page shows today's limit: "Today at most 10 emails go out."

Automatic stop. The engine stops real sends by itself when, within 7 days, the email's real sends get one spam complaint, or more than 1% of at least 50 sends opt out. The email goes back to test mode and the page says "Sending is stopped." Neither you nor the plugin can end the stop: the Smaily team reviews it, and only then can you switch real sends on again. A test email and the reactions to it do not count toward the stop.

Merge tags in a design

A design you save on the engine's design page (HTML, subject and preheader) must render in Smaily today and in the new Smaily console later. It may use only these tags:

FormExample
a field{{ rec_1_name }} (the spaces inside are optional)
a condition{% if rec_1_sku and rec_1_sku != "" %} … {% else %} … {% endif %}
the unsubscribe link{{subscription}}

A condition is one of field, field == "text", field != "text" or field != other_field; join several with and. Use double quotes. A field name has lowercase letters, digits and underscores. The same rule applies to the subject line.

Every {% if %} closes with its own {% endif %} and has at most one {% else %}; a condition may sit inside another one. The design page does not save a design whose conditions do not pair up; its message names the tag and whether it is in the body, the subject or the preheader.

Not allowed: elsif, or, number comparisons (> 0 — every Smaily value is text, so compare with "0"), loops (for), filters (| upcase, | default: "…"), other tags (assign, {%-) and {{ unsubscribe_url }}. The design page does not save a design with such a tag; its message names the tag and the form to use instead. A refusal shows on the design page below the header, and your edits stay in the editor. Fallback text (| default: "…") is added to the allowed forms once it is tested on a real Smaily send.

Starter design and automation blocks

When you open an email on the design page and have not saved a design for it yet, the page shows the engine's starter design, built from your brand kit (logo, colours, font and footer). For an engine email (replenishment, win-back, post-purchase, life stage, back in stock) the starter design has automation blocks: the parts that carry the engine's logic — the text that names the email's own product, that product, the discount line, the recommended products and the unsubscribe line. Each automation block carries the attribute data-engine-lock, and the editor keeps them locked. Each recommended product shows its per-customer texts: the reason line under the name (no line when it is empty) and the customer's button text (the starter's own button text when it is empty). The subject of the win-back and life-stage starters is the customer's subject hook, with the static subject for a contact without one (the fallback form); the post-purchase subject is its own ("These go well with your order"), and the replenishment and back-in-stock subjects name their product. A design you saved earlier is not changed. Change the heading, the texts and the colours freely; the design page does not save a design from which an automation block, or a field one needs, was removed, and its message names the block. The plugin emails and the order and shipping confirmations keep their own starter design without automation blocks.

The Brand panel: one brand for every email

On the design page's Brand panel (the section "Brand: colours, logo and fonts", closed until you open it) you change your store's brand kit: the logo, the primary colour, the accent colour (empty = a light tint of the primary colour), the background and text colours, the button corner radius (Square 0, Rounded 4, Pill 24 pixels), the body and heading fonts (an empty heading font = the body font), the store name and URL, the footer text, the postal address, and the sender name and address. Each field shows where its value came from: "From your shop settings" (your plugin sent it), "From your website" or "Set here". A value set here stays when your plugin later sends another one; "Use my shop's setting" removes it, and the plugin's next value applies again.

Changes apply to every email of your store. Every saved design gets the new value in each place that held the old brand value, and a new version; colours and text you set by hand in an email stay. The same happens when your plugin sends a new brand kit or the engine reads it from your website — the panel shows the last brand change and how many emails it updated. Before you save, the panel shows a preview of the email with the new brand. When two brand colours had the same value in an email, the engine cannot tell them apart and leaves that colour unchanged; when a logo is added or removed in an email whose header you changed, add the logo in the editor yourself — the panel tells you both.

When the logo, the primary colour or the font is missing, the engine reads them once from your store's homepage, before you first design an email (the public page only, nothing personal). "Read from my website again" does it again and fills only empty fields or fields read from the website before.

Engine-run automations

The recipes above are automations you build on field conditions. There is now a simpler path: the engine watches your store data and enrols the contact into your Smaily automation at exactly the right moment for the right customer — for example when a recurring product is predicted to run out (replenishment) or when a lapsed customer clicks an email again (win-back). Your store and the plugin do not send anything; the engine enrols the contact and Smaily sends the email you built.

The setup lives in the store plugin's settings, in the "Engine-run recommendation automations" section (WooCommerce today; Shopify is next). The list of available triggers depends on your store's sector — for example the life-stage transition trigger only appears for pet stores — and every trigger comes with its description and recipe right in the plugin UI.

How to set it up

  1. In Smaily: build the automation. Create an automation with the "form submitted" trigger — that is the mechanism the engine uses to enrol a contact — and keep it active. Ready-made email templates are already on your Smaily account as draft campaigns (subject prefix "ENG DRAFT — …"); use one as the basis of the workflow email. The email uses the same rec_ fields and recommendation slots described above. (The win-back template shows a discount block with codes WB5/WB10/WB15 — create those codes in your store if you keep it.)
  2. In the plugin: connect the trigger. Open the automations section in the plugin settings, switch the trigger on and pick or enter the Smaily workflow it should run. On a multilingual store, set a workflow for each language plus a fallback.
  3. Test first. Test mode is ON by default — add your test addresses. In test mode only those addresses receive the email; with no test address nothing is sent at all. Check the email in a real inbox: images, links, empty slots.
  4. Activate for real. When the test email looks right, switch real sends on on that email's design page (Test email and real sends). When your plugin does not open the design page, tell us in writing that real customers may receive the email; a Smaily operator then switches real sends on for you in the engine admin, and that change is recorded. Turning test mode off in the plugin keeps the trigger in test mode.

Replenishment email fields

The replenishment automation (replenish_due) adds its own fields to the contact at the moment it enrols them. They describe the product the trigger found running out — use them in the email, not rec_1_* or rec_days_to_replenish: recommendation slot 1 can be a different product, and the nightly rec_replenish_sku can point at another recurring product.

FieldContent
rec_rep_skuSKU of the product running out
rec_rep_nameproduct name in the customer's language
rec_rep_priceprice, e.g. 19.90
rec_rep_image_urlimage URL (empty when there is no image)
rec_rep_link_pathlink without the domain — use href="https://yourstore.com/{{rec_rep_link_path}}" as for the slots (link pattern)
rec_rep_link_urlthe same link as a full URL
rec_rep_daysdays until the predicted run-out; never negative — 0 = out or about to run out

The nightly sync does not write these fields, so do not use them in a mass campaign. The back-in-stock email gets rec_bis_* fields the same way.

How it behaves

  • Off until you switch it on (fail-closed): the engine never sends on a trigger you have not activated.
  • Cooldown per customer: the same customer does not get the same automation again within its cooldown window (for example replenishment defaults to 7 days). Back in stock counts per customer and product: an alert about one product does not hold back an alert about another.
  • The trigger list, descriptions and recipes come straight from the engine into the plugin UI — a new trigger appears there without a plugin update.

The field-based path still works

Everything above this section — Smaily segments and automations built on the rec_ fields — remains fully supported and keeps working. Engine-run automations are the simpler, recommended path (the engine picks the moment for you); the field-based path stays available as the flexible fallback, for example for a store that does not run the plugin.

How often fields update

Different data refreshes on different clocks. All times below are UTC (Tallinn clocks read 2 hours later in winter, 3 hours later in summer):

DataWhen it refreshes
Recommendation slots (rec_N_*), all rec_* analytics and the subject hookRecomputed by the nightly chain (engagement → calibration → trigger detection → recommendations) and pushed to Smaily around 05:00. Changed customers are also recomputed a few times during the day (about 09:10, 13:10 and 17:10). A customer whose list changed is pushed again by the next contact sync, which runs every 30 minutes (at :20 and :50), so the new list reaches Smaily within about an hour. A product that has been out of stock for 2 hours, or that is no longer recommended (the operator excludes it, or the store switches gift cards off), counts as a change: the next recomputation replaces that product in every list that shows it, at the same place, and the list's other products stay as they are. A customer whose list did not change since their last push is not pushed again. These pushes only write contact fields; no email is sent.
Smaily native languageSame nightly contact sync — and only when the store sent the customer's language.
Cohort flags (rec_seg_<slug>)On demand only — the moment you use the console "Create Smaily segment" action.
Opens & clicks (they feed engagement and attribution)Pulled from Smaily every 15 minutes, with a full backfill each night around 02:00.
Campaign statistics (Insights)Refreshed hourly; a campaign's numbers keep settling for about 35 days (late opens).
Daily metrics (Home / Insights history)Aggregated at 06:00; today and yesterday are shown live in the console in the meantime.
Totals over longer periods (Home: revenue influenced by Smaily emails; Insights: engine-attributed revenue per campaign and per recommendation type, the top products)Summed at 06:00 for every day before today; today is added live. A change to an earlier day (a late cancellation or a late credit) shows after the next 06:00.

Need certainty right before a send? See the next section.

When a contact unsubscribes

Once Smaily reports a contact as unsubscribed, the engine stops enriching them. They receive one final sync that empties all rec_ fields — so no stale recommendation is left sitting on an opted-out contact — and after that the engine never writes to them again. Nothing else about them is deleted: their purchase history keeps feeding the model, and if they re-subscribe they re-enter the sync on the next nightly run and get a full set of fields back.

The same applies to a profiling objection (GDPR Art 21): such a contact may stay on your list, but the engine computes nothing for them — their rec_ fields are emptied once and never written again. A contact who is both unsubscribed and objecting is emptied once, not twice.

Before sending

There is no manual sync step. The recommendation fields reach Smaily with the morning sync around 05:00 (table above), so a campaign sent after it uses that night's recommendations — or a newer list for a customer whose list changed during the day. A segment created with the console "Create Smaily segment" action writes its flags at once. A store that is not yet activated gets no fields at all; the operator activates it first.

Technical background

Field construction: lib/smaily/contact-sync.ts (slots + analytics; empty slot = null write) and lib/smaily/sync-tenant.ts (language localisation, link_path = URL without scheme/domain/leading slash). The link's smaily_rec parameter is the attribution signal. Spec §8.5. Engine-run automations: trigger catalog lib/automations/catalog.ts; email content spec docs/AUTOMATION_EMAILS_SPEC.md.

Last updated: 2026-11-26