👷♂️ 出租车预订工作器
高级
这是一个自动化工作流,包含 33 个节点。主要使用 If、Set、Redis、Switch、Postgres 等节点。 AI聊天机器人呼叫中心:出租车预订工作流(生产就绪,第5部分)
前置要求
- •Redis 服务器连接信息
- •PostgreSQL 数据库连接信息
使用的节点 (33 个)
分类
未分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "7n61yKndJuHO5l2k",
"meta": {
"instanceId": "daae7bb90c8655b08e0b68de8a52b1178f2812f6a234efb0b0509279dbb70b3e",
"templateCredsSetupCompleted": true
},
"name": "👷♂️ 出租车预订工作器",
"tags": [
{
"id": "fJnbLru0gOXGli2H",
"name": "Agent",
"createdAt": "2025-04-29T08:11:03.850Z",
"updatedAt": "2025-04-29T08:11:03.850Z"
},
{
"id": "no8Mb078mvRgw7PS",
"name": "DEMO",
"createdAt": "2025-04-30T05:34:10.330Z",
"updatedAt": "2025-04-30T05:34:10.330Z"
}
],
"nodes": [
{
"id": "9144f720-4cca-49f0-b658-8027d15cc109",
"name": "流程触发器",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-1260,
460
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1b8a96ec-cc09-4885-b69a-61a2190beda9",
"name": "输入",
"type": "n8n-nodes-base.set",
"position": [
-1040,
460
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "0c50f860-421f-4d32-9089-bd2b718fa73e",
"name": "测试触发器",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-1260,
660
],
"webhookId": "43be72d3-74d8-4e20-874d-ecb60cf54774",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "6bb4d7ba-3328-4372-9e39-05c45e558044",
"name": "测试字段",
"type": "n8n-nodes-base.set",
"position": [
-1040,
660
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "390caf9e-f5fa-4d51-9f15-522d6d5d45a4",
"name": "重置会话",
"type": "n8n-nodes-base.redis",
"notes": "TTL 5m",
"onError": "continueRegularOutput",
"position": [
360,
420
],
"parameters": {},
"executeOnce": false,
"notesInFlow": true,
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "71697b96-b3f7-4b05-bfad-927187c5dc17",
"name": "错误输出",
"type": "n8n-nodes-base.set",
"notes": "Booking not found. Please retry.",
"position": [
-480,
1520
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "c6d4e48a-12a9-42be-b7e4-01439c9254a1",
"name": "设置开放预订",
"type": "n8n-nodes-base.postgres",
"position": [
160,
420
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "3a2c6c89-8d53-45db-aa2d-2f70cb580bab",
"name": "保存用户记忆",
"type": "n8n-nodes-base.postgres",
"onError": "continueRegularOutput",
"position": [
160,
120
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "ab45dbcd-a74f-47cc-ab25-0c2ac6a50e00",
"name": "删除路线数据",
"type": "n8n-nodes-base.redis",
"notes": "{session_id}:{channel_no}:route",
"onError": "continueRegularOutput",
"position": [
840,
120
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "f275eb96-d0bd-4b82-9cfc-78045e5aa3fa",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1560,
380
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3bf589c1-7a1d-4504-bec7-df70f4f3668a",
"name": "### 需要帮助?",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "93c823d5-1ad2-4743-9ed1-d0bb6278866b",
"name": "删除供应商号码",
"type": "n8n-nodes-base.redis",
"position": [
620,
120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b994d4c4-10d9-43ef-9694-5b32057e896a",
"name": "如果预订",
"type": "n8n-nodes-base.if",
"position": [
-60,
440
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "b1cccdfa-a979-46aa-9050-5c65ccfac616",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "83d2cf67-d1d4-48eb-9c1b-f3f1bf970fde",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d918ae55-79fd-4b54-b17c-7727ee1822ff",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-140,
340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0a2ad84b-0ba5-4908-9507-ce5fbfedcdcf",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
1440
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "28956579-be67-4e85-b3c1-89baecc3cf63",
"name": "如果不为零",
"type": "n8n-nodes-base.if",
"position": [
-760,
460
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "a086bbc0-518f-4092-9593-99f265d9eea0",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-140,
1020
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b67e9916-c152-4fba-8483-cdf6fd91aad1",
"name": "取消输出",
"type": "n8n-nodes-base.set",
"notes": "Cancelled",
"position": [
600,
1160
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "d82f253f-49ae-4be6-aa7b-1879b4cfc3ba",
"name": "重置会话2",
"type": "n8n-nodes-base.redis",
"notes": "TTL 5m",
"onError": "continueRegularOutput",
"position": [
360,
1160
],
"parameters": {},
"executeOnce": false,
"notesInFlow": true,
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "12e2c452-e855-4327-b265-f3a0146e515e",
"name": "切换",
"type": "n8n-nodes-base.switch",
"position": [
1060,
580
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "3bfcd450-1b62-4066-bb47-59d75c6482b1",
"name": "英语",
"type": "n8n-nodes-base.set",
"notes": "Reservation is completed.",
"position": [
1360,
820
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "8947e45e-00e0-4754-a18e-2636b2d03f99",
"name": "中文",
"type": "n8n-nodes-base.set",
"notes": "預約完成。",
"position": [
1360,
440
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "dedb94f8-af0c-4c6a-abcc-d635c5749c3e",
"name": "日语",
"type": "n8n-nodes-base.set",
"notes": "予約が完了いたしました。",
"position": [
1360,
640
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "f35dca5c-af89-4cc1-be3e-52c4a61c7d3a",
"name": "预订",
"type": "n8n-nodes-base.postgres",
"notes": "status NEW",
"onError": "continueRegularOutput",
"position": [
-280,
440
],
"parameters": {},
"executeOnce": true,
"notesInFlow": true,
"typeVersion": 2.6,
"alwaysOutputData": true
},
{
"id": "31ce8514-6b02-4fee-9338-4fcd9d55b613",
"name": "等待回电",
"type": "n8n-nodes-base.executeWorkflow",
"notes": "Demo Call Back NO WAIT",
"position": [
-440,
240
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "61749f9c-7caa-4533-a96e-124231f02fcd",
"name": "等待输出",
"type": "n8n-nodes-base.set",
"notes": "Please wait",
"position": [
-600,
240
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "226c4054-a28d-45a6-84f3-b58475b11b58",
"name": "## 试试看!",
"type": "n8n-nodes-base.stickyNote",
"position": [
-700,
140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c826d4df-53ff-4805-bf7d-dfec8250e3d0",
"name": "创建事件",
"type": "n8n-nodes-base.googleCalendar",
"notes": "DEMO",
"position": [
360,
660
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.3
},
{
"id": "97e9082d-9f22-4214-86ea-56f600684eb1",
"name": "回调",
"type": "n8n-nodes-base.executeWorkflow",
"notes": "Demo Call Back",
"position": [
1360,
1520
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "5c85db84-78da-422e-af0c-c51a881d38cc",
"name": "删除聊天记忆",
"type": "n8n-nodes-base.postgres",
"disabled": true,
"position": [
1080,
120
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "64ba4973-a772-411c-b05e-6f0b5c4a285f",
"name": "同步预订到Google日历",
"type": "n8n-nodes-base.postgres",
"position": [
620,
660
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
}
],
"active": false,
"pinData": {},
"settings": {
"timezone": "Etc/UTC",
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "vuso7W8t402BPcT2",
"executionOrder": "v1"
},
"versionId": "02e3e233-dc53-4ee0-9ddb-0fffde421487",
"connections": {
"Input": {
"main": [
[
{
"node": "If Not Zero",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Chinese",
"type": "main",
"index": 0
}
],
[
{
"node": "Chinese",
"type": "main",
"index": 0
}
],
[
{
"node": "Chinese",
"type": "main",
"index": 0
}
],
[
{
"node": "Japanese",
"type": "main",
"index": 0
}
],
[
{
"node": "English",
"type": "main",
"index": 0
}
]
]
},
"Booking": {
"main": [
[
{
"node": "If Booking",
"type": "main",
"index": 0
}
]
]
},
"Chinese": {
"main": [
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"English": {
"main": [
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"Japanese": {
"main": [
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"If Booking": {
"main": [
[
{
"node": "Set Open Booking",
"type": "main",
"index": 0
}
],
[
{
"node": "Error Output",
"type": "main",
"index": 0
}
]
]
},
"If Not Zero": {
"main": [
[
{
"node": "Wait Output",
"type": "main",
"index": 0
},
{
"node": "Booking",
"type": "main",
"index": 0
}
],
[
{
"node": "Reset Session 2",
"type": "main",
"index": 0
}
]
]
},
"Test Fields": {
"main": [
[
{
"node": "Input",
"type": "main",
"index": 0
}
]
]
},
"Wait Output": {
"main": [
[
{
"node": "Wait Call Back",
"type": "main",
"index": 0
}
]
]
},
"Create Event": {
"main": [
[
{
"node": "Sync Booking Google Cal",
"type": "main",
"index": 0
}
]
]
},
"Error Output": {
"main": [
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"Flow Trigger": {
"main": [
[
{
"node": "Input",
"type": "main",
"index": 0
}
]
]
},
"Test Trigger": {
"main": [
[
{
"node": "Test Fields",
"type": "main",
"index": 0
}
]
]
},
"Cancel Output": {
"main": [
[
{
"node": "Call Back",
"type": "main",
"index": 0
}
]
]
},
"Reset Session": {
"main": [
[
{
"node": "Delete Provider Number",
"type": "main",
"index": 0
},
{
"node": "Delete Route Data",
"type": "main",
"index": 0
},
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Reset Session 2": {
"main": [
[
{
"node": "Cancel Output",
"type": "main",
"index": 0
},
{
"node": "Delete Provider Number",
"type": "main",
"index": 0
},
{
"node": "Delete Route Data",
"type": "main",
"index": 0
}
]
]
},
"Set Open Booking": {
"main": [
[
{
"node": "Reset Session",
"type": "main",
"index": 0
},
{
"node": "Save User Memory",
"type": "main",
"index": 0
},
{
"node": "Create Event",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个高级难度的通用自动化工作流。适合高级用户,包含 16+ 个节点的复杂工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
🤖 出租车服务提供商
出租车服务提供商(生产就绪,第4部分)
If
Set
Code
+11
30 节点ChatPayLabs
Support
🛎️ 出租车服务
AI聊天机器人呼叫中心:出租车服务(生产就绪,第3部分)
If
Set
Code
+13
40 节点ChatPayLabs
Support
💬 演示回拨
AI聊天机器人呼叫中心:演示回拨(生产就绪,第6部分)
If
Set
Code
+8
35 节点ChatPayLabs
Support
☎️ 演示呼叫中心
AI聊天机器人呼叫中心:演示呼叫中心(生产就绪,第2部分)
If
Set
Code
+11
38 节点ChatPayLabs
Support
🤙 Telegram 来电接入
AI聊天机器人呼叫中心:Telegram呼入(生产就绪,第1a部分)
If
Set
Code
+10
35 节点ChatPayLabs
🫶 出租车预订支持
AI聊天机器人呼叫中心:出租车预订支持(生产就绪,第7部分)
If
Set
Switch
+7
15 节点ChatPayLabs
Support
工作流信息
难度等级
高级
节点数量33
分类-
节点类型10
作者
ChatPayLabs
@chatpaylabsProduction Ready AI n8n Workflow Templates Startup Fundraising 💰 Support Us 🦄
外部链接
在 n8n.io 上查看 →
分享此工作流