Nicholas Pini
03/17/2026, 1:57 PMA and tag B AT THE SAME TIME? They both need to be presentMarvin
03/17/2026, 1:57 PMMarvin
03/17/2026, 2:00 PMtrigger:
type: event
posture: Reactive
expect:
- prefect.flow-run.Completed # or the event(s) you want
match:
prefect.resource.id: prefect.flow-run.*
match_related:
- prefect.resource.id: prefect.tag.A
prefect.resource.role: tag
- prefect.resource.id: prefect.tag.B
prefect.resource.role: tag
Notes
- The “Flow run state change” template in the UI evaluates flow-run tags with OR logic; to require A AND B, use an Event trigger as shown above.
- match_related is AND across items (each object must match), while multiple values inside a single object are OR.
CLI (if you want to create from a file)
prefect automation create --from-file automation.yaml
If you share your current automation JSON/YAML (minus secrets), I can patch it to require A AND B.