Overview

Our Slack integration allows you to connect to the Slack API and post messages to Slack.

Installation

npm install @trigger.dev/slack@latest

Authentication

Slack supports OAuth.

OAuth

To use OAuth you can connect to Slack via the Trigger.dev web app. Click ‘Integrations’ in the side panel of any project, and configure Slack with the ID you want to use in your job and the required scopes.

import { Slack } from "@trigger.dev/slack";

const slack = new Slack({
  id: "slack",
});

Tasks

Once you have set up a Slack client, you can use it to create tasks.

Tasks

Perform tasks such as posting messages to a channel.

Example jobs

Code examples

Check out pre-built jobs using Slack in our API section.

Was this page helpful?