> ## 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 comment added

> Start an automation when a user comment is added within an Asana resource.

`onAsanaCommentAdded` matches `comment_added` stories propagated through the selected resource and includes the fetched comment.

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

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

`resourceId` is required. Optional static `account` defaults to the project binding.

Returns an `AsanaEvent` signal with `action: "added"`, `resourceType: "story"`, and `comment: AsanaStory` whose `subtype` is `"comment_added"`. The comment includes normalized text/HTML, creator, creation timestamp, and edited/pinned state. The base event also identifies its parent, user, watched resource, and provider change when available.
