This feature is experimental and currently in alpha. The API and configuration may change in future releases.
The sfp-server includes an AI-powered Slack bot that enables teams to interact with their Salesforce DevOps workflows through natural language conversations. The bot provides real-time insights into builds, releases, environments, and can execute sfp commands directly from Slack.
Overview
The Slack bot integration uses Slack's Bolt framework with Socket Mode for secure, bidirectional communication. It features:
Natural Language Processing: Ask questions in plain English
Real-time Status Updates: Get build, release, and environment information
Thread Context: Maintains conversation history for contextual responses
AI-Powered Assistance: Leverages LLM providers for intelligent responses
# Required for Socket Mode
export SLACK_APP_TOKEN="xapp-your-app-token"
export SLACK_SIGNING_SECRET="your-signing-secret"
export SLACK_BOT_TOKEN="xoxb-your-bot-token"
# Optional - for AI features
export OPENAI_API_KEY="your-openai-key"
# OR
export ANTHROPIC_API_KEY="your-anthropic-key"
@codev what's the status of the latest build for sf-core?
@codev show me recent releases for the sales domain
@codev list all active environments
What packages failed validation today?
Show me the deployment history for UAT
User: @codev build status for my-repo
Bot: 📊 Latest builds for my-repo:
✅ Build #123 - Completed (10 min ago)
🔄 Build #124 - In Progress (started 2 min ago)
User: @codev recent releases for sales domain
Bot: 📦 Recent releases for sales:
• v2.1.0 - Deployed to PROD (2 days ago)
• v2.0.9 - Deployed to UAT (5 days ago)