Skip to main content
Customize the Slack and Microsoft Teams notifications sent by your Bolt Schedules. Using Jinja2 syntax, templates let you control exactly what your alerts say, surfacing the run context your team needs, in the format that works for them.
Templates are created once in the Alert Templates page and can then be attached to any channel destination across your schedules.

Creating a Template

  1. Navigate to Bolt > Alert Templates in the top navigation
  2. Click + New Template
  3. Give your template a name
  4. Write your message using plain text, template variables, and Jinja expressions
  5. Save the template

Attaching a Template to a Schedule

  1. Open the Bolt Schedule you want to configure
  2. Navigate to the Notification Settings tab
  3. Under Notification Destinations, locate the Slack or MS Teams channel you want to customize
  4. Select your saved template from the template dropdown on that channel row
  5. Click Deploy to save your changes

Template Variables

Templates use Jinja2 syntax. The following variables are available:

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 &amp;. 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.
A rendered message longer than 40,000 characters is cut at 40,000 characters.

Example Template