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
- Go to Templates in the sidebar.
- Click Create Template.
- 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
- Click Save.
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:- Linked Template — If the trigger has a
templateId, the saved template’s content is used. - Inline Message Template — If the trigger has a custom message stored directly on the trigger record.
- Default Template + Conditions — The built-in default for the entity type, automatically extended with any condition fields from the trigger.
- 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 oninventoryTotal, the notification will include:
Built-in Default Templates
If no custom template is selected, Alius uses these defaults: Product Updated:Template Variables Reference
Product Variables
Product Variables
Use
product_previous.* variants for “previous” values in update notifications.Order Variables
Order Variables
Customer Variables
Customer Variables
Returns Variables
Returns Variables
Cart Abandoned Variables
Cart Abandoned Variables
