π¬ Slack Integration
What you'll learn
How to send pipeline alerts to Slack channels β don't watch the terminal, let the bot tell you when it's done.
Get notified where you work. Receive alerts for pipeline successes, failures, and approval requests directly in Slack.
Why Slack Alerts?
| Feature | Benefit |
|---|---|
| Real-time | Know immediately when a production job fails |
| Visibility | Keep the whole team in the loop |
| Actionable | Links to logs and dashboards in the message |
| Low friction | No context switching β alerts come to you |
π¬ Setup
1. Create a Slack Webhook
- Go to Slack API: Incoming Webhooks
- Create a new app or use an existing one
- Enable Incoming Webhooks and generate a webhook URL
- Copy the URL (format:
https://hooks.slack.com/services/T.../B.../...)
2. Configure FlowyML
Or via environment variable:
π Sending Alerts
From Steps
On Failure (Automatic)
Alert Levels
| Level | Slack Color | Use Case |
|---|---|---|
"info" |
Blue | Pipeline started, progress updates |
"success" |
Green | Training complete, deployment successful |
"warning" |
Yellow | Drift detected, degraded performance |
"error" |
Red | Step failure, pipeline crash |
Best Practices
Channel strategy
Use #ml-ops for all alerts, #ml-alerts-critical for errors only. Avoid sending success messages to high-traffic channels.
Webhook security
Store webhook URLs in environment variables or secrets β never hardcode them in source code.