将 n8n 表单数据流式传输到 Google Sheet 和 Airtable
中级
这是一个Engineering, DevOps, Product领域的自动化工作流,包含 10 个节点。主要使用 Set, Code, Gmail, Airtable, FormTrigger 等节点。 将n8n表单数据流式传输到Google Sheet、Airtable并发送邮件
前置要求
- •Google 账号和 Gmail API 凭证
- •Airtable API Key
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "g25bM3Hj71T3ZVVe",
"meta": {
"instanceId": "21754f977ce20b07e6fe64be3fbc663f6e6f730423d6e46c6cd2bf5b5e70a383"
},
"name": "将 n8n 表单数据流式传输到 Google Sheet 和 Airtable",
"tags": [],
"nodes": [
{
"id": "32bd3bcb-7de7-4ca3-ba31-897e90f663b1",
"name": "n8n Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
720,
-400
],
"webhookId": "c07c8eb6-cf56-4941-91cc-e3cb31c90b5c",
"parameters": {
"path": "c07c8eb6-cf56-4941-91cc-e3cb31c90b5c",
"options": {},
"formTitle": "Data Colleacation",
"formFields": {
"values": [
{
"fieldLabel": "What's your name ?",
"requiredField": true
},
{
"fieldLabel": "Where do you live ?",
"requiredField": true
},
{
"fieldLabel": "Your Email ?",
"requiredField": true
}
]
}
},
"typeVersion": 2
},
{
"id": "bf341165-2698-4f42-a92d-bc5e9a750bf1",
"name": "从 'submittedAt' 字段提取日期和时间字段",
"type": "n8n-nodes-base.code",
"position": [
920,
-400
],
"parameters": {
"jsCode": "// Loop over input items and separate date and time into two new fields\nfor (const item of $input.all()) {\n // Extract date and time from 'submittedAt' field\n const submittedAt = new Date(item.json['submittedAt']);\n const date = submittedAt.toISOString().split('T')[0]; // Get date part\n const time = submittedAt.toISOString().split('T')[1].split('.')[0]; // Get time part\n\n // Remove the old 'submittedAt' field\n delete item.json['submittedAt'];\n\n // Add new 'Date' and 'Time' fields with respective values\n item.json['Date'] = date;\n item.json['Time'] = time;\n}\n\nreturn $input.all();\n"
},
"typeVersion": 2
},
{
"id": "c9955ba1-0aa4-476b-b2ac-8a458b1547b3",
"name": "格式化字段",
"type": "n8n-nodes-base.set",
"position": [
1100,
-400
],
"parameters": {
"fields": {
"values": [
{
"name": "Name",
"stringValue": "={{ $json['What\\'s your name ?'] }}"
},
{
"name": "City",
"stringValue": "={{ $json['Where do you live ?'] }}"
},
{
"name": "Date",
"stringValue": "={{ $json.Date }}"
},
{
"name": "Time",
"stringValue": "={{ $json.Time }}"
},
{
"name": "Email",
"stringValue": "={{ $json['Your Email ?'] }}"
}
]
},
"include": "selected",
"options": {}
},
"typeVersion": 3.2
},
{
"id": "50e6057e-4b26-40f6-adc1-1721818f7a46",
"name": "Airtable",
"type": "n8n-nodes-base.airtable",
"position": [
1320,
-260
],
"parameters": {
"base": {
"__rl": true,
"mode": "id",
"value": "appIIeJ18fnPkNyNS"
},
"table": {
"__rl": true,
"mode": "id",
"value": "tblZvKuOMmtHnv5TH"
},
"columns": {
"value": {
"City": "={{ $json.City }}",
"Date": "={{ $json.Date }}",
"Name": "={{ $json.Name }}",
"Time": "={{ $json.Time }}",
"Email": "={{ $json.Email }}"
},
"schema": [
{
"id": "Name",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "City",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "City",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Email",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Email",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Date",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Date",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Time",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Time",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": []
},
"options": {},
"operation": "create"
},
"credentials": {
"airtableTokenApi": {
"id": "maZEeRzOyC8Q06Zf",
"name": "Airtable Personal Access Token account"
}
},
"typeVersion": 2
},
{
"id": "4f561bd8-a5dd-4ff2-9d3e-cdac6f762bd4",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
-680
],
"parameters": {
"color": 5,
"width": 2256.3366317584496,
"height": 851.9587677224575,
"content": "### 工作流描述:"
},
"typeVersion": 1
},
{
"id": "a0d53cb5-27c8-4dfb-a1ea-e2403bde1fc4",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
1320,
-540
],
"parameters": {
"columns": {
"value": {
"City": "={{ $json.City }}",
"Date": "={{ $json.Date }}",
"Name": "={{ $json.Name }}",
"Time": "={{ $json.Time }}",
"Email": "={{ $json.Email }}"
},
"schema": [
{
"id": "Name",
"type": "string",
"display": true,
"required": false,
"displayName": "Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "City",
"type": "string",
"display": true,
"required": false,
"displayName": "City",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Email",
"type": "string",
"display": true,
"required": false,
"displayName": "Email",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Date",
"type": "string",
"display": true,
"required": false,
"displayName": "Date",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Time",
"type": "string",
"display": true,
"required": false,
"displayName": "Time",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": []
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Ss6AEwaXpAl54YQAQDf1z6SRyh6pj719-A9eOzf2Dv4/edit#gid=0",
"cachedResultName": "Page"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1Ss6AEwaXpAl54YQAQDf1z6SRyh6pj719-A9eOzf2Dv4",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Ss6AEwaXpAl54YQAQDf1z6SRyh6pj719-A9eOzf2Dv4/edit?usp=drivesdk",
"cachedResultName": "Streamline data from an n8n form into Google Sheet and Airtable"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "L5CnisK8R3BgVGcO",
"name": "Omar sheet"
}
},
"typeVersion": 4.2
},
{
"id": "de697574-f547-4374-86d9-c6d9f709c404",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
1560,
-260
],
"parameters": {
"sendTo": "={{ $json.fields.Email }}",
"message": "=Dear {{ $json.fields.Name }} ..\n\nHey there! Just testing to see if this message goes through. Let me know if you receive it. \n\nThanks! \nSupport Team",
"options": {},
"subject": "Testing Text Message Delivery",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "UJx4Tiq8WRtxWEIP",
"name": "Gmail Omar"
}
},
"typeVersion": 2.1
},
{
"id": "66677b7e-d053-4050-a65c-9c9f8f689646",
"name": "Gmail1",
"type": "n8n-nodes-base.gmail",
"position": [
1560,
-540
],
"parameters": {
"sendTo": "={{ $json.Email }}",
"message": "=Dear {{ $json.Name }} ..\n\nHey there! Just testing to see if this message goes through. Let me know if you receive it. \n\nThanks! \nSupport Team ",
"options": {},
"subject": "=Testing Text Message Delivery , ( {{ $json.Date }} ) ",
"emailType": "text"
},
"credentials": {
"gmailOAuth2": {
"id": "UJx4Tiq8WRtxWEIP",
"name": "Gmail Omar"
}
},
"typeVersion": 2.1
},
{
"id": "e440b4cb-6910-4bc7-b3df-7c14dd9c43a9",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1820,
-640
],
"parameters": {
"width": 510.8381838182147,
"height": 206.48715095387286,
"content": "### 节点文档链接:"
},
"typeVersion": 1
},
{
"id": "541ecd4c-22bc-4bc9-8364-ca73b4650092",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
680,
-640
],
"parameters": {
"width": 1105.0652438372836,
"height": 630.9350509674927,
"content": "确保您的表名与实际知识库结构匹配"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "de903de6-c793-4a64-9d3c-0ade08d6994e",
"connections": {
"Airtable": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets": {
"main": [
[
{
"node": "Gmail1",
"type": "main",
"index": 0
}
]
]
},
"n8n Form Trigger": {
"main": [
[
{
"node": "Extracting Date and Time Fields from 'submittedAt' Field",
"type": "main",
"index": 0
}
]
]
},
"Format the Fields": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
},
{
"node": "Airtable",
"type": "main",
"index": 0
}
]
]
},
"Extracting Date and Time Fields from 'submittedAt' Field": {
"main": [
[
{
"node": "Format the Fields",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 工程, 开发运维, 产品
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
实时Notion Todoist双向同步模板
使用Redis的Notion Todoist实时双向同步
If
Set
Code
+26
246 节点Mario
销售
使用 OpenAI、Google Sheets、Jina AI 和 Slack 的 AI 驱动信息监控
基于AI的信息监控,集成OpenAI、Google Sheets、Jina AI和Slack
If
Set
Code
+10
31 节点Dataki
销售
API架构提取器
API架构提取器
If
Set
Code
+22
88 节点Polina Medvedieva
工程
AIAutomationPro 高级错误处理与邮件通知 v1
集中式n8n错误管理系统,通过Gmail自动发送邮件警报
If
N8n
Set
+6
16 节点Daniel Ng
工程
从 Notion 内容创建 Linear 工单
从 Notion 内容创建 Linear 工单
If
Set
Code
+11
24 节点David Roberts
工程
发送并检查TTS语音通话及邮件验证
使用ClickSend和SMTP的多因素认证(语音通话和邮件)
If
Set
Code
+5
19 节点Davide
工程
工作流信息
难度等级
中级
节点数量10
分类3
节点类型7
作者
AlQaisi
@omarI'm specialize in automation and AI, developing innovative solutions to enhance efficiency and drive innovation. With expertise in advanced technologies, I create predictive models for optimal resource allocation. Collaborating with teams, I implement customized automation solutions. Passionate about shaping the future of intelligent automation through digital transformation.
外部链接
在 n8n.io 查看 →
分享此工作流