👷‍♂️ 出租车预订工作器

Avancé

Ceci est uncontenant 33 nœuds.Utilise principalement des nœuds comme If, Set, Redis, Switch, Postgres. AIchatbot呼叫中心:出租车预订flux de travail(生产就绪,第5部分)

Prérequis
  • Informations de connexion au serveur Redis
  • Informations de connexion à la base de données PostgreSQL

Catégorie

-
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "7n61yKndJuHO5l2k",
  "meta": {
    "instanceId": "daae7bb90c8655b08e0b68de8a52b1178f2812f6a234efb0b0509279dbb70b3e",
    "templateCredsSetupCompleted": true
  },
  "name": "👷‍♂️ Taxi Booking Worker",
  "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": "Flow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -1260,
        460
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "1b8a96ec-cc09-4885-b69a-61a2190beda9",
      "name": "Input",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        460
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0c50f860-421f-4d32-9089-bd2b718fa73e",
      "name": "Test Trigger",
      "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": "Test Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        660
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "390caf9e-f5fa-4d51-9f15-522d6d5d45a4",
      "name": "Reset Session",
      "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": "Error Output",
      "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": "Définir Open Booking",
      "type": "n8n-nodes-base.postgres",
      "position": [
        160,
        420
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.6
    },
    {
      "id": "3a2c6c89-8d53-45db-aa2d-2f70cb580bab",
      "name": "Save User Mémoire",
      "type": "n8n-nodes-base.postgres",
      "onError": "continueRegularOutput",
      "position": [
        160,
        120
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.6
    },
    {
      "id": "ab45dbcd-a74f-47cc-ab25-0c2ac6a50e00",
      "name": "Delete Route Data",
      "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": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1560,
        380
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3bf589c1-7a1d-4504-bec7-df70f4f3668a",
      "name": "Note adhésive6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "93c823d5-1ad2-4743-9ed1-d0bb6278866b",
      "name": "Delete Provider Number",
      "type": "n8n-nodes-base.redis",
      "position": [
        620,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b994d4c4-10d9-43ef-9694-5b32057e896a",
      "name": "If Booking",
      "type": "n8n-nodes-base.if",
      "position": [
        -60,
        440
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b1cccdfa-a979-46aa-9050-5c65ccfac616",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1000,
        340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "83d2cf67-d1d4-48eb-9c1b-f3f1bf970fde",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d918ae55-79fd-4b54-b17c-7727ee1822ff",
      "name": "Note adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0a2ad84b-0ba5-4908-9507-ce5fbfedcdcf",
      "name": "Note adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        1440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "28956579-be67-4e85-b3c1-89baecc3cf63",
      "name": "If Not Zero",
      "type": "n8n-nodes-base.if",
      "position": [
        -760,
        460
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a086bbc0-518f-4092-9593-99f265d9eea0",
      "name": "Note adhésive5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b67e9916-c152-4fba-8483-cdf6fd91aad1",
      "name": "Cancel Output",
      "type": "n8n-nodes-base.set",
      "notes": "Cancelled",
      "position": [
        600,
        1160
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "d82f253f-49ae-4be6-aa7b-1879b4cfc3ba",
      "name": "Reset Session 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": "Commutateur",
      "type": "n8n-nodes-base.switch",
      "position": [
        1060,
        580
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "3bfcd450-1b62-4066-bb47-59d75c6482b1",
      "name": "English",
      "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": "Chinese",
      "type": "n8n-nodes-base.set",
      "notes": "預約完成。",
      "position": [
        1360,
        440
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "dedb94f8-af0c-4c6a-abcc-d635c5749c3e",
      "name": "Japanese",
      "type": "n8n-nodes-base.set",
      "notes": "予約が完了いたしました。",
      "position": [
        1360,
        640
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "f35dca5c-af89-4cc1-be3e-52c4a61c7d3a",
      "name": "Booking",
      "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": "Attendre Call Back",
      "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": "Attendre Output",
      "type": "n8n-nodes-base.set",
      "notes": "Please wait",
      "position": [
        -600,
        240
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "226c4054-a28d-45a6-84f3-b58475b11b58",
      "name": "Note adhésive7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c826d4df-53ff-4805-bf7d-dfec8250e3d0",
      "name": "Create Event",
      "type": "n8n-nodes-base.googleCalendar",
      "notes": "DEMO",
      "position": [
        360,
        660
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.3
    },
    {
      "id": "97e9082d-9f22-4214-86ea-56f600684eb1",
      "name": "Call Back",
      "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": "Delete Chat Mémoire",
      "type": "n8n-nodes-base.postgres",
      "disabled": true,
      "position": [
        1080,
        120
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2.6
    },
    {
      "id": "64ba4973-a772-411c-b05e-6f0b5c4a285f",
      "name": "Sync Booking Google Cal",
      "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": {
    "1b8a96ec-cc09-4885-b69a-61a2190beda9": {
      "main": [
        [
          {
            "node": "28956579-be67-4e85-b3c1-89baecc3cf63",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "8947e45e-00e0-4754-a18e-2636b2d03f99",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8947e45e-00e0-4754-a18e-2636b2d03f99",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8947e45e-00e0-4754-a18e-2636b2d03f99",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "dedb94f8-af0c-4c6a-abcc-d635c5749c3e",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "3bfcd450-1b62-4066-bb47-59d75c6482b1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f35dca5c-af89-4cc1-be3e-52c4a61c7d3a": {
      "main": [
        [
          {
            "node": "b994d4c4-10d9-43ef-9694-5b32057e896a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8947e45e-00e0-4754-a18e-2636b2d03f99": {
      "main": [
        [
          {
            "node": "97e9082d-9f22-4214-86ea-56f600684eb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3bfcd450-1b62-4066-bb47-59d75c6482b1": {
      "main": [
        [
          {
            "node": "97e9082d-9f22-4214-86ea-56f600684eb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "dedb94f8-af0c-4c6a-abcc-d635c5749c3e": {
      "main": [
        [
          {
            "node": "97e9082d-9f22-4214-86ea-56f600684eb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b994d4c4-10d9-43ef-9694-5b32057e896a": {
      "main": [
        [
          {
            "node": "Set Open Booking",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "71697b96-b3f7-4b05-bfad-927187c5dc17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "28956579-be67-4e85-b3c1-89baecc3cf63": {
      "main": [
        [
          {
            "node": "Wait Output",
            "type": "main",
            "index": 0
          },
          {
            "node": "f35dca5c-af89-4cc1-be3e-52c4a61c7d3a",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "d82f253f-49ae-4be6-aa7b-1879b4cfc3ba",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6bb4d7ba-3328-4372-9e39-05c45e558044": {
      "main": [
        [
          {
            "node": "1b8a96ec-cc09-4885-b69a-61a2190beda9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Output": {
      "main": [
        [
          {
            "node": "Wait Call Back",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c826d4df-53ff-4805-bf7d-dfec8250e3d0": {
      "main": [
        [
          {
            "node": "64ba4973-a772-411c-b05e-6f0b5c4a285f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "71697b96-b3f7-4b05-bfad-927187c5dc17": {
      "main": [
        [
          {
            "node": "97e9082d-9f22-4214-86ea-56f600684eb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9144f720-4cca-49f0-b658-8027d15cc109": {
      "main": [
        [
          {
            "node": "1b8a96ec-cc09-4885-b69a-61a2190beda9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0c50f860-421f-4d32-9089-bd2b718fa73e": {
      "main": [
        [
          {
            "node": "6bb4d7ba-3328-4372-9e39-05c45e558044",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b67e9916-c152-4fba-8483-cdf6fd91aad1": {
      "main": [
        [
          {
            "node": "97e9082d-9f22-4214-86ea-56f600684eb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "390caf9e-f5fa-4d51-9f15-522d6d5d45a4": {
      "main": [
        [
          {
            "node": "93c823d5-1ad2-4743-9ed1-d0bb6278866b",
            "type": "main",
            "index": 0
          },
          {
            "node": "ab45dbcd-a74f-47cc-ab25-0c2ac6a50e00",
            "type": "main",
            "index": 0
          },
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d82f253f-49ae-4be6-aa7b-1879b4cfc3ba": {
      "main": [
        [
          {
            "node": "b67e9916-c152-4fba-8483-cdf6fd91aad1",
            "type": "main",
            "index": 0
          },
          {
            "node": "93c823d5-1ad2-4743-9ed1-d0bb6278866b",
            "type": "main",
            "index": 0
          },
          {
            "node": "ab45dbcd-a74f-47cc-ab25-0c2ac6a50e00",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Open Booking": {
      "main": [
        [
          {
            "node": "390caf9e-f5fa-4d51-9f15-522d6d5d45a4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Save User Memory",
            "type": "main",
            "index": 0
          },
          {
            "node": "c826d4df-53ff-4805-bf7d-dfec8250e3d0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Avancé

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Avancé
Nombre de nœuds33
Catégorie-
Types de nœuds10
Description de la difficulté

Adapté aux utilisateurs avancés, avec des workflows complexes contenant 16+ nœuds

Auteur
ChatPayLabs

ChatPayLabs

@chatpaylabs

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

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34