Hi everyone, I am currently using the prefect cloud slack webhook to send a slack message every time a flow fails. Unfortunately, I am unable to determine from the message which deployment failed since it just reports the random flow-name. Does anyone know of a way to include the deployment name in the automated slack message?
✅ 1
💯 1
r
redsquare
03/07/2023, 6:44 PM
workspace name would be nice to
r
Rob Freedy
03/08/2023, 2:15 PM
Hey @Vicente Bobadilla Riquelme!! Are you using Automations for the Slack notification? You can set up an Automation that calls your Slack Webhook block when a flow run enters a failed state and template the message using the Jinja template in the message body (see docs. here)
🙌 1
r
redsquare
03/08/2023, 2:20 PM
workspace would be 👍
r
Rob Freedy
03/08/2023, 2:31 PM
@redsquare thanks for raising this!! I filed a feature request here to make workspace and accounts top level objects in the notifications templating
👍 1
r
redsquare
03/08/2023, 2:33 PM
cheers @Rob Freedy
👍 1
v
Vicente Bobadilla Riquelme
03/08/2023, 6:32 PM
@Rob Freedy No, I was not aware of Automations. I looked into it and it seems that Automations are only available on Prefect Cloud. Is there a similar workaround in Prefect UI?