CSV to JSON Converter with Error Handling and Slack Notifications — n8n Workflow

Medium complexity🔗 Webhook13 nodes💎 Other👁 2,765 viewsby n8n Team

Overview

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 format via a webhook endpoint, with error handling and notifications. This is particularly useful when you need to transform CSV data into JSON as part of a larger automation or integration process.

How this workflow works

Receives POST req

Nodes used

Sticky NoteExtract From FileSuccess Response2Change FieldSwitchSend to Error ChannelConvert Raw Text To CSVCheck if ValueSend Raw CSVPOSTAggregate1

Workflow Preview

Testing
Testing can be done with CURL or similar.
For File posting using Form Data
curl -X POST "https://yoururl.com/webhook-test/tool/csv
-H "Content-Type: text/csv" \
--da
Response
Where possible we will be returning a binary object.
```
If there is an error
```
{
Sample of Raw CSV Data Send
Use the HTTP request node below to see how to send the
E
Extract From File
E
Error Response
S
Success Response
C
Change Field
S
Switch
S
Send to Error Channel
C
Convert Raw Text To CSV
C
Check if Value
S
Send Raw CSV
P
POST
A
Aggregate
A
Aggregate1
S
Success Response2
13 nodes18 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 13 nodes, connecting aggregate, code, extractfromfile.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (13)

ST

Sticky Note

stickyNote

#1
EX

Extract From File

extractFromFile

#2
SU

Success Response2

respondToWebhook

#3
CH

Change Field

set

#4
SW

Switch

switch

#5
SE

Send to Error Channel

slack

#6
CO

Convert Raw Text To CSV

code

#7
CH

Check if Value

if

#8
SE

Send Raw CSV

httpRequest

#9
PO

POST

webhook

#10
AG

Aggregate1

aggregate

#11

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded csv-to-json-converter-with-error-handling-and-slack-notifications file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "CSV to JSON Converter with Error Handling and Slack Notifications", "nodes": [...], ...}

Integrations

aggregatecodeextractfromfilehttprequestifrespondtowebhooksetslackswitchwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes13
Complexitymedium
Triggerwebhook
Views2,765
CategoryOther

Created by

n8n Team

n8n Team

@n8n-team

Tags

aggregatecodeextractfromfilehttprequestifrespondtowebhooksetslackswitchwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →