Hi everyone, I am currently using the prefect clou...
# ask-community
v
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
workspace name would be nice to
r
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
workspace would be 👍
r
@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
cheers @Rob Freedy
👍 1
v
@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?