# Workflow SDK World

> The tables of the Workflow SDK World (@workflow/world-postgres 5.0.4) in the workflow schema, closed to the API roles; a trigger that copies each run into workflow_runs, and a pg_net dispatcher for the delivery queue on a pg_cron schedule.

- Category: Automation
- Module: `workflow-sdk`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/workflow-sdk
- Page: https://bettersupabase.com/blocks/workflow-sdk

## Install

```bash
npx better-supabase add workflow-sdk
```

The command also installs `updated-at`, `memberships`, `queue`, `permissions`, `workflows`.

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Required by workflow-sdk; add installs them too.
    "updated-at": {},
    memberships: {},
    queue: {},
    permissions: {},
    workflows: {},
    // Modes: "managed", "custom". The default is "managed".
    "workflow-sdk": { mode: "managed" },
  },
});
```

## Client

The block is SQL only: call its functions from your policies, RPCs and the other modules.

## Related blocks

Requires: [workflows](https://bettersupabase.com/blocks/workflows.md), [queue](https://bettersupabase.com/blocks/queue.md), [permissions](https://bettersupabase.com/blocks/permissions.md)
