Templates are created once in the Alert Templates page and can then be attached to any channel destination across your schedules.
Creating a Template
- Navigate to Bolt > Alert Templates in the top navigation
- Click + New Template
- Give your template a name
- Write your message using plain text, template variables, and Jinja expressions
- Save the template

Attaching a Template to a Schedule
- Open the Bolt Schedule you want to configure
- Navigate to the Notification Settings tab
- Under Notification Destinations, locate the Slack or MS Teams channel you want to customize
- Select your saved template from the template dropdown on that channel row
- Click Deploy to save your changes

Template Variables
Templates use Jinja2 syntax. The following variables are available:- Schedule
- Run
- Environment
- Commands
- Errors
Filters & Helpers
Escaped values in Slack
In Slack messages, Paradime escapes&, <, and > in the values of template variables. So text such as <!channel> in dbt™ error output shows as text and doesn’t notify the channel. Text that you write in the template isn’t escaped, so {{ '<!channel>' if status == 'failed' }} still notifies the channel. Filters get the escaped value, so a filter such as truncate can cut through an escaped character such as &. Microsoft Teams messages aren’t escaped.
Template limits
Paradime renders each template in a sandbox. If a template does one of these things, the channel gets the default Paradime notification instead:- Changes a list or a dict, for example with
append. - Reads an attribute whose name starts with
_. - Uses
range()with more than 100,000 items. - Uses
*to repeat text or a list beyond 40,000 characters, or**to compute a very large number. - Takes more than 5 seconds of CPU time, 10 seconds in total, or 256 MB of memory to render.
Example Template
