Free n8n Error Workflow (Dead Letter Queue): log every failed execution to Google Sheets + Slack/Telegram alert

I kept seeing my lead-scoring workflow mark companies as “not a fit” when the real problem was an API timeout. The main workflow retries each API call 3 times with backoff, but when something still fails I wanted it logged somewhere I’d actually see it, not buried in the executions list.

So I built a small Error Workflow that acts as a Dead Letter Queue:

  • Error Trigger catches any failure from the workflow it’s attached to
    • Code node formats the incident: workflow name, execution ID, failed node, error message, execution link
    • Google Sheets appends it to a DeadLetterQueue tab
    • HTTP Request sends a Slack/Telegram alert with a link straight to the failed execution
    • Both output nodes use continue on error, so a broken alert channel doesn’t hide the log
      Setup: import it, paste your Sheet ID and webhook URL (placeholders are marked PASTE_YOUR_...), then in your main workflow go to Settings > Error Workflow and select this one.

Free to use:

It’s part of a bigger lead-scoring workflow I built (domain list → website enrichment → OpenAI ICP score → personalized opener). Happy to answer questions, and curious how you all handle failed executions: error workflows, retries on the node, or something else?

1 Like

This is interesting. We had a similar setup at one point, and what changed things for us was when the sheet started growing faster than anyone was actually looking at it, so we ended up giving each failure its own status — detected, reviewed, resolved…
So we could tell at a glance what was still sitting there.