> ## 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 deployment integration action cleanup

> Run an automation when Vercel reports deployment integration action cleanup.

`vercel.onDeploymentIntegrationActionCleanup` starts an automation for the corresponding Vercel webhook event.

```ts automations/on-deployment-integration-action-cleanup.automation.ts theme={null}
import { automation } from "automate.ax"
import { vercel } from "automate.ax/vercel"

export default automation(
  "On Vercel deployment integration action cleanup",
  () => {
    const event = vercel.onDeploymentIntegrationActionCleanup()
    event.transform(({ payload }) => ({
      action: payload.action,
      deploymentId: payload.deployment.id,
      resourceId: payload.resourceId,
    }))
  },
)
```

## Input

The trigger accepts optional static `account` selection. Without it, Automate.ax uses the project's Vercel OAuth binding.

## Output

The event includes `id`, `createdAt`, `region`, its exact `type` discriminator, and a typed `payload`. The payload identifies the integration action whose permanently deleted deployment is being cleaned up.

## Provider behavior

Automate.ax verifies Vercel's signature, routes the event to the matching installation, and deduplicates the delivery by event ID. This event arrives after Vercel permanently deletes the deployment, not when deletion is first requested.
