> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kadoa.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email

> Send workflow notifications to one or more email addresses

An email channel sends notifications to a list of addresses. Create one channel per audience, for example one for the data team and one for on-call.

## Create an email channel

1. Go to **Settings > Notifications**.
2. Under **Channels**, select **Create channel** and choose **Email**.
3. Add one or more recipients. If you add several, give the group a name.
4. Save the channel.

> [tab] Single recipient
>
> ![The Create channel dialog with Email selected and one recipient address](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-ui.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=cbc3e43b88a9e340b32aa57067322e25)

> [tab] Group of recipients
>
> ![The Create channel dialog with Email selected, several recipients, and a group name](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-ui-group.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=cda7622628669bdd28eea2e1351ed4e9)

You can also create a channel while you add a notification. Then subscribe the channel to events for the team or for one workflow. See [Notifications in the UI](https://docs.kadoa.com/docs/notifications.md).

## Set up with code

`EMAIL: true` sends to your account email. Pass `recipients` to send to other addresses.

```typescript title="Node SDK" theme={null}
import { KadoaClient } from "@kadoa/node-sdk";

const client = new KadoaClient({ apiKey: "YOUR_API_KEY" });

// Use your account email
await client.notification.setupForWorkflow({
  workflowId: "YOUR_WORKFLOW_ID",
  events: ["workflow_finished", "workflow_failed"],
  channels: { EMAIL: true },
});

// Or specify custom recipients
await client.notification.setupForWorkflow({
  workflowId: "YOUR_WORKFLOW_ID",
  events: ["workflow_data_change"],
  channels: {
    EMAIL: {
      name: "team-alerts",
      recipients: ["team@company.com", "alerts@company.com"],
    },
  },
});
```

```python title="Python SDK" theme={null}
from kadoa_sdk import KadoaClient, KadoaClientConfig
from kadoa_sdk.notifications import SetupWorkflowNotificationSettingsRequest

client = KadoaClient(KadoaClientConfig(api_key="YOUR_API_KEY"))

# Use your account email
client.notification.setup_for_workflow(
    SetupWorkflowNotificationSettingsRequest(
        workflow_id="YOUR_WORKFLOW_ID",
        events=["workflow_finished", "workflow_failed"],
        channels={"EMAIL": True},
    )
)

# Or specify custom recipients
client.notification.setup_for_workflow(
    SetupWorkflowNotificationSettingsRequest(
        workflow_id="YOUR_WORKFLOW_ID",
        events=["workflow_data_change"],
        channels={
            "EMAIL": {
                "name": "team-alerts",
                "recipients": ["team@company.com", "alerts@company.com"],
            }
        },
    )
)
```

For the REST API, see [Create notification channel](https://docs.kadoa.com/api-reference/notifications/create-notification-channel.md).

## What each email contains

Each event type has its own email layout. Data change emails can also include an [AI summary](https://docs.kadoa.com/docs/notifications.md#ai-summary) and a CSV attachment. Choose these under [notification content](https://docs.kadoa.com/docs/notifications.md#notification-content).

> [tab] workflow\_data\_change
>
> ![Data change email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-data-change.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=4e3ae6f8c1c23f968268059bd7b3e672)

> [tab] workflow\_finished
>
> ![Workflow finished email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-finished.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=0f66b43ae2c9f685412497934cc1dd04)

> [tab] workflow\_failed
>
> ![Workflow failed email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-failed.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=ef5dafc8b7353989720a1f7a570a78f8)

> [tab] workflow\_data\_quality\_change
>
> ![Data quality email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-data-quality.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=4f8307176c67dc7d5c2cf1158343bcfe)

## System emails

Kadoa sends these emails automatically. You cannot turn them off.

> [tab] workflow\_sample\_finished
>
> Sent to the workflow author when preview data is ready for review.
>
> ![Sample ready email](https://mintcdn.com/kadoa/J2BP2lmQhWDWhIB8/images/notifications/emails/emails-sample-finished.png?fit=max\&auto=format\&n=J2BP2lmQhWDWhIB8\&q=85\&s=b2a0d276e207bb5dd4f5b8118884b88e)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.