<@ULVA73B9P> what replaced notifications in prefec...
# ask-marvin
a
@Marvin what replaced notifications in prefect? im on 3.7.0
m
thought for 86.6 seconds
Yes — in Prefect 3.7.0, notifications were replaced by automations. If you used the old flow run notification policies, the replacement is: Automation +
send-notification
action So instead of configuring a standalone notification policy, you now create an automation that: - watches for an event, like
prefect.flow-run.Failed
- then performs an action, like sending Slack / Teams / PagerDuty / SMS / webhook notifications Example mental model: - old: “notify me when flow runs fail” - new: “create an automation triggered by failed flow run events, with a
send-notification
action” If you were already using notifications before upgrading, Prefect 3.7.0 should have automatically migrated those notification policies into automations. Useful docs: - Automations concept guide - Create automations - Custom notifications - Notification blocks API You’ll generally use notification blocks like: -
SlackWebhook
-
MicrosoftTeamsWebhook
-
PagerDutyWebHook
-
TwilioSMS
-
CustomWebhookNotificationBlock
If you want, I can also show you: - how to recreate an old “notify on failure” setup in Prefect 3.7.0, or - where to find the migrated automations in the UI.