On this page

Slack scraper

The Slack scraper snap-in scrapes a channel of all messages, determines what of the conversation is important data and stores this parsed data into a DevRev article. If the scraper is called again, it updates the article with data since the channel was last scraped.

Configuration

  1. Create a Slack app for your workspace at https://api.slack.com/apps.

  2. In the App features section, generate bot token in OAuth & Permissions.

  3. Give the app bot the following access:

    • channels:history
    • channels:join
    • channels:read
    • chat:write
    • incoming-webhook
    • groups:history
    • conversations.connect:write
    • conversations.connect:read
  4. Invite the bot to the workspace.

  5. Save the bot access token as a connection of type snap-in secret in the DevRev app.

How to use

  1. Install the snap-in.
  2. In the Configuration tab, input the command /slack_scrape <channelID> once you have invited the bot into that channel.
  3. Check the DevRev knowledge base and there will be an article created with the channelID in the title and channelID set as the tag.

Updating your articles

  1. Go to the Slack Scraper snap in.
  2. Type the same command /slack_scrape <channelID> in the Discussions tab of the snap-in.
  3. This will synchronize the articles in the app with messages that have been sent in the Slack channel since the last modified date of the article. New articles which were not present earlier will be created.