# Enrichment

> Company and person data from an enrichment provider, such as a company's industry and size or a person's title: one result per provider, the empty columns a match fills, and a list of the records due for a cron.

- Category: CRM & sales
- Module: `enrichment`
- Modes: `managed`
- Docs: https://bettersupabase.com/docs/blocks/enrichment
- Page: https://bettersupabase.com/blocks/enrichment

## Install

```bash
npx better-supabase add enrichment
```

The command also installs `updated-at`, `tenant`, `access`, `parties`.

## Configure

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

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

export default defineConfig({
  blocks: {
    // Required by enrichment; add installs them too.
    "updated-at": {},
    tenant: {},
    access: {},
    parties: {},
    // Modes: "managed". The default is "managed".
    enrichment: { mode: "managed" },
  },
});
```

## Client

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

## Events

- `party.enriched`

## Related blocks

Requires: [tenant](https://bettersupabase.com/blocks/tenant.md), [access](https://bettersupabase.com/blocks/access.md), [parties](https://bettersupabase.com/blocks/parties.md)

Works with: [outbox](https://bettersupabase.com/blocks/outbox.md), [data-lifecycle](https://bettersupabase.com/blocks/data-lifecycle.md)
