> ## 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 Asana event

> Start an automation from compact changes propagated through an Asana resource.

`onAsanaEvent` is the broad Asana webhook trigger. A project subscription includes changes from its tasks, subtasks, and stories.

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

export default automation("Watch Asana project", () => {
  onAsanaEvent({ resourceId: "project-gid" })
})
```

## Options

`resourceId` is the required GID of the project, task, or other resource to watch. Optional `account` is a static Asana binding and defaults to the project binding; a signal cannot choose it at runtime.

## Trigger data

Returns `Signal<AsanaEvent>` with `action: "added" | "changed" | "deleted" | "removed" | "undeleted"`, `createdAt`, `resource`, `resourceType`, optional `resourceSubtype`, `watchedResourceId`, optional `parent` and `user`, and optional `change`. A change includes `action`, `field`, and optional provider JSON values in `newValue`, `addedValue`, and `removedValue`.

The changed `resource.id` can differ from `watchedResourceId` because events propagate through the subscribed resource. Use a semantic trigger when you only need one event category.
