Liliya Angelova
10/14/2025, 2:06 PMNate
10/14/2025, 2:11 PMNate
10/14/2025, 2:11 PMLiliya Angelova
10/14/2025, 2:21 PM{
"id": "807339c0-17e5-4ad4-aa0a-a8b2eb187862",
"event": "Trigger direct freight search",
"occurred": "2025-10-14T13:47:05.145Z",
"payload": {
"tab_id": "1",
"tenant_ref": "2",
"search_hash": "3",
"session_hash": "4",
"search_criteria": "whatever"
},
"received": "2025-10-14T13:48:00.308Z",
"related": [],
"resource": {
"prefect.resource.id": "custom.api.trigger",
"prefect.resource.role": "api"
}
}Liliya Angelova
10/14/2025, 2:22 PMNate
10/14/2025, 2:23 PMLiliya Angelova
10/14/2025, 2:25 PM{
"type": "event",
"match": {
"prefect.resource.id": [
"custom.api.trigger"
]
},
"match_related": {},
"after": [],
"expect": [
"Trigger direct freight search"
],
"for_each": [],
"posture": "Reactive",
"threshold": 1,
"within": 0
}Nate
10/14/2025, 2:26 PMexpect should be something like
prefect.flow-run.Completed
ie it should be the event that you are `expect`ing to seeNate
10/14/2025, 2:27 PMfoo.bar.baz then you'd expect={"foo.bar.baz"}Nate
10/14/2025, 2:28 PMLiliya Angelova
10/14/2025, 2:31 PMNate
10/14/2025, 2:55 PMNate
10/14/2025, 2:57 PMLiliya Angelova
10/14/2025, 3:00 PM{
"payload": {{ event.payload | tojson }}
}
The UI for automations is a bit confusing and it would help a lot if there are more examples in the docs but thanks a lot for your time and help! 🙂 🙏Nate
10/14/2025, 3:01 PMNate
10/14/2025, 4:47 PMLiliya Angelova
10/14/2025, 5:01 PM