This feature requires a Pro or Enterprise plan.
List automations
Useapi.automations() to iterate over automations. You can filter by entity and optionally by name.
Automation objects include scope information.
Get one automation
Useapi.automation() when you know the automation name. The call returns the only automation matching the name (and entity, if provided).
ValueError.
Create an automation
Create an automation by defining an event (what triggers it) and an action (what runs when it triggers), then callingapi.create_automation(). Events and actions are built from classes in wandb.automations; the scope (project or registry/collection) determines which event types you can use.
Example: project automation (run state to Slack)
This example creates a project-scoped automation that sends a Slack notification when a run in the project finishes in a Failed state.
event >> action to api.create_automation().
Update an automation
Fetch the automation, change its attributes, then callapi.update_automation(). You can pass keyword arguments to update in place without mutating the object.
Delete an automation
Pass the automation object or its ID toapi.delete_automation().
Next steps
- Automations overview
- Automation events and scopes (project vs registry events)
- Create a Slack automation or Create a webhook automation (UI)
- Automations API reference