How to monitor n8n workflows and get alerted when they silently fail
On this page
- What you'll catch
- Step 1: Create a monitor in Stallbell
- Step 2: Add a "start" ping at the top of the workflow
- Step 3: Add a "finish" ping at the end
- Step 4: Add an error workflow that reports failures
- Step 5 (optional): Catch runs that succeed with nothing in them
- Step 6: Choose where alerts go
- Test it
- Troubleshooting
- FAQ
- Start watching your first workflow
- Sources
To monitor n8n workflows, add an HTTP Request node at the start and the end of each workflow that pings a heartbeat URL, and set an error workflow that pings the same URL with a failure. An outside monitor then alerts you when the finish ping is late, when a run fails, and when a run starts but never finishes. You need both halves, because n8n's error workflow only runs when an execution fails, so it can't tell you about a workflow that never ran.
An n8n workflow can stop working without telling anyone. A schedule stops firing after a restart, a credential expires, a node errors at 3 a.m., or the run goes green but the API returned nothing.
This guide sets up both halves:
- A heartbeat. The workflow tells Stallbell when it starts and when it finishes. If the next check-in doesn't arrive on time, Stallbell alerts you. This catches the silent cases: a schedule that stopped, a dead instance, an unpublished workflow, a run that hangs.
- An error workflow. When an execution fails, n8n runs a small workflow that tells Stallbell the run failed, and passes along n8n's error message.
You need an n8n instance (Cloud or self-hosted) and a free Stallbell account. It takes about ten minutes. Menu and setting names below follow n8n's current docs.
What you'll catch
| What happens in n8n | What Stallbell sees | Alert |
|---|---|---|
| The schedule stops firing, the instance is down, or the workflow was unpublished | No check-in by the expected time plus grace | Missed run |
| A node errors and the execution fails | A fail check-in from the error workflow | Failed run (the first failure alerts, by default) |
| A run starts and hangs on a slow API | A start with no finish | Stuck run (after 1 hour by default) |
| A webhook or loop triggers the workflow far more often than usual | Too many runs in a 10-minute window | Runaway loop |
| The run "succeeds" but the result is empty | The finish check-in carries empty output | Empty output (optional, Step 5) |
Step 1: Create a monitor in Stallbell
- Sign in to Stallbell with your email. You land on a ready-made monitor called
my-first-jobwith its ping URL. Rename it after your workflow, for examplenightly-lead-sync. - Set the schedule to match the workflow's Schedule Trigger. For a simple interval, pick a period in Every (for example 1 hour). For a cron-style schedule, open the monitor (Monitors in the top bar, then your monitor). Under Thresholds, set How it runs to On a cron schedule, enter the five fields in Cron expression, set Schedule timezone to the workflow's timezone, and press Save alert settings.
- Leave Grace period at the default of 5 minutes unless your runs often start late.
- If a normal run takes longer than an hour, raise Stuck after in the monitor settings. Otherwise a long, healthy run will be flagged as stuck.
- Copy the ping URL. It looks like this:
https://stallbell.com/p/TOKEN
The token in the URL is the only credential. Anyone who has the URL can check in for that monitor, so keep it out of shared templates and screenshots. You can rotate it from the monitor page.
Stallbell starts watching for missed runs after the first check-in arrives, so a brand-new monitor won't alert before you've wired it up.
Step 2: Add a "start" ping at the top of the workflow
Open the workflow you want to watch. Right after the trigger, add an HTTP Request node and name it Stallbell start:
- Method: POST
- URL:
https://stallbell.com/p/TOKEN/start - Send Body: on
- Body Content Type: JSON
- Specify Body: Using JSON
- JSON: switch the field to expression mode and paste:
{{ JSON.stringify({ run_id: String($execution.id) }) }}Don't skip Specify Body: Using JSON. With Using Fields Below, n8n sends the Name and Value pairs you enter in the fields, not this JSON.
Then open the node's Settings tab and turn on:
- Execute Once, so the node sends one ping even when the trigger outputs many items.
- Retry On Fail, so a brief network blip doesn't lose the ping.
- On Error: Continue, so a problem reaching Stallbell never breaks your workflow.
$execution.id is n8n's ID for the current execution. Sending it as run_id lets Stallbell join the start, the finish and any failure into one run. Wrap it in String(): Stallbell expects run_id as text (up to 128 characters) and rejects a number with a 400.
Step 3: Add a "finish" ping at the end
After the last node on the path that means "this run did its job", add a second HTTP Request node named Stallbell finish, set up the same way:
- Method: POST
- URL:
https://stallbell.com/p/TOKEN/ok - JSON (expression mode):
{{ JSON.stringify({ run_id: String($execution.id), msg: $workflow.name }) }}Use the same settings as the start node: Execute Once, Retry On Fail, On Error: Continue.
Where you put this node matters. At the very end, it means "the workflow got all the way through". If it sits early in the flow, it only means "the workflow started", and a run that reliably breaks halfway would still look fine.
Step 4: Add an error workflow that reports failures
n8n can run a separate workflow whenever an execution fails. That workflow has to start with the Error Trigger node.
- Create a new workflow and name it something like
Stallbell: nightly-lead-sync errors. - Add an Error Trigger node as the first node.
- Connect an HTTP Request node to it, named
Stallbell fail: - Method: POST - URL:https://stallbell.com/p/TOKEN/fail- Send Body: on, Body Content Type: JSON, Specify Body: Using JSON - JSON (expression mode):
{{ JSON.stringify({
run_id: $json.execution?.id ? String($json.execution.id) : undefined,
msg: String($json.execution?.error?.message || $json.trigger?.error?.message || $json.trigger?.error?.name || "n8n workflow failed").slice(0, 500)
}) }}- Give it the same node settings (Execute Once, Retry On Fail, On Error: Continue) and save.
- Go back to the workflow you're monitoring. Open the Workflow menu in the upper-right corner, choose Settings, pick the new workflow under Error Workflow (to notify when this one errors), and save.
n8n's docs say a workflow that uses the Error Trigger doesn't have to be published.
The Error Trigger receives execution.id for the failed run, so the fail closes the same run the start ping opened. If the failure happened in the trigger node itself, n8n sends no execution ID, and the error details arrive under trigger instead of execution. The expression then leaves run_id out, and Stallbell attaches the failure to the most recent open run on that monitor instead. The error message goes in msg. Stallbell keeps up to 500 characters of it, and the Failed run email shows it on a Failure line (for example "Failure: Lead API returned 503"), so you can see why the run failed without opening anything. The email also links to the monitor.
Each Stallbell monitor has its own URL. If you watch several workflows, give each one its own small error workflow pointing at its own monitor.
Step 5 (optional): Catch runs that succeed with nothing in them
Some failures are green in n8n: the API returned an empty list, the AI node returned a blank answer, the sheet had no new rows. To catch these, send the result in the finish ping. Change the finish node's JSON to include output, using whichever field holds your result (here it's text):
{{ JSON.stringify({
run_id: String($execution.id),
msg: $workflow.name,
output: String($json.text ?? "").slice(0, 2000)
}) }}If output is empty or only whitespace, Stallbell opens an empty-output warning. In the monitor settings you can also require the output to contain a phrase, or to be valid JSON.
Two things to know:
- Keep the body small. Stallbell stores the first 2 KB of
outputand rejects any request body over 16 KB with a413. The.slice(0, 2000)keeps you well under that. - If the step before the finish ping outputs zero items, n8n doesn't run the finish node at all. Turn on Always Output Data in that step's Settings tab, so the finish ping still runs and reports the empty result. Otherwise the run shows up as stuck or missed rather than empty.
Step 6: Choose where alerts go
Stallbell alerts by email, Slack or webhook. By default, alerts go to the email on your account. Under Channels you can add more email addresses, a Slack incoming webhook, or a signed webhook to your own endpoint. You get one message when an incident opens and, unless you turn it off for that channel, another when it recovers. Email, Slack and webhooks are included on every plan, Free included.
Test it
- Heartbeat: run the workflow once. The monitor's Recent runs should list an
OKrun. Click it to open the Run drawer, which shows when it started and finished, its duration, and the first 500 characters of anyoutputyou sent. You can also check the URL from a terminal:
bash curl -fsS -m 10 -X POST https://stallbell.com/p/TOKEN/ok
A good response looks like {"ok":true,"monitor":"nightly-lead-sync","event":"ok","run_id":"..."}. The run_id in the response is Stallbell's own ID for the run, not the run_id you sent. A start and a fail that sent the same run_id get the same ID back, which is how you can tell they joined into one run.
- Error workflow: n8n doesn't run error workflows for manual executions. To test it, put a Stop and Error node after the start ping, publish the workflow on a short schedule, and let it run on its own once. You should get a Failed run email with the error on its Failure line. On the monitor page, Recent runs shows the failed run with the same message, and its Run drawer shows it too. Remove the node afterwards.
- Missed run: unpublish the workflow and wait past the expected time plus grace. You should get a Missed run email, and a recovery email after the next check-in.
Troubleshooting
Stallbell returns 404 not found. The token in the URL is wrong, or it was rotated. Copy the URL again from the monitor page.
Stallbell returns 400 with invalid_input. Usually run_id was sent as a number. Wrap it in String() as shown above. A 400 with invalid_json means the body isn't a JSON object: check that the JSON field is in expression mode and returns JSON.stringify(...) of an object.
The check-in arrives, but without run_id or msg. Specify Body is still on "Using Fields Below". Set it to Using JSON.
Stallbell returns 413. The request body was over 16 KB. Trim output with .slice(0, 2000).
Stallbell returns 429. Too many check-ins for this monitor in one minute (120 a minute on paid plans and on every account during the beta; 20 a minute on Free once billing opens). This usually means the HTTP Request node ran once per item. Turn on Execute Once in the node's Settings tab. Stallbell still counts rejected check-ins, so a burst like this can also open a runaway-loop warning.
I got a stuck-run alert, but the workflow is fine. The run took longer than the monitor's Stuck after time (1 hour by default). Raise it in the monitor settings.
The error workflow never runs. Check three things. It's selected under Settings > Error Workflow in the workflow you're watching. You're testing with a real scheduled run, not a manual one. And the failing node isn't set to On Error: Continue, which lets the execution carry on instead of failing. The n8n error workflow not triggering guide goes through each cause. An error inside the error workflow itself isn't reported anywhere, which is one more reason to keep the heartbeat: if both fail, the missed-run alert still reaches you.
I get a missed-run alert at the same time every day, but the workflow ran. Compare the monitor's schedule with the Schedule Trigger, including the timezone. n8n uses the workflow's Timezone setting, or the instance timezone if the workflow has none (America/New_York by default on self-hosted n8n), and Stallbell reads a cron expression in the monitor's Schedule timezone (your account timezone, UTC, or a named zone). Set it to the workflow's timezone. For a cron-schedule monitor, the monitor page lists the next three expected runs in that zone, so you can compare them.
FAQ
Do I need both the heartbeat and the error workflow? They catch different things. The error workflow only fires when n8n records a failed execution. The heartbeat catches runs that never happened, and runs that hang. If you only add one, add the heartbeat: a missing finish ping also covers failures, just later.
Can I use GET instead of POST? Yes. Stallbell accepts GET, POST and HEAD on the ping URL, so a bare GET to https://stallbell.com/p/TOKEN counts as a successful run. You need POST with a JSON body to send run_id, msg or output.
Does Stallbell slow my workflow down or sit between n8n and my APIs? No. Stallbell isn't a proxy. Your workflow sends a small request to Stallbell at the start and the end, and nothing else passes through it. With On Error: Continue set, an outage on our side can't fail your workflow. You'd see missed-run alerts instead.
What does Stallbell store? The check-in event and time, run_id, msg (up to 500 characters) and, if you send it, the first 2 KB of output. Keep personal data out of msg and output if you don't want it stored. You can see what a run sent by clicking it under Recent runs: the Run drawer shows its message and the first 500 characters of its output.
Is there a ready-made template? Yes. The n8n section of the docs has two workflows to import: a finish ping and an error workflow. They send the workflow name only. The steps above add the start ping and run_id, which you need for stuck-run alerts and for joining a failure to its run.
What does it cost? There's a Free plan with no card, and it gets every check. While Stallbell is in beta, billing is off and every account gets Pro limits with every-minute checks. Plans and limits are on the pricing page.
Start watching your first workflow
Pick the n8n workflow you'd least like to find broken on a Monday morning and give it a start ping, a finish ping and an error workflow. It's three small nodes. After that, if the workflow stops, fails or hangs, Stallbell tells you, so you don't hear about it first from a client.
Related: n8n workflow stopped running · n8n error workflow not triggering · Alert on empty LLM output · What is heartbeat monitoring?
A ready-made setup for an n8n AI agent: n8n AI agent returns an empty answer
Sources
n8n behaviour on this page comes from n8n's own docs, read on 9 November 2026:
- Handle errors gracefully (error workflows, the data the Error Trigger receives, Stop and Error)
- Error Trigger (no publishing needed, no manual testing)
- Work with nodes: node settings (Always Output Data, Execute Once, Retry On Fail, On Error)
- HTTP Request (Send Body and Specify Body)
- Configure workflow settings (Error Workflow and Timezone)
- Schedule Trigger (publishing and timezones)
- execution variables (
$execution.id)
Stallbell's side comes from the docs.