Turn your Slack conversations into concise summaries with AI. This guide shows you how to create a bot that summarizes channel activity using GPT-4.

Features

Channel Summaries

Summarize Slack channel activity for any time period

GPT-4 Integration

Generate intelligent, context-aware summaries using OpenAI’s GPT-4

Create your summarizer

1

Fork the template

  1. Sign in to Replit
  2. Navigate to the AI Slack summary template
  3. Select + Use Template in the upper-right corner
  4. Follow the prompts to create your Replit App
2

Create a Slack app

  1. Go to the Slack Apps page
  2. Select Create an App
  3. Choose From an app manifest
  4. Select your workspace from the dropdown
  5. Replace the manifest content with the manifest.json file
  6. Review the configuration and select Create
  7. Select Install the App

You may need administrator approval to install the app depending on your organization’s settings.

3

Configure your tokens

Add the following secrets to your Replit App’s Secrets tab:

  1. SLACK_BOT_TOKEN
    • Navigate to Settings > Install App in your Slack App
    • Copy the Bot User OAuth Token
  2. SLACK_SIGNING_SECRET
    • Go to Settings > Basic Information
    • Copy the Signing Secret from App Credentials
  3. SLACK_APP_TOKEN
    • Go to Settings > Basic Information
    • Under App-Level Tokens, select Generate Token and Scopes
    • Add a token name and select permissions
    • Copy the generated token
  4. OPENAI_API_KEY
    • Get your API key from OpenAI’s platform
4

Deploy your bot

  1. Select Deploy in the Workspace header
  2. Choose Reserved VM Deployments
  3. Select Set up your deployment
  4. Select Deploy

Using your summarizer

Add your bot to a channel and send it a direct message with the following command:

/summarize-channel #channel-name duration

For example, to summarize the last 24 hours of activity in #general:

/summarize-channel #general 24

Customization options