https://prefect.io logo
s

Sayantani Bhattacharjee

08/17/2023, 7:41 PM
Hello! I am trying to set up automation to send notifications. Is there any way to leverage prefect.yaml deployments to set up the automations or is it just the API endpoints route that is a viable approach?
1
🙌 1
j

Jake Kaplan

08/17/2023, 8:28 PM
Hey, at the moment automations can only be configured via the API/UI for sending notifications
s

Sayantani Bhattacharjee

08/17/2023, 8:32 PM
Thanks Jake! I was also wondering, when setting up an action for the automation, is there any way to specify the format of the Body to say JSON? I assume, currently the format is just jinja-templated string.
j

Jake Kaplan

08/17/2023, 9:44 PM
I believe it is a jinja templated string. For the action youre talking about the actual notification that gets sent?
s

Sayantani Bhattacharjee

08/17/2023, 10:08 PM
That's correct.
j

Jake Kaplan

08/18/2023, 2:11 PM
Today I don't think you can do this. I think we have an open issue around this to customize the payload, https://github.com/PrefectHQ/prefect/issues/10307
If you get a minute, would you mind commenting there about your desired functionality/use case? It helps with priority 🙂
🙌 1
thank you 1