{
  "name": "Triage fleet telemetry and route safety compliance with GPT-4o, Gmail and Sheets",
  "nodes": [
    {
      "id": "5518ea34-2e3a-4f58-bb95-855f9f4dc5dd",
      "name": "Receive Vehicle Telemetry",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        784
      ]
    },
    {
      "id": "c2461e31-86dc-4223-97fa-caacd3d50683",
      "name": "Telemetry Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        784
      ]
    },
    {
      "id": "736b522f-4d79-47c0-ab22-8b386d4e98d3",
      "name": "Validation Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        368,
        1008
      ]
    },
    {
      "id": "ec6639e5-b147-4049-a6bc-33ec35fcd0fd",
      "name": "Validation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        576,
        1008
      ]
    },
    {
      "id": "54a33c45-01f3-456d-a7ee-38617c3b3389",
      "name": "Fleet Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1376,
        784
      ]
    },
    {
      "id": "f9559d00-f1b1-4360-93a3-3affc2d3057c",
      "name": "Orchestration Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        784,
        1216
      ]
    },
    {
      "id": "286b1742-1a8d-48dd-aa55-db25d7eb5c31",
      "name": "Orchestration Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        944,
        1216
      ]
    },
    {
      "id": "fcad5488-d4bc-404a-b924-e7516f30bf50",
      "name": "Safety Threshold Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1104,
        1216
      ]
    },
    {
      "id": "a378a3eb-f329-4857-a56d-86e3ffa645f1",
      "name": "Safety Compliance Sub-Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1232,
        1216
      ]
    },
    {
      "id": "c4fb413c-670c-415e-b888-91fd51824b84",
      "name": "Safety Compliance Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1312,
        1424
      ]
    },
    {
      "id": "9f9704c3-eaef-46c4-b285-8fbc347acf44",
      "name": "Service Scheduling Sub-Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1520,
        1216
      ]
    },
    {
      "id": "57fe1dc5-cf0a-48d2-82aa-638f867f966e",
      "name": "Service Scheduling Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1600,
        1424
      ]
    },
    {
      "id": "0224cb25-3b52-46d0-b959-98f846233287",
      "name": "Customer Email Notification Tool",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1808,
        1216
      ]
    },
    {
      "id": "b8f6950a-86a2-4f0f-a85b-8594af8349a0",
      "name": "Fleet Operations Alert Tool",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        1952,
        1296
      ]
    },
    {
      "id": "67102807-210e-4c45-9a70-bea836e784b3",
      "name": "Fleet Management API Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        2128,
        1328
      ]
    },
    {
      "id": "8006a3aa-1e71-4715-9848-23a0cc542fa2",
      "name": "Route by Service Priority",
      "type": "n8n-nodes-base.switch",
      "position": [
        2352,
        816
      ]
    },
    {
      "id": "dd3f4450-cb38-4146-8dc7-8be019e9b063",
      "name": "Urgent Service API Call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2576,
        560
      ]
    },
    {
      "id": "2f4d36d3-3070-4d31-a45c-823ac4ef5c85",
      "name": "Prepare High Priority Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        752
      ]
    },
    {
      "id": "a049ec66-007e-4b3f-aa54-370ede16e9bd",
      "name": "Prepare Normal Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        944
      ]
    },
    {
      "id": "fea448ab-180d-4ea6-9388-9cdbebd94a4e",
      "name": "Prepare Low Priority Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        1136
      ]
    },
    {
      "id": "15a66a66-37e3-4df2-aa91-43b9ce66cb17",
      "name": "Check Compliance Escalation",
      "type": "n8n-nodes-base.if",
      "position": [
        2352,
        1200
      ]
    },
    {
      "id": "8b19b680-dd78-4918-9804-bc1ca12cf038",
      "name": "Prepare Compliance Report",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        1328
      ]
    },
    {
      "id": "3f4536f5-ac44-405d-bc83-999c9a54bf90",
      "name": "Log Safety Traceability",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2800,
        832
      ]
    },
    {
      "id": "5f97a9f7-6e20-4e2c-9552-cfe370f3379c",
      "name": "Log Compliance Escalation",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2800,
        1328
      ]
    },
    {
      "id": "ee3be083-86d9-4de7-ae55-2b96a3f3a459",
      "name": "Send Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3024,
        1040
      ]
    },
    {
      "id": "203dcba6-49f2-4af7-b00b-da27661e0f76",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        176
      ],
      "parameters": {
        "width": 352,
        "height": 384,
        "content": "## Prerequisites\n- OpenAI API key (or compatible LLM)\n- Gmail account with OAuth credentials\n- Google Sheets with log tabs pre-created\n## Use Cases\n- Logistics fleets auto-triaging vehicle fault alert"
      }
    },
    {
      "id": "6660bb33-4fe5-419c-a1b6-5780406e1925",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        240
      ],
      "parameters": {
        "width": 384,
        "height": 336,
        "content": "## Setup Steps\n1. Import workflow and configure the webhook trigger URL.\n2. Add AI model credentials to Validation Agent, Orchestration Agent, and both Sub-Agents.\n3. Connect Gmail credentials to the "
      }
    },
    {
      "id": "2d6b3d72-8f49-470e-b14b-1c9289558847",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        240
      ],
      "parameters": {
        "width": 640,
        "height": 336,
        "content": "## How It Works\nThis workflow automates intelligent fleet operations management for transport operators, logistics companies, and smart mobility teams. It solves the problem of manually triaging high-"
      }
    },
    {
      "id": "f7f397b5-a1c0-4e6f-9f5a-59cb4eda758b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        992
      ],
      "parameters": {
        "width": 1504,
        "height": 656,
        "content": "## Safety Compliance & Service Scheduling Sub-Agents\n**Why** — Detects threshold breaches to trigger escalation and optimises maintenance scheduling to minimise fleet downtime."
      }
    },
    {
      "id": "3e4376e7-5405-4744-ac01-a9ab0d293458",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        624
      ],
      "parameters": {
        "width": 1104,
        "height": 336,
        "content": "## Fleet Orchestration Agent\n**Why** — Central coordinator that delegates tasks to specialised sub-agents for parallel processing."
      }
    },
    {
      "id": "ddfcc11b-09ee-4ccd-a080-aa270696d736",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        624
      ],
      "parameters": {
        "width": 544,
        "height": 608,
        "content": "## Telemetry Validation Agent\n**Why** — AI validates data integrity before orchestration to prevent bad data propagation."
      }
    },
    {
      "id": "db731db8-1d39-4471-8738-15a322a4a073",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        608
      ],
      "parameters": {
        "width": null,
        "height": 1040,
        "content": "## Route by Service Priority\n**Why** — Rules-based routing ensures urgent cases receive immediate attention."
      }
    },
    {
      "id": "9d042308-e142-4ddd-8350-a942482df23e",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        432
      ],
      "parameters": {
        "width": 672,
        "height": 1376,
        "content": "## Log Safety Traceability / Log Compliance Escalation and Response\n**Why** — Google Sheets logging maintains auditable records for regulatory compliance.\n"
      }
    }
  ],
  "connections": {
    "Prepare Normal Service": {
      "main": [
        [
          {
            "node": "Log Safety Traceability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Telemetry Validation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Log Safety Traceability": {
      "main": [
        [
          {
            "node": "Send Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Safety Compliance Model": {
      "ai_languageModel": [
        [
          {
            "node": "Safety Compliance Sub-Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Urgent Service API Call": {
      "main": [
        [
          {
            "node": "Log Safety Traceability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Service Scheduling Model": {
      "ai_languageModel": [
        [
          {
            "node": "Service Scheduling Sub-Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Validation Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Telemetry Validation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fleet Management API Tool": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Fleet Orchestration Agent": {
      "main": [
        [
          {
            "node": "Route by Service Priority",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check Compliance Escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Compliance Escalation": {
      "main": [
        [
          {
            "node": "Send Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Orchestration Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Compliance Report": {
      "main": [
        [
          {
            "node": "Log Compliance Escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Vehicle Telemetry": {
      "main": [
        [
          {
            "node": "Telemetry Validation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Service Priority": {
      "main": [
        [
          {
            "node": "Urgent Service API Call",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare High Priority Service",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Normal Service",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Low Priority Service",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telemetry Validation Agent": {
      "main": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Compliance Escalation": {
      "main": [
        [
          {
            "node": "Prepare Compliance Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fleet Operations Alert Tool": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Orchestration Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Safety Compliance Sub-Agent": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Safety Threshold Calculator": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Low Priority Service": {
      "main": [
        [
          {
            "node": "Log Safety Traceability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Service Scheduling Sub-Agent": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare High Priority Service": {
      "main": [
        [
          {
            "node": "Log Safety Traceability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer Email Notification Tool": {
      "ai_tool": [
        [
          {
            "node": "Fleet Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}