Slack-based Triggers

There are two ways to trigger a playbook run from Slack:

  1. Using a Slack command to run a playbook
  2. Creating a workflow that's configured to run against a specific alert

Trigger through a Slack Command

📘

This feature is available in Playbook version v1.4.23 or higher. Upgrade to the latest version and update the slack app manifest to access this feature.

Step 1: Add/Update Slack App using the manifest

  1. Login to the platform, and select Slack in integrations page.
  2. Click on Get Manifest button, copy the manifest and create a new Doctor Droid slack bot (or update an existing one)
  3. Add the bot to a slack channel by typing "@MyDroid" or "@Doctor Droid" or any other name that you defined while creating the Slack App

Step 2: Execute your playbooks

  1. Use the following command in the channel and get a summary of the Playbook in your channel
/execute_playbook [Your Playbook Name]

Trigger with Workflow

Step 1: Add app in your slack channels

Add bot to relevant Slack channel where you want to enrich alerts by typing "@MyDroid" or "@Doctor Droid" or any other name that you defined while creating the Slack App.

👍

Now your Slack App and playbooks backend are connected.

Step 2: Create Workflow to automate enrichment

  1. Select the filter criteria for your alerts - Go to create workflow and filter the alerts you want to enrich.

    1. The string entered in "Filter" will be searched within your alert text while evaluating if the workflow needs to be triggered for a specific alert or not.

  2. Link a Playbook to the workflow. In case you have not yet created a playbook, read this guide on how to create a Playbook.

  3. Setup Schedule - Once the alert criteria and playbook are selected, choose how you want to execute this playbook. Schedule options available:

    1. Execute only once post the alert comes.
    2. Execute it periodically after a fixed interval for a certain duration. (Every 15 minutes for next 4 hours)
    3. Choose a custom cron schedule of your choice. (The cron schedule will work in UTC timezone) (* 5 * * *)