Create a Slack channel summarizer
Build a Slack bot that summarizes channel activity using GPT-4. Learn how to integrate AI with Slack’s API.
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
Fork the template
- Sign in to Replit
- Navigate to the AI Slack summary template
- Select + Use Template in the upper-right corner
- Follow the prompts to create your Replit App
Create a Slack app
- Go to the Slack Apps page
- Select Create an App
- Choose From an app manifest
- Select your workspace from the dropdown
- Replace the manifest content with the manifest.json file
- Review the configuration and select Create
- Select Install the App
You may need administrator approval to install the app depending on your organization’s settings.
Configure your tokens
Add the following secrets to your Replit App’s Secrets tab:
- SLACK_BOT_TOKEN
- Navigate to Settings > Install App in your Slack App
- Copy the Bot User OAuth Token
- SLACK_SIGNING_SECRET
- Go to Settings > Basic Information
- Copy the Signing Secret from App Credentials
- 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
- OPENAI_API_KEY
- Get your API key from OpenAI’s platform
Deploy your bot
- Select Deploy in the Workspace header
- Choose Reserved VM Deployments
- Select Set up your deployment
- Select Deploy
Using your summarizer
Add your bot to a channel and send it a direct message with the following command:
For example, to summarize the last 24 hours of activity in #general:
Customization options
Was this page helpful?