prefect-slack
Prefect integrations with Slack
What it is and what it does
prefect-slack is a collection of tasks and blocks that bridge Prefect workflow orchestration with Slack messaging. It lets you send notifications to Slack channels directly from your Prefect flows, typically to alert on flow completion, failures, or other workflow events. The package wraps the slack_sdk and integrates with Prefect's task and block system, so you configure Slack credentials once and reuse them across flows.
The package is designed for Prefect 3.x and requires Python 3.10+. It depends on aiohttp for async HTTP, slack_sdk for Slack API access, and prefect itself. Setup involves creating a Slack app, obtaining a Bot OAuth token or Webhook URL, and passing credentials to the send_chat_message task or equivalent blocks within your flow definition.
Use it for:
- Notify a Slack channel when a scheduled Prefect flow completes or fails, for real-time visibility into workflow status
- Send alerts to on-call teams via Slack when data pipeline tasks encounter errors or anomalies
- Log flow run summaries and metrics to a dedicated Slack channel for audit and monitoring purposes
- Integrate Prefect deployments with team communication by posting deployment status changes to Slack
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides prebuilt Prefect tasks and blocks to send Slack messages from Prefect workflows, integrating workflow orchestration with Slack notifications.
Yes, if you use Prefect and need Slack notifications. The package is actively maintained, has low install friction, uses a permissive license, and integrates cleanly with Prefect's task model. No known vulnerabilities. Install it when you want to add Slack alerting to your Prefect workflows without writing custom Slack API code.
Install
prefect-slack on PyPI
pip
pip install prefect-slackuv
uv add prefect-slackpoetry
poetry add prefect-slackInstalling prefect-slack
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release 10 days ago. Requires Python 3.10+ and depends on aiohttp, slack_sdk, and prefect.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install prefect-slack
from prefect import flow
from prefect_slack import SlackCredentials
from prefect_slack.messages import send_chat_message
@flow
def notify_flow():
send_chat_message(
slack_credentials=SlackCredentials(token="xoxb-your-token"),
channel="#alerts",
text="Flow completed"
)
Requires Python 3.10+. Requires a Slack app with Bot OAuth token or Webhook URL configured in your Slack workspace.
Verify before relying
- Whether the package supports message formatting, attachments, or rich message types beyond plain text
- Whether error handling and retry logic are built in or left to the caller
- Performance characteristics when sending many messages in parallel flows
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, slack_sdk, prefect |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 308,953/month — #7,762 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_slack-0.4.0-py3-none-any.whl
Keywords: prefect
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
prefect-emailProvides Prefect workflow integration for…
permissive · top 15,000 on PyPI
slackwebSends messages to Slack channels via incoming…
permissive · top 15,000 on PyPI
slackblocksBuilds Slack Block Kit messages…
permissive · top 15,000 on PyPI
prefect-githubProvides Prefect workflow tasks and blocks for…
permissive · top 5,000 on PyPI
pyblock-builderPyBlock Builder provides Python classes and…
permissive · top 15,000 on PyPI
prefectPrefect is a Python workflow orchestration…
permissive · top 5,000 on PyPI
prefect-sqlalchemyIntegrates SQLAlchemy with Prefect workflows,…
permissive · top 5,000 on PyPI
prefect-gitlabIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
slackerSlacker is a Python client library for the…
permissive · top 15,000 on PyPI
slack-discovery-sdkProvides Python bindings to Slack's Discovery…
unclear · top 15,000 on PyPI