How to set up the Slack event channel

Last update:


Create an Incoming Webhook for Slack

  1. Visit the Incoming Webhooks page in the Slack App Directory.
  2. Click Add Configuration.
  3. Choose the channel your Incoming Webhook will post messages to. Note: you can later override this webhook default channel with additional configuration in Sapho.
  4. Click Add Incoming Webhooks Integration.
  5. Copy the Webhook URL and paste it in a secure place for later reference.
  6. Scroll to the bottom of the page and click Save Settings


Obtain an OAuth Access Token

Follow this step only if you would like to @mention users in the messages Sapho will send to Slack. Otherwise, proceed with configuring the Slack Global Settings in Sapho.

  1. Visit Your Apps page in the Slack App Directory.
  2. Click Create an App.
  3. Enter Sapho in the App Name field.
  4. Choose the Slack workspace where the notifications from Sapho will be posted.
  5. Click Create App.
  6. Go to OAuth & Permissions page under Features.
  7. Select the following permission scopes: users:read and
  8. Click Save Changes.
  9. At the top of the page, click Install App to Workspace.
  10. Click Authorize.
  11. Copy the OAuth Access Token and paste it in a secure place for later reference.


Configure Slack Global Settings in Sapho

  1. Go to the detail page of the event whose notifications you want to deliver via Slack.
  2. Click on the Slack tile.
  3. Go to the Global Slack Settings tab.
  4. Paste the webhook URL obtained earlier in the Slack Webhook URL field.
  5. (Optional) Enter the username that Sapho will post as in the Bot User Name field. The default is SaphoBot.
  6. (Optional) Enter the URL of the icon that will be used for the user that Sapho will post as in the Bot Icon URL field. If you leave this field empty, the bot will use the default Sapho icon.
  7. (Mandatory only for user mentions) Enter the OAutg Access Token obtained earlier in the Bot User OAuth Access Token field.
  8. (Optional) Enter the name of a valid channel which will override the channel you chose when creating the webhook in the Slack App Directory.



Set up the Slack event channel in Sapho

  1. Return to the Message Editor tab and configure your notification.
  2. (Optional) Add a variable from the record which will trigger the event by clicking the Insert variable button. Note: if you would like to @mention a user in the message, so the user is alerted to an event or to an action they need to take, then add the Slack User format to the variable which contains the email of the intended user. 
  3. Toggle the switch on to enable the Slack channel.
  4. Click Send Test to send a notification to the chosen Slack channel to test whether everything works correctly.