Skip to main content
Alert templates let you control exactly what your Bolt notifications say, using Jinja2 to surface run status, command details, and error context. Create a template once, then attach it to any channel across your schedules.
PrerequisitesEstimated time: 10 minutes.

Steps

1

Create a template

  1. Go to Bolt > Alert templates in the top navigation.
  2. Select + New template.
  3. Give the template a name.
  4. Write the message using plain text, template variables, and Jinja expressions.
  5. Save the template.
Templates expose variables such as {{ status }}, {{ run_link }}, {{ duration }}, the per-command {{ commands }} list, and error context via {{ error_command }} and {{ error_output }}, so you can push a fully formatted failure alert straight into your incident channel.
2

Attach it to a schedule

  1. Open the Bolt schedule you want to configure.
  2. Go to the Notification settings tab.
  3. Under Notification destinations, find the Slack or Teams channel to customize.
  4. Select your saved template from the template dropdown on that channel row.
  5. Select Deploy to save.
Trigger a run (or wait for the next failure) and confirm the alert lands in your channel formatted by your template. If the message shows raw variables, check the Jinja syntax in the template editor’s preview.

Next steps

Set up self-healing

Automatically open a fix PR when a run fails.

Set up notifications

Configure the channels alerts are sent to.

Alert templates reference

All template variables and options.