Csv to JSON converter with error handling and Slack notifications
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Switch: routes items into 3 branches
- Extract from File: extracts data from a file
- Change Field (Edit Fields (Set)): sets 1 field: csv
- Error Response (Respond to Webhook): sends the response back to the webhook caller
- Aggregate: combines items into one
- Convert Raw Text To CSV (Code): runs custom JavaScript code
- Send to Error Channel (Slack): uses Slack
- Success Response (Respond to Webhook): sends the response back to the webhook caller
- Check if Value (If): checks a condition and branches into true / false
- Aggregate: combines items into one
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Extract from File
n8n-nodes-base.extractFromFile - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Webhook
n8n-nodes-base.webhook - Aggregate
n8n-nodes-base.aggregate
From the author
Who this template is for This template is for developers or teams who need to convert CSV data into JSON format through an API endpoint, with support for both file uploads and raw CSV text input. Use case Converting CSV files or raw CSV text data into JSON…