# Prompts

> Versioned prompt templates by name, per tenant or for the whole system, with labels such as production that point at one version; only the service role reads and writes them.

- Category: AI
- Module: `prompts`
- Modes: `managed`
- Docs: https://bettersupabase.com/docs/blocks/prompts
- Page: https://bettersupabase.com/blocks/prompts

## Install

```bash
npx better-supabase add prompts
```

## Configure

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

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

export default defineConfig({
  blocks: {
    // Modes: "managed". The default is "managed".
    prompts: { mode: "managed" },
  },
});
```

## Client

The block has no React entry yet. Its server-side TypeScript is in `better-supabase/blocks/prompts`.
