<@ULVA73B9P> With the prefect automations: is it p...
# ask-marvin
m
@Marvin With the prefect automations: is it possible to match the body of an event that was emitted by a static prefect webhook? Since the event message is no json, i can not directly match prefect parameters, but I want to match the message body string to find out if the event is relevant.
m
The information extracted from the Prefect documentation does not directly address how to match the body of an event emitted by a static Prefect webhook in the context of automations. However, from what we can gather: 1. Prefect automations can trigger and take actions based on various criteria, including work pool status and custom event triggers. While the documentation excerpt mentions triggering based on flow run state changes, it does not cover the specifics of how to match against the body of an event. 2. Prefect webhooks can accept events directly with a simple pass-through template
{{ body|tojson }}
, which implies that webhooks can handle incoming bodies in JSON format. The example given suggests that a POST request with a JSON body will result in an event with additional default values filled out. Given this information, if a webhook emits an event in a non-JSON format, it may not be straightforward to match against it directly using Prefect automations. The automations seem to be designed to work more seamlessly with JSON-formatted event bodies. To better answer your question, I would need to refer to more specific documentation or use cases pertaining to Prefect automations and webhooks. If you would like me to search for open GitHub issues that might relate to this topic, I can do that for further clarity.