Google表格到CSV
初级
这是一个File Management, Multimodal AI领域的自动化工作流,包含 5 个节点。主要使用 Slack, Function, GoogleSheets, SlackTrigger, SpreadsheetFile 等节点。 通过Slack消息自动将Google表格转换为CSV
前置要求
- •Slack Bot Token 或 Webhook URL
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "ew7HeWnZvNhCglFr",
"meta": {
"instanceId": "aed99ab7f3ef2fea923e1a45328dd772df5d92f365b784dbfc8daab7ad485413",
"templateCredsSetupCompleted": true
},
"name": "Google Sheets 到 CSV",
"tags": [],
"nodes": [
{
"id": "6267431f-93f5-447c-8a9c-aa315bcd1d90",
"name": "Slack 触发器",
"type": "n8n-nodes-base.slackTrigger",
"position": [
0,
0
],
"webhookId": "f7efbda6-dbab-4a0a-aff1-d0e162ff8824",
"parameters": {
"options": {},
"trigger": [
"any_event",
"app_mention"
],
"channelId": {
"__rl": true,
"mode": "list",
"value": "C099B0PKEF2",
"cachedResultName": "googlesheet-to-csv"
}
},
"credentials": {
"slackApi": {
"id": "GX0V2cTfAdqyPf4D",
"name": "Slack account 4"
}
},
"typeVersion": 1
},
{
"id": "a31b6810-779d-4182-a159-7482e2e6c28c",
"name": "提取 Sheet ID",
"type": "n8n-nodes-base.function",
"position": [
208,
0
],
"parameters": {
"functionCode": "const regex = /https:\\/\\/docs\\.google\\.com\\/spreadsheets\\/d\\/([a-zA-Z0-9-_]+)/;\nconst match = regex.exec($json.text);\nif (match) {\n return [{\n sheetId: match[1],\n channel: $json.channel\n }];\n}\nreturn [];"
},
"typeVersion": 1
},
{
"id": "44faf26c-07cf-4620-9631-291fb7f20dcf",
"name": "读取 Google 表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
400,
0
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 253150622,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/17nQYzOoH2SfxNlNvYs8fJ9RJzGr_UCtEtfBTINxDteI/edit#gid=253150622",
"cachedResultName": "Sheet4"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.sheetId }}"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "EQKNLxahxnebnTEv",
"name": "Google Sheets account"
}
},
"typeVersion": 4
},
{
"id": "5599139b-0950-4e50-83f7-0b08a22bbf6b",
"name": "转换为 CSV",
"type": "n8n-nodes-base.spreadsheetFile",
"position": [
608,
0
],
"parameters": {
"options": {},
"operation": "toFile",
"fileFormat": "csv"
},
"typeVersion": 1
},
{
"id": "901abfb2-2893-4bf5-9d1d-9414c4cb68ef",
"name": "上传到 Slack",
"type": "n8n-nodes-base.slack",
"position": [
800,
0
],
"parameters": {
"options": {
"fileName": "Converted CSV",
"channelIds": [
"C099B0PKEF2"
]
},
"resource": "file",
"binaryData": true,
"authentication": "oAuth2"
},
"credentials": {
"slackOAuth2Api": {
"id": "HF9WCfi7VKsh433D",
"name": "Slack account 3"
}
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "b9c9ac20-c803-401d-a451-cd28e0254070",
"connections": {
"Slack Trigger": {
"main": [
[
{
"node": "Extract Sheet ID",
"type": "main",
"index": 0
}
]
]
},
"Convert to CSV": {
"main": [
[
{
"node": "Upload to Slack",
"type": "main",
"index": 0
}
]
]
},
"Extract Sheet ID": {
"main": [
[
{
"node": "Read Google Sheet",
"type": "main",
"index": 0
}
]
]
},
"Read Google Sheet": {
"main": [
[
{
"node": "Convert to CSV",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
初级 - 文件管理, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
博客 h
使用Perplexity和Google Trends自动创建SEO优化的WordPress博客
Set
Gmail
Limit
+23
49 节点Paul
内容创作
从Gmail和Slack自动创建Zendesk工单并进行跟踪
从Gmail和Slack创建Zendesk工单,并使用Google Sheets进行跟踪
If
Code
Merge
+6
22 节点Rahul Joshi
内容创作
客户入职帮助请求(Typeform 到 Gmail 和 Sheets)
客户入职帮助请求(Typeform 到 Gmail 和 Sheets)
If
Code
Gmail
+10
28 节点Rahul Joshi
内容创作
使用GPT-4o OCR从Slack提取名片数据到Google Sheets
使用GPT-4o OCR从Slack提取名片数据到Google Sheets
Slack
Split Out
Http Request
+6
10 节点Toshiki Hirao
杂项
使用GPT-4o从Slack PDF提取发票数据到Google Sheets
使用GPT-4o从Slack PDF提取发票数据到Google Sheets
Slack
Http Request
Google Sheets
+6
10 节点Toshiki Hirao
杂项
从PDF提取并整理合同详情至Slack、GPT-4o和Google Sheets
从PDF提取并整理合同详情至Slack、GPT-4o和Google Sheets
Slack
Switch
Http Request
+7
19 节点Toshiki Hirao
文档提取