Prerequisites
- A W&B project.
- A Slack integration configured in Team Settings.
Create a project automation
Follow these instructions to set up a project-scoped automation: When a run in the project transitions to Failed, W&B sends a Slack notification.- W&B App
- Python
- Open the project and click the Automations tab in the sidebar, then click Create automation.
- Choose the event Run state change. Set the state to Failed. Optionally add a run name or user filter to limit which runs trigger the automation.
- Click Next step. Set Action type to Slack notification and select the Slack channel.
- Click Next step. Give the automation a name (for example, “Run failure alert”) and an optional description, then click Create automation.
Test the automation
Create a run and log it to the project, explicitly marking it as failed:Run the full tutorial in a notebook
Run the Automations tutorial notebook to create and test project-scoped and registry-scoped automations. Download or clone the repo and open the notebook in Jupyter, Google Colab, or your preferred notebook environment.Go further
- Automation events and scopes for all project and registry event types.
- Create a Slack automation and Create a webhook automation for full UI and payload details.
- Manage automations with the API for list, get, update, and delete examples.
- Automations API reference for all event and action classes.