mustansirzia/slack-beam
SlackBeam is a slack bot that helps teams generate social media content for X directly from Slack.
47
SlackBeam is a self-hostable slack bot that helps teams generate social media content for X (formerly Twitter) directly from Slack. The bot uses AI-powered text generation to create post suggestions and provides an interactive interface for managing and publishing content.
# Download the prompt file.
wget https://github.com/MustansirZia/slack-beam/raw/refs/heads/main/x_prompts.json 2>/dev/null
# Make changes to the prompt file.
# vi x_prompts.json
# Start the app.
sudo docker run \
-p 80:8000 \
-e 'SLACK_BOT_TOKEN=<SLACK_BOT_TOKEN>' \
-e 'SLACK_SIGNING_SECRET=<SLACK_SIGNING_SECRET>' \
-e 'ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY>' \
-e 'X_CONSUMER_KEY=<X_CONSUMER_KEY>' \
-e 'X_CONSUMER_SECRET=<X_CONSUMER_SECRET>' \
-e 'X_ACCESS_TOKEN=<X_ACCESS_TOKEN>' \
-e 'X_ACCESS_TOKEN_SECRET=<X_ACCESS_TOKEN_SECRET>' \
-d \
--restart unless-stopped \
-v $(pwd)/x_prompts.json:/app/x_prompts.json \
mustansirzia/slack-beam:latest
Slack Credentials
SLACK_BOT_TOKEN
: OAuth token for your Slack botSLACK_SIGNING_SECRET
: Verification secret for Slack APITo obtain these:
Anthropic API Access
ANTHROPIC_API_KEY
: Authentication key for Claude APIANTHROPIC_MODEL_NAME
: Anthropic model name. If not provided defaults toclaude-3-5-sonnet-20241022
.To obtain API key:
X (Twitter) API Credentials
X_CONSUMER_KEY
: API Key for X applicationX_CONSUMER_SECRET
: API Secret for X applicationX_ACCESS_TOKEN
: OAuth 1.0a access tokenX_ACCESS_TOKEN_SECRET
: OAuth 1.0a access token secretTo obtain these:
MIT.
docker pull mustansirzia/slack-beam