Core Classes
| Class | Description | 
|---|---|
| Automation | Represents a saved automation instance with its configuration. | 
| NewAutomation | Builder class for creating new automations. | 
Events (Triggers)
| Event | Description | 
|---|---|
| OnRunMetric | Trigger when a run metric satisfies a defined condition (threshold, change, etc.). | 
| OnCreateArtifact | Trigger when a new artifact is created in a collection. | 
| OnLinkArtifact | Trigger when an artifact is linked to a registry. | 
| OnAddArtifactAlias | Trigger when an alias is added to an artifact. | 
Actions
| Action | Description | 
|---|---|
| SendNotification | Send notifications via Slack or other integrated channels. | 
| SendWebhook | Send HTTP webhook requests to external services. | 
| DoNothing | Placeholder action for testing automation configurations. | 
Filters
| Filter | Description | 
|---|---|
| MetricThresholdFilter | Filter runs based on metric value comparisons against thresholds. | 
| MetricChangeFilter | Filter runs based on metric value changes over time. | 
Common Use Cases
Model Performance Monitoring
- Alert when model accuracy drops below a threshold
- Notify team when training loss plateaus
- Trigger retraining pipelines based on performance metrics
Artifact Management
- Send notifications when new model versions are created
- Trigger deployment workflows when artifacts are tagged
- Automate downstream processing when datasets are updated
Experiment Tracking
- Alert on failed or crashed runs
- Notify when long-running experiments complete
- Send daily summaries of experiment metrics
Integration Workflows
- Update external tracking systems via webhooks
- Sync model registry with deployment platforms
- Trigger CI/CD pipelines based on W&B events
Example Usage
The following example creates an automation that sends a Slack notification whenever a metric calledcustom-metric exceeds 10. custom-metric is expected to be logged during training using wandb.Run.log({"custom-metric": value }).