Skip to main content
Many of the parameters of automation actions can be defined with Jinja2 templates. These templates have access to objects related to the event that triggered your automation, including the deployment and flow run of that event (if applicable). Here we’ll explore an example illustrating how to access their parameters in an automation action. Let’s start with two flows, alpha and beta:
Once a run of alpha completes, we’ll automate running a flow of beta with the same parameters:
If you are defining your automation in the Prefect web UI, you can switch the parameter input to support Jinja2 values: Use Jinja input for an action