cs-icon.svg

Slack

Slack is a business communication platform used to communicate between corporate team members.

Set Up Slack

Perform the following steps to set up the Slack action connector:

  1. In the Configure Action section, click the Slack connector.
    Slack.png
  2. Select the action listed under Slack i.e., Send Message. This action will send a message to a specific Slack channel.
    Sned_Message_Action.png
  3. In the Configure Action tab, click on + Add New Account to add your Slack account.
    Add_New_Account.png
  4. Select a way to add a new account. You can authenticate your account in two ways; Slack OAuth or Slack Bot Token. Click Proceed.
    Proceed_Authentication.png

    For Slack Bot Token, enter a Title and the Slack Bot Token retrieved from your Slack account. Click Authorize.

    Authorize_Button.png

    To create a new bot token, follow these steps:

    1. Navigate to Slack account.
    2. Login to your organization. Click Your Apps to create a new app.
    3. Navigate inside your app and click OAuth & Permissions.
    4. Copy the Bot User OAuth Token. You must have the required authorization from your organization to use the OAuth token.
  5. For Slack OAuth, you will see a list of permissions that you can choose to Authorize.
    Authorize_Account.png
  6. Next, you will see a window open with access requests from the app. Click Allow to proceed further.
    Authorize-Permissions.png
  7. Enter a Title for this account, say “Allow-Slack-access,” and click Save.
    6.Enter_Title.png
  8. Next, click on the Channel textbox and select a channel from the LOOKUP list that contains all the channels in your Slack account. Click Load More until you locate your channel.
  9. Click the Message textbox and select the parameter you want to include in your message that will be sent to the selected Slack channel. For example, we will draft this: “1.query.name has sent a GET/POST request”.
    Select_Different_Field.png
  10. Optionally, enable the Show optional fields toggle button to display the Username and Icon URL fields. Username and Icon URL fields can only be used while using Slack Bot Token. If you prefer not to send a message that displays your name on Slack, you can authorize your account via Slack Bot Token and provide a suitable Username and Icon URL to send a slack message.

    Note: If you use Slack OAuth, Username and Icon URL will not be visible in the output.


    Show_Optional_Fields.png
  11. Once done, click Proceed.
  12. Finally, you can test the configuration you set up by clicking the Test Action button.

The output shows the message that will be sent on the linked Slack channel. Click Save and Continue.

Check your Slack channel. You will see the message delivered to the Slack channel as below:
Slack_App.png

This sets up the Slack action connector.

Was this article helpful?
^