8
n8n 中文网amn8n.com

Snowflake数据加载

初级

这是一个Engineering领域的自动化工作流,包含 5 个节点。主要使用 Set, Snowflake, HttpRequest, ManualTrigger, SpreadsheetFile 等节点。 将CSV数据加载到Snowflake

前置要求
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "19",
  "meta": {
    "instanceId": "590b8a6424ded2dccf0f04ef13db2f02f968ec0b6d208436c385cdb410341348"
  },
  "name": "Snowflake CSV",
  "tags": [],
  "nodes": [
    {
      "id": "da710a80-484b-4fe3-80fa-e699bb6499ad",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        440,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f419ebfb-9eae-4fea-b05b-aabc97b5f47f",
      "name": "HTTP请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        380
      ],
      "parameters": {
        "url": "https://n8niostorageaccount.blob.core.windows.net/n8nio-strapi-blobs-prod/assets/example_c0b48ce677.csv?updated_at=2023-05-30T10:36:21.820Z",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "fe45e2a2-b50f-4459-a8ee-78615239dee0",
      "name": "电子表格文件",
      "type": "n8n-nodes-base.spreadsheetFile",
      "position": [
        820,
        380
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "54e31892-c8e1-423c-a24a-8e5eb1312b0a",
      "name": "设置",
      "type": "n8n-nodes-base.set",
      "position": [
        1000,
        380
      ],
      "parameters": {
        "values": {
          "number": [
            {
              "name": "first_name",
              "value": "={{ $json.first_name }}"
            },
            {
              "name": "id",
              "value": "={{ $json.id }}"
            }
          ],
          "string": [
            {
              "name": "last_name",
              "value": "={{ $json.last_name }}"
            }
          ]
        },
        "options": {
          "dotNotation": false
        },
        "keepOnlySet": true
      },
      "typeVersion": 2
    },
    {
      "id": "c482d8e8-0792-4b61-a2e0-d437c9fe9062",
      "name": "Snowflake",
      "type": "n8n-nodes-base.snowflake",
      "position": [
        1200,
        380
      ],
      "parameters": {
        "table": "users",
        "columns": "id,first_name,last_name"
      },
      "credentials": {
        "snowflake": {
          "id": "23",
          "name": "Snowflake account"
        }
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {},
  "versionId": "a6348461-b174-4608-961f-d9d86730b573",
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "Snowflake",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Spreadsheet File": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

初级 - 工程

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
初级
节点数量5
分类1
节点类型5
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
n8n Team

n8n Team

@n8n-team

Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.

外部链接
在 n8n.io 查看

分享此工作流