<@ULVA73B9P> Hi, in Prefect, how can I know when m...
# ask-marvin
b
@Marvin Hi, in Prefect, how can I know when my automation is triggered? At the moment, I just check the runs dashboard, but I don’t think that’s the best way to handle it when I have around 100 automations. Thanks!
m
thought for 158.3 seconds
Great question — with lots of automations, polling the Runs dashboard gets noisy fast. Here are the best ways to know exactly when an automation is triggered in Prefect 3.x: 1) Add a Notify action to your automations - In the Automations UI, edit an automation and add the “Send a notification” action. - Point it at a Notification block (Slack webhook, email, Teams, or a generic webhook). - Reuse the same block across all your automations to consolidate alerts in one place (e.g., a single Slack channel). - Tip: Customize the message so it includes the automation name and a link back to the UI to investigate. Docs refs: - Events and triggers (API reference) - Automations (schemas) 2) Use the Automations UI activity view - Each automation’s detail page shows recent matches and the actions taken, giving you a clean history of when it was triggered and why — more precise than scanning Flow/Task runs. 3) Centralize via a webhook - If you want a single system of record, configure the action to “Send a notification” to a webhook you control. You can then aggregate, transform, and route alerts however you like. Helpful CLI for visibility (verified): - List automations:
Copy code
prefect automations ls
- Inspect a specific automation:
Copy code
prefect automations inspect "my-automation"
Add
--json
or
--yaml
to see full details of the trigger and actions. Questions to tailor this for you: - Are you on Prefect Cloud or self-hosted? - What’s your preferred channel for alerts (Slack, email, webhook)? - Do you want one consolidated feed for all 100 automations or separate destinations per automation? If you share that, I can suggest a concrete setup (e.g., one shared Slack Notification block with a message template) and help you roll it out efficiently.
b
@Marvin i use self-hosted, my alert channel is slack. I don’t see anything (trigger history) in automation page
m
🔄 Researching your answer... this may take a while 🔧 Using tool:
research_prefect_topic
📊 Tools used: •
research_prefect_topic
(1x)