> ## 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.

# Automation tutorial overview

> Learn to build a project run-failure alert or a registry alias automation.

W\&B Automations follow this pattern: when an **event** occurs and optional **conditions** are met, an **action** runs automatically. For example:

* When a run fails (event), notify a Slack channel (action).
  <br />
  <br />
  ```mermaid theme={null}
  %%{init: {'flowchart': {'rankSpacing': 200;}}}%%
  flowchart LR
    Event[Run state change to Failed]
    Action[Slack notification]
    Event --> Action
  ```
  <br />
* When the `production` alias is added to an artifact (event), call a webhook to trigger deployment (action).
  <br />
  <br />
  ```mermaid theme={null}
  flowchart LR
    Event[Artifact alias added]
    Action[Webhook]
    Event --> Action
  ```
  <br />

Events and available conditions differ for automations scoped to a [project](/models/automations/automation-events#project) or a [registry](/models/automations/automation-events#registry). See [Automation events and scopes](/models/automations/automation-events).

This page links to two end-to-end tutorials that show you how to create an automation in W\&B. Each tutorial walks through a different scenario, so you can follow the one that matches what you want to build. For detailed guidance, select a tutorial.

* **[Project automation tutorial](/models/automations/project-automation-tutorial)**: Alert when a run fails (Slack notification).
* **[Registry automation tutorial](/models/automations/registry-automation-tutorial)**: Trigger a webhook when an alias (for example, `production`) is added to an artifact.
