Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion content/en/actions/workflows/trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ You can trigger a workflow from GitHub using the following steps.

<div class="alert alert-info"><strong>Quick start</strong>: Click to create a <a href="https://app.datadoghq.com/workflow/create?source=slack">workflow</a> with a Slack trigger.</div>

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**.
Expand All @@ -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].
Expand Down
Loading