Automate Convex with TypeScript

Run Convex queries, mutations, and actions. Start automations from document changes or signed application events.

process-convex-documents.automation.ts
import { automation } from "automate.ax"
import { convex } from "automate.ax/convex"

export default automation("Process Convex orders", () => {
  const order = convex.onDocumentCreated({ table: "orders" })

  convex.runMutation({
    functionName: "orders:markQueued",
    arguments: { id: order.documentId },
  })
})

What you can do

Actions

  • Run public and internal queries
  • Run mutations with typed Convex values
  • Run actions against a connected deployment

Triggers

  • Document created, updated, or deleted
  • Broad document lifecycle activity
  • Explicit signed application events

Start automating with Convex today

Start building