ConnectorsSetup GuidesMessaging

Slack Connector

Using Descope's connectors allows you to use Slack to send messages to a slack channel of your choice and trigger these actions within the authentication flow. This article will guide you through setting up and using the Slack connector.

Configure Slack connector

To configure a Slack connector, go to the Connectors page within the Descope Console, search for Slack, and select the connector tile.

Settings

Below is a list of applicable settings for the Slack connector.

  • Connector name: Custom name for your connector. This will come in handy when creating multiple connectors from the same connector template.
  • Connector Description: (Optional) Describe what your connector is used for.
  • Token: The OAuth token for Slack's Bot User, used to authenticate API requests. To create a token:
    1. Navigate to the Slack App configuration page of the relevant app here, and select OAuth & Permissions.

Slack connector config

  1. Click Install to Workspace.
  2. Copy Bot User OAuth Token.

You can test if your connector's configuration is working properly simply by hitting the Test button and viewing the Test Results panel.

Slack connector initialization

Save your configuration by hitting Create.

Add your Slack connector to a flow

To utilize Slack within your flow, navigate to Flows and choose your flow. Once you are in the flow that you'd like to use Slack, tap the create button (designated via the + icon), select Connector, and choose Slack. Enter all the fields required:

  • Channel ID: ID of the slack channel you are connecting to. Get this from the channel details by click on the 3 dots, click on Open channel details and grab the id displayed at the bottom.
  • Message: Message content being sent to the channel. This field also accepts dynamic values for example {{user.name}} as shown in the below screenshot.

Configuring Slack as connector to be used within Descope flow actions

Now, link your connector at a logical point in your authentication flow, likely at the end of the flow for the message to be sent.

Slack as connector within Descope flow

That's it! Whenever a user goes through your authentication flow, the slack connector will be automatically triggered and will send the message to the connected channel.

Was this helpful?

On this page