> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On Automate.ax automation enabled

> Run an automation when another Automate.ax automation becomes enabled.

`automate.onAutomationEnabled` emits when the selected automation changes from disabled to enabled.

```ts automations/watch-enabled-automation.automation.ts theme={null}
import { automation } from "automate.ax"
import { automate } from "automate.ax/automate"

export default automation("Watch enabled automation", () => {
  automate.onAutomationEnabled({
    account: "operations",
    automation: "auto_01",
  })
})
```

When `account` is omitted, the trigger uses the deploying project's organization. An explicit static Automate.ax binding requires `project:read` and can select another organization. `automation` accepts an imported descriptor, exact ID, or unique deployed description in that organization.

## Trigger data

Returns the [automation state event shape](/reference/integrations/automate/triggers/on-automation-state-changed) with `previousEnabled: false` and `enabled: true`.
