> ## 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.

# Convex

> Run Convex functions and start automations from signed document changes or custom events.

## Exports

```ts theme={null}
import { convex, convexAccount } from "automate.ax/convex"
```

* `convex` contains the packaged Convex actions and triggers.
* `convexAccount("name")` selects a named Convex connection.

Convex functions can emit signed events without importing the automation runtime:

```ts theme={null}
import { emitConvexEvent, signConvexEvent } from "automate.ax/convex/events"
```

## Triggers

* [On document event](/reference/integrations/convex/triggers/on-document-event)
* [On document created](/reference/integrations/convex/triggers/on-document-created)
* [On document updated](/reference/integrations/convex/triggers/on-document-updated)
* [On document deleted](/reference/integrations/convex/triggers/on-document-deleted)
* [On event](/reference/integrations/convex/triggers/on-event)

## Actions

* [Run query](/reference/integrations/convex/actions/run-query)
* [Run mutation](/reference/integrations/convex/actions/run-mutation)
* [Run action](/reference/integrations/convex/actions/run-action)
