Slack Integration
Integrate CoderspaE with your Slack workspace to bring coding challenges, notifications, and team collaboration directly to your work environment.
Overview
The Slack integration enables your team to participate in coding challenges, receive notifications, and collaborate on problem-solving without leaving Slack.
Key Features
- • Real-time coding challenge notifications
- • Interactive Slack bot with coding commands
- • Team leaderboards and progress tracking
- • Direct code execution and testing in Slack
- • Automated daily coding challenges
- • Team battle creation and management
App Installation
Step 1: Install CoderspaE App
Add the CoderspaE app to your Slack workspace:
1. Visit the Slack App Directory 2. Search for "CoderspaE" 3. Click "Add to Slack" 4. Authorize the required permissions: - Send messages - Read channel messages - Upload files - Use slash commands - Access user profiles
Step 2: Configure Workspace
Set up channels and permissions for optimal integration:
# Recommended channel setup 📋 Main Channels: #coding-challenges (Daily challenges and announcements) #team-battles (Team competition updates) #leaderboard (Rankings and achievements) 🔧 Development Channels: #code-review (Peer code reviews) #algorithms (Algorithm discussions) #interview-prep (Interview preparation) ⚙️ Configuration: #coderspae-config (Admin setup and bot configuration)
Step 3: Connect to CoderspaE Account
# Link your Slack workspace to CoderspaE /coderspae setup # Follow the authentication flow: 1. Click the generated link 2. Sign in to your CoderspaE account 3. Authorize workspace access 4. Configure notification preferences 5. Set up team competition settings
Slack Commands
User Commands
/coderspae profile [@user]
Display coding profile and statistics
/coderspae profile @john.doe /coderspae profile # Your own profile
/coderspae challenge [type] [difficulty]
Get a coding challenge to solve
/coderspae challenge random easy /coderspae challenge algorithms medium /coderspae challenge interview hard /coderspae challenge daily # Today's challenge
/coderspae submit [problem_id]
Submit your solution for a problem
/coderspae submit two-sum # Opens a modal for code submission with language selection
/coderspae leaderboard [scope] [period]
View leaderboards and rankings
/coderspae leaderboard team weekly /coderspae leaderboard global monthly /coderspae leaderboard channel daily
Team Commands
/coderspae battle create [duration]
Create a team coding battle
/coderspae battle create 30m /coderspae battle create 1h # Opens configuration modal for battle setup
/coderspae battle join [battle_id]
Join an active team battle
/coderspae battle join 12345 /coderspae battle join # Shows available battles
/coderspae team stats
Display team performance statistics
/coderspae team stats # Shows team ranking, solved problems, active members
Code Execution Commands
/coderspae run [language]
Execute code snippet in Slack
/coderspae run python # Opens code input modal with syntax highlighting
/coderspae test [problem_id] [language]
Test solution against problem test cases
/coderspae test two-sum javascript # Opens solution input with test case execution
Interactive Features
Daily Challenge Workflow
Automated daily challenges with team participation tracking:
# Daily challenge posted at 9:00 AM 🌅 Daily Challenge #127 - Two Sum Difficulty: Easy Estimated Time: 15-30 minutes Languages: Python, JavaScript, Java 📊 Team Progress: ✅ Alice (Python) - 8m 32s ✅ Bob (JavaScript) - 12m 45s ⏳ Carol (Java) - In Progress ❌ David - Not Started React with 👍 to participate! Use /coderspae challenge daily to start
Team Battle Interface
# Live team battle update ⚔️ Team Battle: Binary Search - 15 minutes remaining 🔥 Team Alpha vs Team Beta 🔥 Team Alpha Progress: ├─ Alice: Solution submitted (5m 23s) ✅ ├─ Bob: Testing solution (12m 15s) ⏳ └─ Carol: Reading problem (2m 30s) 📖 Team Beta Progress: ├─ David: Solution submitted (7m 45s) ✅ ├─ Eve: Debugging (10m 20s) 🐛 └─ Frank: Writing code (8m 10s) ⌨️ Current Leader: Team Alpha 🏆
Code Review Integration
# Code review request
👨💻 Code Review Request - Two Sum Solution
```python
def two_sum(nums, target):
num_map = {}
for i, num in enumerate(nums):
complement = target - num
if complement in num_map:
return [num_map[complement], i]
num_map[num] = i
return []
```
📊 Automated Analysis:
✅ Time Complexity: O(n) - Optimal
✅ Space Complexity: O(n) - Acceptable
✅ Code Style: Clean and readable
⚠️ Edge Case: Empty array handling missing
React with 👍 for approval or 💬 for commentsWebhook Configuration
Setting Up Incoming Webhooks
Configure webhooks to receive notifications in specific channels:
# Create incoming webhook 1. Go to Slack App Settings > Incoming Webhooks 2. Click "Add New Webhook to Workspace" 3. Select target channel 4. Copy webhook URL 5. Add URL to CoderspaE Slack integration settings
Webhook Events
| Event | Description | Default Channel |
|---|---|---|
| challenge.daily | Daily challenge posted | #coding-challenges |
| battle.team_created | New team battle available | #team-battles |
| achievement.unlocked | Team member earns achievement | #leaderboard |
| reminder.challenge | Challenge deadline reminder | #coding-challenges |
Webhook Payload Example
{
"text": "Daily Challenge Posted",
"attachments": [{
"color": "good",
"title": "🌅 Daily Challenge #127",
"title_link": "https://coderspae.com/challenges/daily/127",
"text": "Two Sum - Easy Difficulty",
"fields": [{
"title": "Estimated Time",
"value": "15-30 minutes",
"short": true
}, {
"title": "Languages",
"value": "Python, JavaScript, Java",
"short": true
}, {
"title": "Team Participation",
"value": "0/5 members started",
"short": true
}],
"actions": [{
"type": "button",
"text": "Start Challenge",
"url": "https://coderspae.com/challenges/daily/127"
}],
"footer": "CoderspaE",
"footer_icon": "https://coderspae.com/icon.png",
"ts": 1642234567
}]
}Slack Workflows
Daily Challenge Workflow
Automate daily challenge distribution and tracking:
# Slack Workflow Builder steps: 1. Trigger: Scheduled time (9:00 AM weekdays) 2. Action: Send message to #coding-challenges 3. Content: Daily challenge with participation buttons 4. Follow-up: Reminder at 4:00 PM for incomplete challenges 5. Summary: End-of-day results and team standings
Code Review Workflow
# Automated code review process: 1. Trigger: Solution submission via /coderspae submit 2. Action: Post to #code-review channel 3. Content: Code snippet with automated analysis 4. Reactions: Team voting and feedback collection 5. Follow-up: Results compilation and suggestions
Interview Prep Workflow
# Weekly interview preparation: 1. Trigger: Monday 10:00 AM 2. Action: Post interview-style problem 3. Content: Company-specific problem set 4. Timer: 45-minute time limit 5. Review: Solution discussion and tips
Admin Configuration
Workspace Settings
# Admin configuration commands /coderspae admin config Settings Options: - Daily challenge time: 9:00 AM UTC - Team battle duration: 30/60/90 minutes - Difficulty distribution: 40% Easy, 40% Medium, 20% Hard - Notification frequency: Real-time/Hourly/Daily - Auto team creation: Enabled/Disabled - Code execution timeout: 10 seconds - Leaderboard update: Real-time/Daily/Weekly
User Management
# User role assignments /coderspae admin users Roles: - Team Lead: Can create battles, manage team settings - Developer: Standard challenge participation - Intern: Limited to easy/medium challenges - Mentor: Can review code, provide feedback - Observer: Read-only access to leaderboards
Channel Configuration
# Channel-specific settings /coderspae admin channels Channel Configurations: - #coding-challenges: Daily challenges, reminders - #team-battles: Team competitions, live updates - #leaderboard: Rankings, achievements, milestones - #code-review: Peer reviews, feedback, tips - #algorithms: Discussion, problem explanations - #interview-prep: Mock interviews, company problems
Analytics & Reporting
Team Performance Metrics
# Weekly team report 📊 CoderspaE Team Report - Week 3, January 2024 📈 Overall Stats: - Total Challenges Completed: 47 - Team Participation Rate: 78% - Average Completion Time: 23m 45s - Success Rate: 85% 🏆 Top Performers: 1. Alice Johnson - 12 challenges (95% success) 2. Bob Smith - 10 challenges (90% success) 3. Carol Davis - 9 challenges (88% success) 📚 Popular Languages: - Python: 42% of solutions - JavaScript: 31% of solutions - Java: 18% of solutions - Other: 9% of solutions 🎯 Areas for Improvement: - Dynamic Programming: 67% success rate - Graph Algorithms: 72% success rate - System Design: 58% success rate
Individual Progress Tracking
# Personal progress summary 👤 Alice Johnson - Monthly Progress Report 🔥 Current Streak: 23 days 📊 Problems Solved: 156 total (+34 this month) ⏱️ Average Time: 18m 32s (improved from 24m 15s) 🎯 Success Rate: 91% (up from 85%) 📈 Skill Development: - Arrays & Strings: ⭐⭐⭐⭐⭐ (Expert) - Trees & Graphs: ⭐⭐⭐⭐ (Advanced) - Dynamic Programming: ⭐⭐⭐ (Intermediate) - System Design: ⭐⭐ (Beginner) 🏆 Recent Achievements: - Speed Demon: Solved 5 problems under 10 minutes - Language Explorer: Used 3 different languages - Team Player: Helped 5 teammates with reviews
Troubleshooting
Common Issues
Commands Not Working
Verify app permissions and ensure slash commands are enabled for your workspace.
Webhooks Not Delivering
Check webhook URL configuration and channel permissions in Slack settings.
Authentication Failures
Re-authenticate using /coderspae setup and verify CoderspaE account connection.
Rate Limits
Slack API rate limits may affect large team notifications. Consider adjusting notification frequency for teams with 50+ members.