Skip to main content

Overview

Templates control the text content of notifications. If a trigger has no template assigned, Alius uses a built-in default format. Custom templates let you control exactly what appears in each notification using Markdown and {{variable}} placeholders.

Template Types

Each template is scoped to an entity type, which determines which variables are available:

Creating a Template

  1. Go to Templates in the sidebar.
  2. Click Create Template.
  3. Fill in:
    • Title — Name for the template (e.g., “High-value order alert”)
    • Type — Entity type (Product, Order, Customer, Returns, or Cart)
    • Content — The message body using Markdown and variables
  4. Click Save.
The template is then available in the trigger form’s template picker.

Markdown Syntax

Templates support a limited Markdown subset: Markdown is converted per hub at send time:
  • Slack: Headings → bold, links → <url|label> format, --- → divider block
  • Email: Full HTML rendering with inline CSS
  • Telegram: Headings → *bold*, links → Markdown v1 format, ---──────────

Color Customization

Templates have optional color settings that apply per hub: Colors are entered as hex values (e.g., #FF5733).

Template Priority

When a notification is sent, Alius resolves the message content in this order:
  1. Linked Template — If the trigger has a templateId, the saved template’s content is used.
  2. Inline Message Template — If the trigger has a custom message stored directly on the trigger record.
  3. Default Template + Conditions — The built-in default for the entity type, automatically extended with any condition fields from the trigger.
  4. Built-in Formatter — A fallback that generates a readable summary of what changed.

Auto-Extension with Condition Fields

When a trigger uses the default template and has conditions configured, the default template is automatically extended to include those condition fields. For example, if your trigger has a condition on inventoryTotal, the notification will include:

Built-in Default Templates

If no custom template is selected, Alius uses these defaults: Product Updated:
Order Created:
Customer Updated:
Cart Abandoned:

Template Variables Reference

Use product_previous.* variants for “previous” values in update notifications.