Hi everyone! I have configured an Automation in th...
# ask-community
s
Hi everyone! I have configured an Automation in the prefect UI to send slack messages when the Flow state changes. When I am registering a new flow, is there a way of linking that new flow with the
automation action
without going to the UI?
k
I believe you can with the GraphQL API using the
Mutation.create_flow_run_state_changed_hook
and then you link action
s
Thanks for the reply @Kevin Kho. I will try it. Another thing I wanted to know is if it's possible to customize the slack message in the UI like making bold fonts and line break
k
Try adding the markdown styling here in the Automations tab
s
Cool will try that
m
@Kevin Kho is there a way this can be done without GraphQL ? like through a property of the flow.. e.g: like we do for flow.storage, flow.run_config, etc..
k
I can elevate the feedback, but this will likely not happen for Prefect 1.0, and would be deferred to Orion.
👍 1