diff --git a/content/en/actions/workflows/trigger.md b/content/en/actions/workflows/trigger.md index c7ab5eb558f..05e3a396c1c 100644 --- a/content/en/actions/workflows/trigger.md +++ b/content/en/actions/workflows/trigger.md @@ -200,7 +200,9 @@ You can trigger a workflow from GitHub using the following steps.
Quick start: Click to create a workflow with a Slack trigger.
-You can trigger a workflow from Slack using the following steps. +You can trigger a workflow from Slack manually with the `/datadog workflow` command, or automatically when an emoji reaction is added to a message. + +### Manual Slack trigger 1. Add a Slack trigger to your workflow: - If your workflow doesn't have any triggers, click **Add Trigger** > **Slack**. @@ -210,6 +212,18 @@ You can trigger a workflow from Slack using the following steps. 1. Click **Publish** to publish the workflow. A workflow must be published before you can trigger it from Slack. Published workflows accrue costs based on workflow executions. For more information, see the [Datadog Pricing page][11]. 1. In a Slack channel with the Datadog App, run `/datadog workflow` to select and run a workflow. You can also use the `/dd` alias to run /datadog commands. +### Emoji reaction Slack trigger + +You can configure a workflow to trigger automatically when a user adds a specific emoji reaction to a message in Slack. + +1. Add a Slack trigger to your workflow: + - If your workflow doesn't have any triggers, click **Add Trigger** > **Slack**. + - If your workflow already has one or more triggers and you're adding the Slack trigger as an additional trigger, click the **Add Trigger** (lightning bolt) icon and select **Slack**. +1. In the **Configure** tab, select the Slack workspace where you want to listen for reactions. +1. If the workspace requires the `emoji:read` permission, click **Enable Permission** to reinstall the Slack app with the necessary scope. +1. Select one or more emoji reactions that trigger the workflow. +1. Click **Save**, then **Publish**. + ## API triggers Triggering a workflow using an API call requires an [API key][8] and an [application key][9] with the `workflows_run` scope. For information on adding a scope to an application key, see [Scopes][10].