CSV to JSON Converter with Error Handling and Slack Notifications — n8n 工作流

复杂度🔗 Webhook13 个节点💎 Other👁 2,765 次查看作者:n8n Team

概览

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

使用的节点

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

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 webhook 触发器启动。

  2. 2

    处理

    数据流经 13 个节点, connecting aggregate, code, extractfromfile。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (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

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 csv-to-json-converter-with-error-handling-and-slack-notifications 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

aggregatecodeextractfromfilehttprequestifrespondtowebhooksetslackswitchwebhook

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点13
复杂度medium
触发器webhook
查看次数2,765
分类Other

创建者

n8n Team

n8n Team

@n8n-team

标签

aggregatecodeextractfromfilehttprequestifrespondtowebhooksetslackswitchwebhook

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →