I'm trying to setup Slack notifications via Prefec...
# prefect-cloud
j
I'm trying to setup Slack notifications via Prefect Cloud Automations but it looks like it only works for incoming webhooks instead of a bot token. That means each new channel requires a new webhook, which would be annoying to setup. Is it possible for me to add a new block type that I could use when notifying? I'm unsure how the
notify
capability on blocks works but it looks like I can only select a block if it can
notify
.
1
I can make an issue but I'm curious if this would be in the
prefect
repo or the
prefect-slack
repo. If it's just in
prefect-slack
I might be able to add a PR myself. Do I just need to add a
notify
method to the SlackCredentials class, similar to how it exists for the SlackWebhook class?
c
Hi John, thanks for letting us know. Automations is a unique case where we are actually running the block code server-side on Prefect Cloud, so we don't use any of the public/community-maintained blocks there for security reasons. If you were game to make a PR to
prefect-slack
with what you had in mind, I can backport that to Prefect Cloud as well. Otherwise, send us a GH issue on the
prefect-slack
repo spelling out what you'd like to be able to do
gratitude thank you 1
🙌 2