# Dagster + Slack

> Improve notifications and keep stakeholders in the loop.

Source: https://dagster.io/integrations/dagster-slack
Category: Alerting

## About this integration

This library provides an integration with Slack, to support posting messages in your company’s Slack workspace.

## Installation

```bash
pip install dagster-slack
```

## Example

```python
# Read the docs on Resources to learn more: https://docs.dagster.io/api/dagster/resources

import dagster as dg
from dagster_slack import SlackResource


@dg.asset
def slack_message(slack: SlackResource):
    slack.get_client().chat_postMessage(channel="#noise", text=":wave: hey there!")


defs = dg.Definitions(
    assets=[slack_message],
    resources={"slack": SlackResource(token=dg.EnvVar["SLACK_TOKEN"])},
)
```

## About Slack

The **Slack** messaging app provides chat, video and voice communication tools and is used extensively across companies and communities. The Dagster slack community can be found at [dagster.io/slack](https://dagster.io/slack).
