Prerequisites
- A Bolt schedule you can edit.
- A Slack or Microsoft Teams notification channel configured on the schedule.
Steps
1
Create a template
- Go to Bolt > Alert templates in the top navigation.
- Select + New template.
- Give the template a name.
- Write the message using plain text, template variables, and Jinja expressions.
- Save the template.
{{ 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
- Open the Bolt schedule you want to configure.
- Go to the Notification settings tab.
- Under Notification destinations, find the Slack or Teams channel to customize.
- Select your saved template from the template dropdown on that channel row.
- 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.