A workflow that runs on a schedule and reports to nobody is a small bet placed every night. The bet is that the thing keeps working, and that someone notices on the morning it does not. Most teams lose that bet slowly. The job stops writing rows, the report goes out with yesterday's numbers, and the first real signal is a person asking why a number looks stuck.
The fix is not more monitoring dashboards. It is deciding in advance which failures deserve a message, where that message lands, and what the message has to contain so the person reading it can act without opening five tabs. That is a design question with a few platform quirks worth knowing.
Split the failure into three kinds
Treat these as separate problems, because each one needs a different detector.
The first is a workflow that never started. A disabled flow, a trigger whose connection expired, a schedule that stopped because the account that created it was deprovisioned. Nothing ran, so nothing failed, so error handling has nothing to catch.
The second is a run that started and threw. This is the easy case, the one every platform has a hook for.
The third is a run that completed and produced the wrong result. It copied 400 of 1,200 rows, it matched zero records because a column got renamed, it sent the file with an empty attachment. The platform records success.
Most alert setups cover only the middle case and then feel complete. The two quiet cases are where the expensive incidents live.
Know what the platform already sends
Power Automate, for example, sends two kinds of failure email. A per-run alert arrives shortly after a failed run, but only when the service matches the failure to a known, fixable root cause: a broken connection, a throttled action, an AI Builder error, a desktop flow error, a recognised connector error. Everything else is silent. Microsoft's documentation is explicit that a general action failure and a cascade failure generate no per-run email, on the reasoning that an alert should carry a fix rather than news.
Cascade failures deserve attention because they mislead. When one action fails, every later action that depends on it is also marked failed even though it never ran. A run history full of red boxes has one real cause at the top, and triaging from the bottom wastes the response window.
Two more details shape the design. A per-run alert has a 28-day cooldown per flow, so a flow that fails weekly produces one email a month at most. And alerts go only to the flow's owner and co-owners, never to environment or tenant admins, which means a flow whose owner left the team sends its mail to an abandoned inbox. The weekly digest fills some of the gap by covering every failure type across environments, but a digest that arrives on Monday tells you about a Thursday outage.
Build one catch path you control
The reliable layer is a path you configure yourself. In Power Automate that means the Run after settings on each action, which let a step run when the previous step failed, timed out, or was skipped. Point those at a single catch scope that logs the error and sends the notification, then ends the run with a Terminate action carrying a deliberate status and message. Microsoft's guidance on robust error handling also points at the workflow() function, which returns the current run's id and name so the message can identify which execution broke.
n8n takes a different shape with the same purpose. Each workflow can point at an error workflow in its settings, and that workflow has to start with the Error Trigger node. One handler can serve many workflows, which keeps the notification format consistent across a folder. The payload it receives carries the execution id, a link to the run, the error message and stack, and the name of the last node executed. If the trigger node itself failed, the execution object is thinner and the error moves into a separate trigger block, so a handler written against only one shape will render blanks on exactly the failures that matter most. n8n's error workflow documentation spells out that difference.
Detect the run that finished wrong
Since the platform calls these runs successful, build the check into the job. The cheapest version is a heartbeat: the last step of every run appends a row to a small store with a timestamp, a run id, and a count of records processed. A separate scheduled task reads that store and raises an alert when the newest row is older than twice the normal interval, or when the count is zero, or when it moved by more than a set percentage.
The heartbeat covers all three failure kinds at once. No row means the run never fired. A row with an error code means it threw. A row with an implausible count means it ran and produced the wrong result. One table answers the question people actually ask at 9am.
Keep the thresholds blunt. A count that swings with real business volume will produce false alarms, so pick the assertion the workflow can always satisfy: at least one row written, no unresolved placeholders left in the output, the destination file exists and is larger than a stub. Assertions that are true by construction are the ones that catch breakage.
Make the message short enough to act on
An alert that arrives as a paragraph gets skimmed. The useful version fits in a channel message: workflow name, run id, the failing step, the error text verbatim, the time of the last successful run, and a link straight to the run history. Add the business consequence in one clause when it is known, such as invoices are not posting.
Route it to one place. Splitting alerts across email, chat, and a dashboard tab splits attention. A single channel with a dedicated topic by team works, and the alert should be addressed to a role rather than a person's name, with a named fallback for holidays. Ownership is the part most often missing: an alert routed to a shared mailbox with no owner is the same as no alert.
Test it by breaking it on purpose
Nobody should discover whether the alert works during an incident. Force each path once, in a quiet hour, and record what happened. Disconnect a credential to trigger a connection failure. Trip a deliberate stop so the catch path fires. Then simulate the silent case by disabling the trigger and waiting past the heartbeat threshold.
Both Power Automate and n8n have a way to fail on purpose: a Terminate action, or a Stop and Error node placed behind a condition. Use that to confirm the message arrives, contains the run id, and links to the right execution. Re-run the test whenever the flow's owner changes, because that change also changes who receives platform-generated mail.
There is a second reason to rehearse. The cooldown and digest behaviour mean platform alerts are sparse by design, and a team that has never received one cannot tell whether the absence of alerts reflects health or a broken notification route. One forced alert per quarter settles that question in an hour.
The whole arrangement costs one extra step per run and one small scheduled read, and it turns the bet into a recorded fact. A workflow that reports its own heartbeat has stopped being a thing nobody watches. It has become a thing that speaks up, on a schedule the team chose, with enough detail that the reply is an action rather than an investigation.
Where the design usually slips
The common mistake is alerting on everything the platform will tell you and nothing it will not. A team enables every notification toggle, tests one failed run, and believes the gap is closed, while the run that silently processes an empty input file continues to pass. The other slip is one hero who checks the run history each morning, which works until a holiday. Alerts only remove that person from the loop if routing is durable and the thresholds were tested against real volume.


