> ## 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 Vercel project event

> Start an automation when a Vercel project is created, removed, or renamed.

`onVercelProjectEvent` is the broad project webhook trigger. It emits project lifecycle changes for the connected Vercel installation. Prefer a specific project trigger when the automation handles one lifecycle event.

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

export default automation("Watch Vercel projects", () => {
  const event = onVercelProjectEvent()
  event.transform(({ payload, type }) => ({
    projectId: payload.project.id,
    projectName: payload.project.name,
    type,
  }))
})
```

Optional static `account` defaults to the project's Vercel binding and must use OAuth.

## Trigger data

The event `type` is `project.created`, `project.removed`, or `project.renamed`. The payload includes the project, the owning team or user, and provider fields supplied by Vercel. The top-level envelope includes `id`, `createdAt`, and `region`.
