Automated Webhook Data Extraction on Error
detail.loadingPreview
This n8n workflow automatically extracts data from webhook nodes when an error occurs. It fetches execution data to identify webhook payloads, providing valuable insights for debugging and issue resolution.
About This Workflow
This n8n workflow is designed to proactively capture webhook data when an error is triggered within your automation. By leveraging the n8n API, it retrieves the details of the failed execution and then specifically isolates and extracts the payload from any active webhook nodes. This ensures that even in the event of a workflow failure, you retain crucial information sent by external services. The extracted data is then made available for further analysis, logging, or triggering alternative error-handling processes, significantly improving your ability to diagnose and resolve issues efficiently.
Key Features
- Error-Triggered Automation: Initiates data capture specifically when an error occurs in the workflow.
- Webhook Payload Extraction: Isolates and retrieves the JSON payload from identified webhook nodes.
- Execution Data Retrieval: Utilizes the n8n API to gather comprehensive execution details.
- Targeted Data Filtering: Efficiently filters and presents relevant webhook data.
How To Use
- Error Trigger Node: Configure this node to be the starting point of your error-handling branch. Ensure it's connected to subsequent nodes that handle the error scenario.
- Get Execution Data Node: Connect the 'Error Trigger' to this node. In the node's parameters, set 'Resource' to 'execution' and 'Operation' to 'get'. Use
={{ $json.execution.id }}for the 'Execution ID' parameter. Ensure your n8n API credentials are set up. - Extract Webhook Data Node: Connect the 'Get execution data' node to this node. The provided
jsCodewill automatically run. This code identifies webhook nodes, retrieves their data from the execution results, and returns the webhook node names and their payloads. Ensure this node is configured with 'Run Once For Each Item' mode.
Apps Used
Workflow JSON
{
"id": "2adc2b0d-b4fa-4181-b13f-f797efd02594",
"name": "Automated Webhook Data Extraction on Error",
"nodes": 14,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 2adc2b0d-b4fa...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.