> ## 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 recording ended

> Run an automation when Google Meet recording stops.

`onGoogleMeetRecordingEnded` emits a recording resource when capture stops. The Drive file might not be ready yet.

## Example

```ts theme={null}
import { automation } from "automate.ax"
import { onGoogleMeetRecordingEnded } from "automate.ax/google-meet"

export default automation("Track recording completion", () => {
  const recording = onGoogleMeetRecordingEnded({ space: "abc-defg-hij" })

  recording.endTime
})
```

## Options

`space` optionally limits the trigger to one static space. Omit it to watch owned meeting spaces. `account` optionally selects a static Google Account binding.

## Trigger data

Returns a recording with `name`, `state: "ended"`, and timing. Use `onGoogleMeetRecordingGenerated` when you need the Drive destination. The connected user must own or organize the meeting.
