🫶 出租车预订支持

中级

这是一个Support、AI领域的自动化工作流,包含 15 个节点。主要使用 If、Set、Switch、Postgres、GoogleCalendar 等节点,结合人工智能技术实现智能自动化。 AI聊天机器人呼叫中心:出租车预订支持(生产就绪,第7部分)

前置要求
  • PostgreSQL 数据库连接信息

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "IneqsTtizvyTbzuW",
  "meta": {
    "instanceId": "daae7bb90c8655b08e0b68de8a52b1178f2812f6a234efb0b0509279dbb70b3e",
    "templateCredsSetupCompleted": true
  },
  "name": "🫶 出租车预订支持",
  "tags": [
    {
      "id": "no8Mb078mvRgw7PS",
      "name": "DEMO",
      "createdAt": "2025-04-30T05:34:10.330Z",
      "updatedAt": "2025-04-30T05:34:10.330Z"
    },
    {
      "id": "ARpmcvwbJW5SeJBu",
      "name": "Support",
      "createdAt": "2025-05-05T10:21:06.618Z",
      "updatedAt": "2025-05-05T10:21:06.618Z"
    },
    {
      "id": "M2uPwGVjWmavBPky",
      "name": "2.0",
      "createdAt": "2025-05-01T16:38:48.524Z",
      "updatedAt": "2025-05-01T16:38:48.524Z"
    }
  ],
  "nodes": [
    {
      "id": "0663639c-ff0b-40ff-abb5-c0cfad5cec9b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        740,
        -260
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "ad6e6c34-f39c-4668-8a63-0a02c18776d3",
      "name": "xAI @grok-2-1212",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        720,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "684e9b26-d904-4eef-911e-1f26fd95f123",
      "name": "状态切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        1140,
        -260
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "5e376525-9eb2-4a66-aca2-d4f046671eeb",
      "name": "设置取消预订",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1640,
        -400
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.6
    },
    {
      "id": "88930c90-5e56-484a-9965-1fc0619b20a0",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "Every 5m",
      "position": [
        0,
        -260
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "6e146613-6f30-4d2b-b9d8-5e73ce3d69a1",
      "name": "预订",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        -260
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "8a81ec5d-c71a-4206-8b9e-2f32704234f7",
      "name": "回拨",
      "type": "n8n-nodes-base.executeWorkflow",
      "notes": "Demo Call Back",
      "position": [
        1640,
        -220
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "2f25bf32-0139-4f75-a5da-cfe3f9adbbc1",
      "name": "开放保留预订",
      "type": "n8n-nodes-base.postgres",
      "notes": "> 5m",
      "position": [
        260,
        -260
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.6
    },
    {
      "id": "78253c02-a270-47fe-a3b1-222bf1a13a06",
      "name": "如果保留过期",
      "type": "n8n-nodes-base.if",
      "notes": "TTL 5m",
      "position": [
        1420,
        140
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "032b64d2-1ea4-45fb-9f01-9dc58b4b5841",
      "name": "如果开放过期",
      "type": "n8n-nodes-base.if",
      "notes": "TTL 10m",
      "position": [
        1420,
        -340
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "051f6eba-62e4-433a-8521-6a85718ce9f0",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "33c29ee9-f1fa-4d22-b6c1-9eb4ed3e1f40",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4c5e982c-a667-4d66-814d-88d2ef9d59d9",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "849fc8d3-b6b8-4846-8a59-c25904bdcdf7",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "847a61c6-5ee0-4ded-9cdc-1e09e7dcea4e",
      "name": "删除事件",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1880,
        -400
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1.3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "Etc/UTC",
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": "vuso7W8t402BPcT2",
    "executionOrder": "v1",
    "executionTimeout": -1
  },
  "versionId": "3b4b9971-0c49-4ac9-9b5e-ce978c406adf",
  "connections": {
    "Booking": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Status Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status Switch": {
      "main": [
        [
          {
            "node": "If Open Expired",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Hold Expired",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Hold Expired": {
      "main": [
        []
      ]
    },
    "If Open Expired": {
      "main": [
        [
          {
            "node": "Set Cancel Booking",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Call Back",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Open Hold Booking",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "xAI @grok-2-1212": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Open Hold Booking": {
      "main": [
        [
          {
            "node": "Booking",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Cancel Booking": {
      "main": [
        [
          {
            "node": "Delete Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于Support、AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

工作流信息
难度等级
中级
节点数量15
分类2
节点类型10
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
ChatPayLabs

ChatPayLabs

@chatpaylabs

Production Ready AI n8n Workflow Templates Startup Fundraising 💰 Support Us 🦄

外部链接
在 n8n.io 上查看 →

分享此工作流