Send Smart Action notifications to Slack

This example shows you how to integrate Slack incoming webhooksarrow-up-right to receive notifications in your workspace when a Smart Action e.g "Reject application" is triggered.

Demo

Create your Forest Admin slack app

Follow Slack's guide to create a new apparrow-up-right in your workspace and start sending messages using Incoming Webhooks.

At the end of this guide, make sure your Slack app has the following features activated:

  • Incoming Webhooks

  • Interactive Components

  • Bots

  • Permissions

Once your Slack app has its shiny Incoming Webhook URL, you will be able to send your messagearrow-up-right in JSON as the body of an application/json POST request.

Connect your app from a Slack channel of your choice

From the channel, visi

Set up the webhook from your admin backend

From your project's directory, simply run

Add the Incoming Webhook URL to your .env

circle-exclamation

Create the Smart Action and initialize the Incoming Webhook

Smart Action declaration

Smart Action logic

circle-info

To learn more about composing messages using the Slack API, please visit the

circle-exclamation

Last updated