Slack Integration
Connect CICosts to Slack for real-time cost alerts and notifications directly in your team's channels.
Overview
The Slack integration allows you to:
- Receive alert notifications in Slack channels
- Get daily/weekly cost summaries
- Quickly view cost data via Slack commands
- Share insights with your team
Setting Up Slack
Prerequisites
- CICosts Pro or Team plan
- Slack workspace admin or app management permissions
Installation Steps
- Go to CICosts Dashboard → Settings → Integrations
- Click Connect Slack
- You'll be redirected to Slack's authorization page
- Select your workspace
- Choose which channel(s) to authorize
- Click Allow
- You'll be redirected back to CICosts
Permissions Requested
CICosts requests these Slack permissions:
| Permission | Purpose |
|---|---|
chat:write | Send messages to channels |
commands | Respond to slash commands |
incoming-webhook | Post messages via webhooks |
We do not request access to:
- Your messages
- User information
- Private channels (unless invited)
Configuring Notifications
Alert Notifications
When creating or editing alerts, select Slack as a notification channel:
- Go to Alerts → Create/Edit Alert
- Under "Notifications", check Slack
- Select the channel
- Save the alert
Channel Selection
You can send alerts to:
- Public channels - Any public channel you've added CICosts to
- Private channels - After inviting
@CICoststo the channel
To add CICosts to a private channel:
- Open the channel in Slack
- Type
/invite @CICosts - Confirm
Notification Format
Alert notifications include:
🚨 CICosts Alert: Monthly Budget Warning
Your organization my-company has exceeded 75% of the monthly budget.
Current spend: $1,523.45
Budget: $2,000.00
Remaining: $476.55
View in CICosts →
Scheduled Summaries
Set up automated cost summaries:
Daily Summary
Receive a daily cost summary each morning:
- Go to Settings → Integrations → Slack
- Enable Daily Summary
- Select time (e.g., 9:00 AM)
- Select channel
- Save
📊 CICosts Daily Summary - Jan 15, 2024
Yesterday's spend: $47.82 (↑12% vs avg)
Top workflow: ci.yml ($18.45)
Runs: 23 total
Week-to-date: $312.50
Month-to-date: $1,247.00
View details →
Weekly Summary
Get a weekly recap every Monday:
- Enable Weekly Summary
- Select time
- Select channel
- Save
📊 CICosts Weekly Summary - Week of Jan 8
Total spend: $312.50 (↓5% vs last week)
Total runs: 156
Avg cost/run: $2.00
Top repositories:
1. api-service: $156.78
2. web-app: $89.45
3. mobile-app: $66.27
View full report →
Slack Commands
Use slash commands to query cost data (coming soon):
/cicosts status
Get current cost status:
/cicosts status
Response:
Today: $47.82 (↑12% vs avg)
This week: $312.50
This month: $1,247.00
Projected: $1,890.00
/cicosts workflow [name]
Get workflow cost details:
/cicosts workflow ci.yml
/cicosts top [n]
Get top N expensive workflows:
/cicosts top 5
Troubleshooting
Not Receiving Notifications
-
Check channel permissions
- Ensure CICosts is added to the channel
- For private channels, invite
@CICosts
-
Check alert configuration
- Verify Slack is enabled for the alert
- Confirm the correct channel is selected
-
Check Slack connection
- Go to Settings → Integrations
- Verify Slack shows as "Connected"
- Try reconnecting if needed
Wrong Channel
To change the notification channel:
- Edit the alert
- Update the Slack channel
- Save
Disconnecting Slack
To remove the Slack integration:
- Go to Settings → Integrations
- Click Disconnect next to Slack
- Confirm
This stops all Slack notifications immediately.
Reconnecting
If you need to reconnect:
- Disconnect (if currently connected)
- Click Connect Slack
- Re-authorize with new permissions
Next: Email Integration →