Slack Integration

Link your Slack data with Compyl through our integration

Generate API Token

Before setting up the integration in Compyl, you will need to create the Slack Token/API key. This is autogenerated by creating a Slack App.

  1. Go to https://api.slack.com/apps and click the Create an App button.


  1. Choose Blank app on the next window and hit Continue.


  1. Enter a name for your App and Select a Workspace then click Create and Install.


  1. In the pop-up, allow the app to access to your Slack workspace.


  1. On the next screen, copy your Bot and App tokens and store them in a secure place.


  1. Here you'll be presented with your Basic Information and App Credentials. Click on OAuth & Permissions.


  1. Scroll down to Scopes and then click Add an Oath Scope under Bot Token as well as User Token Scopes.


  1. Add the following Scopes via the dropdown menu.

    Bot Token ScopeDescription
    channels:historyView messages and other content in public channels that "Compyl-Integration" has been added to.
    chat:writeSend messages as @Integration-Name.
    channels:historyView messages and other content in public channels that "Compyl-Integration" has been added to.
    channels:manageManage public channels that "Compyl-Integration" has been added to and create new ones.
    channels:readView basic information about public channels in a workspace.
    chat:writeSend messages as @Integration-Name.
    files:readView files shared in channels and conversations that Integration-Name has been added to.
    groups:readView basic information about private channels that Integration-Name has been added to.
    remote_files:readView remote files added by the app in a workspace.
    team:readView the name, email domain, and icon for workspaces Integration-Name is connected to.
    usergroups:readView user groups in a workspace.
    users.profile:readView profile details about people in a workspace.
    users:readView people in a workspace.
    users:read.emailView email addresses of people in a workspace.

    User Token ScopeDescription
    adminAdminister a workspace

    💡

    Note

    You can start typing them in to find them more quickly also.


  1. Scroll back up to OAuth Tokens and reinstall to your workspace as you've added new permissions.


    Once done, securely store the User OAuth Token that now appears if you wish to pull down Access Logs.



Add Configuration

  1. Navigate to the Integrations tab using the left-hand menu, find Slack, and select +Add Configuration.


  1. Next, fill in the details below and select Continue.


    Name: Enter the name of the integration.

    is Enabled: Toggle button to ensure data is populated into Compyl.

    Base URL: This is automatically populated as https://slack.com.

    Key: The Bot User OAuth token from Step 5 that begins with xoxb-.


    💡

    Note

    In order to pull Access Logs for Slack, use the User OAuth Token that begins with xoxp- from Step 9.

    If you wish to grab them both, create two configurations.


  1. Choose your Endpoints and Begin Validation to validate your connection.


  1. Select any Blueprints you wish to associate with this integration.


  1. After you hit Continue, you'll see a summary screen. Click Return to Integrations to complete the configuration.


Once you have completed filling out the form click Return to Integrations.

You'll know the integration is successfully added when the status updates to Complete.


Data is synced on a recurring schedule configured by your Compyl administrator. Each sync pulls the latest data from all enabled endpoints.

To query the data from the integration, refer to the Blueprints article.



Did this page help you?