Notify Slack when a new AI Summary is generated
Want to tell a Slack channel when a new AI summary has been generated for your incident? Follow these steps.
First, visit your runbooks page and edit or create a new runbook. We'll use our runbook to then add a step with conditions for posting into Slack when a new summary has become available.
If you're creating a new runbook, click the "Add your first step" button to open the step builder for the runbook.
In the step builder, you have options! You can choose:
- If you'd like to send the message with your new AI summary to the incident channel (the one FireHydrant creates per incident).
- Or, if you'd like to send the incident to a separate channel (IE: A #support channel).
Or, you can add both steps to your runbook. The choice is yours.
For this guide, we're using the Notify Slack channels with a custom message step type. We'll configure it with:
- The
#general
channel (so our entire company sees the update) - A liquid template for the AI summary
- Some conditions to make sure we only post when a new summary is generated
An example liquid template is:
A new incident summary has been posted:
{{ incident.ai_incident_summary }}
In some cases, these summaries can be very long and you may want to shorten them:
A new incident summary has been posted:
{{ incident.ai_incident_summary | truncatewords: 30 }}
Conditions
After you've configured these values, we need to add the magic: The conditions!
FireHydrant supports a "AI Summary" attribute that has a few operators on them, including one for when the AI summary changes. Select it, and then select the operator for "changes."
Then, make sure you check the box for "Rerun on every transition" – this is what makes FireHydrant repeat this step each time the condition evaluates to true.
Voila!
After that, click "Add Step", save your runbook, and give it a shot!
Updated 1 day ago