This tutorial walks you through building a registry automation triggered by artifact metadata: when an artifact in your registry gets a specific alias (for example, production), W&B sends a POST request to your webhook.Documentation Index
Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A webhook configured in Team Settings.
- A W&B registry with at least one collection, or reuse an existing registry.
Create a registry automation
Follow these instructions to set up a registry-scoped automation: When an artifact in any collection in that registry gets a specific alias (for example, production), W&B sends a POST request to your webhook.- Open the registry and click the Automations tab, then click Create automation.
- Choose the event An artifact alias is added. Enter an Alias regex that matches the alias you care about (for example, production or staging).
- Click Next step. Set Action type to Webhooks and select your webhook. If the webhook expects a payload, paste a JSON body and use payload variables such as
${artifact_collection_name}and${artifact_version_string}. - Click Next step. Give the automation a name and optional description, then click Create automation.
Test the automation
Add the alias (for example, production) to an artifact version in the registry, using the W&B App or the public API. For example: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.