Quick overview
This error workflow captures failures from other n8n workflows, redacts sensitive data, reports the incident to Orvanta via HTTP, and notifies a Slack channel when Orvanta is unreachable, an auth issue starts, or Orvanta signals the failing workflow should be paused.
How it works
- Triggers whenever a selected n8n workflow execution fails.
- Extracts key failure details (workflow name/ID, failed step, HTTP code, execution URL) and redacts emails and common secret/token patterns from the error message.
- Sends the failure event to Orvanta (orvantahq.io) over HTTP with retry enabled so Orvanta can group repeated failures and determine next actions.
- If Orvanta responds that the workflow should be paused, deactivates the failing workflow in n8n and posts a “switched off” alert to Slack with the pause reason and execution link.
- If Orvanta indicates a new authentication-related incident, posts a one-time “reconnect” alert to Slack with the error details and execution link.
- If Orvanta cannot be reached, posts the failure details to Slack so the team is alerted even without Orvanta logging.
Setup
- Create an Orvanta workspace Zapier key (Connections → Zapier → Create my Zapier key) and add it as an HTTP Header Auth credential for the Orvanta request (Authorization: Bearer ozk_…).
- Add Slack credentials and set the target channel (for example #alerts) in each Slack message step.
- Add n8n API credentials (Settings → n8n API) so the workflow can deactivate failing workflows, or remove the deactivation step if your plan does not support the n8n API.
- Activate this workflow and select it under Settings → Error workflow in each n8n workflow you want to monitor.
Requirements
- An Orvanta account (orvantahq.io) and its workspace key
- A Slack workspace with an alerts channel
- Optional: n8n API access, for the automatic switch-off
Customization
- Swap the Slack nodes for Microsoft Teams, Telegram, Discord or email
- Change when a workflow is switched off: remove the X-Agent-Sensitivity header to only get alerts, or change the setting per workflow in Orvanta
- Add your own patterns to the redaction step, for example customer IDs or phone numbers
Additional info
Built after a detailed review by an n8n community member. Tested end to end on n8n 2.44: expired credentials, 403 rate limits, three failures in a row, and Orvanta being unreachable.