{
  "id": "K6ShYfA0txKBSVnC",
  "name": "AI-powered fleet telemetry triage with safety compliance and routing",
  "tags": [],
  "nodes": [
    {
      "id": "5518ea34-2e3a-4f58-bb95-855f9f4dc5dd",
      "name": "Receive Vehicle Telemetry",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        784
      ],
      "parameters": {
        "path": "fleet-telemetry",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2.1
    },
    {
      "id": "c2461e31-86dc-4223-97fa-caacd3d50683",
      "name": "Telemetry Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        784
      ],
      "parameters": {
        "text": "={{ $json.body }}",
        "options": {
          "systemMessage": "You are a Telemetry Validation Agent for fleet vehicle health monitoring. Analyze incoming vehicle telemetry data containing health metrics, fault codes, and usage signals. Validate data integrity, classify fault severity (CRITICAL, HIGH, MEDIUM, LOW), identify safety-critical issues, and flag anomalies. Never issue control commands. Output structured validation results with fault classifications and recommended actions."
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 3.1
    },
    {
      "id": "736b522f-4d79-47c0-ab22-8b386d4e98d3",
      "name": "Validation Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        368,
        1008
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "id",
          "value": "gpt-4o"
        },
        "options": {
          "temperature": 0.2
        },
        "builtInTools": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "ec6639e5-b147-4049-a6bc-33ec35fcd0fd",
      "name": "Validation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        576,
        1008
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"validationStatus\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"enum\": [\"VALID\", \"INVALID\", \"ANOMALY\"]\n\t\t},\n\t\t\"faultSeverity\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"enum\": [\"CRITICAL\", \"HIGH\", \"MEDIUM\", \"LOW\", \"NONE\"]\n\t\t},\n\t\t\"safetyCritical\": {\n\t\t\t\"type\": \"boolean\"\n\t\t},\n\t\t\"faultCodes\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t}\n\t\t},\n\t\t\"healthScore\": {\n\t\t\t\"type\": \"number\"\n\t\t},\n\t\t\"recommendedAction\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"anomalies\": {\n\t\t\t\"type\": \"array\",\n\t\t\t\"items\": {\n\t\t\t\t\"type\": \"string\"\n\t\t\t}\n\t\t}\n\t},\n\t\"required\": [\"validationStatus\", \"faultSeverity\", \"safetyCritical\", \"recommendedAction\"]\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "54a33c45-01f3-456d-a7ee-38617c3b3389",
      "name": "Fleet Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1376,
        784
      ],
      "parameters": {
        "text": "={{ $json }}",
        "options": {
          "systemMessage": "You are a Fleet Orchestration Agent coordinating service actions, customer notifications, and compliance escalation for vehicle fleet management. Based on validated telemetry and fault analysis, determine appropriate service scheduling, customer communication strategies, and regulatory compliance actions. Use your sub-agents for safety compliance analysis and service scheduling. Never issue real-time vehicle control commands. Focus on coordination, notification, and traceability."
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 3.1
    },
    {
      "id": "f9559d00-f1b1-4360-93a3-3affc2d3057c",
      "name": "Orchestration Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        784,
        1216
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "id",
          "value": "gpt-4o"
        },
        "options": {
          "temperature": 0.3
        },
        "builtInTools": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "286b1742-1a8d-48dd-aa55-db25d7eb5c31",
      "name": "Orchestration Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        944,
        1216
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"serviceAction\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"enum\": [\"IMMEDIATE_SERVICE\", \"SCHEDULED_SERVICE\", \"MONITOR\", \"NO_ACTION\"]\n\t\t},\n\t\t\"servicePriority\": {\n\t\t\t\"type\": \"string\",\n\t\t\t\"enum\": [\"URGENT\", \"HIGH\", \"NORMAL\", \"LOW\"]\n\t\t},\n\t\t\"customerNotification\": {\n\t\t\t\"type\": \"object\",\n\t\t\t\"properties\": {\n\t\t\t\t\"required\": {\n\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t},\n\t\t\t\t\"channel\": {\n\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\"enum\": [\"EMAIL\", \"SLACK\", \"BOTH\"]\n\t\t\t\t},\n\t\t\t\t\"message\": {\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"complianceEscalation\": {\n\t\t\t\"type\": \"boolean\"\n\t\t},\n\t\t\"complianceDetails\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"scheduledDate\": {\n\t\t\t\"type\": \"string\"\n\t\t}\n\t},\n\t\"required\": [\"serviceAction\", \"servicePriority\", \"customerNotification\", \"complianceEscalation\"]\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "fcad5488-d4bc-404a-b924-e7516f30bf50",
      "name": "Safety Threshold Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1104,
        1216
      ],
      "parameters": {
        "jsCode": "const faultSeverity = $fromAI(\"faultSeverity\", \"The fault severity level\", \"string\");\nconst healthScore = $fromAI(\"healthScore\", \"Vehicle health score 0-100\", \"number\");\nconst faultCodes = $fromAI(\"faultCodes\", \"Array of fault codes\", \"array\");\n\nconst criticalThreshold = 30;\nconst highThreshold = 50;\n\nlet riskScore = 100 - healthScore;\nif (faultSeverity === \"CRITICAL\") riskScore += 50;\nelse if (faultSeverity === \"HIGH\") riskScore += 30;\nelse if (faultSeverity === \"MEDIUM\") riskScore += 15;\n\nconst exceedsThreshold = riskScore > criticalThreshold;\nconst requiresImmediateAction = riskScore > highThreshold;\n\nreturn { riskScore, exceedsThreshold, requiresImmediateAction, threshold: criticalThreshold };",
        "description": "Calculates safety thresholds and risk scores based on telemetry data, fault codes, and vehicle usage patterns"
      },
      "typeVersion": 1.3
    },
    {
      "id": "a378a3eb-f329-4857-a56d-86e3ffa645f1",
      "name": "Safety Compliance Sub-Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1232,
        1216
      ],
      "parameters": {
        "text": "={{ $fromAI('telemetryData', 'The validated telemetry and fault data to analyze for compliance') }}",
        "options": {
          "systemMessage": "You are a Safety Compliance Specialist for fleet vehicle management. Analyze fault data and telemetry to identify safety compliance violations, regulatory reporting requirements (NHTSA, DOT, etc.), and mandatory escalation scenarios. Determine if incidents require regulatory notification, recall assessment, or safety bulletins. Provide compliance recommendations and traceability requirements."
        }
      },
      "typeVersion": 3
    },
    {
      "id": "c4fb413c-670c-415e-b888-91fd51824b84",
      "name": "Safety Compliance Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1312,
        1424
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "id",
          "value": "gpt-4o"
        },
        "options": {
          "temperature": 0.1
        },
        "builtInTools": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "9f9704c3-eaef-46c4-b285-8fbc347acf44",
      "name": "Service Scheduling Sub-Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1520,
        1216
      ],
      "parameters": {
        "text": "={{ $fromAI('serviceRequest', 'The service action request with fault details and priority level') }}",
        "options": {
          "systemMessage": "You are a Service Scheduling Specialist for fleet maintenance operations. Analyze fault data, vehicle usage patterns, and service history to determine optimal service timing, prioritization, and resource allocation. Consider fleet capacity, parts availability, and operational impact. Recommend service windows, urgency levels, and maintenance strategies."
        },
        "toolDescription": "Determines optimal service scheduling, prioritization, and maintenance planning based on fault severity, vehicle usage, and fleet capacity"
      },
      "typeVersion": 3
    },
    {
      "id": "57fe1dc5-cf0a-48d2-82aa-638f867f966e",
      "name": "Service Scheduling Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1600,
        1424
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "id",
          "value": "gpt-4o"
        },
        "options": {
          "temperature": 0.3
        },
        "builtInTools": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "0224cb25-3b52-46d0-b959-98f846233287",
      "name": "Customer Email Notification Tool",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1808,
        1216
      ],
      "parameters": {
        "sendTo": "={{ $fromAI('recipientEmail', 'Customer email address', 'string') }}",
        "message": "={{ $fromAI('emailBody', 'Email message content', 'string') }}",
        "options": {},
        "subject": "={{ $fromAI('emailSubject', 'Email subject line', 'string') }}",
        "descriptionType": "manual",
        "toolDescription": "Sends email notifications to vehicle owners about service requirements, safety alerts, and maintenance schedules"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b8f6950a-86a2-4f0f-a85b-8594af8349a0",
      "name": "Fleet Operations Alert Tool",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        1952,
        1296
      ],
      "parameters": {
        "text": "={{ $fromAI('alertMessage', 'Alert message content', 'string') }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $fromAI('slackChannel', 'Slack channel ID or name', 'string') }}"
        },
        "otherOptions": {},
        "authentication": "oAuth2",
        "descriptionType": "manual",
        "toolDescription": "Sends real-time alerts to fleet operations team via Slack for urgent service needs and safety-critical issues"
      },
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.4
    },
    {
      "id": "67102807-210e-4c45-9a70-bea836e784b3",
      "name": "Fleet Management API Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        2128,
        1328
      ],
      "parameters": {
        "url": "={{ $fromAI('apiUrl', 'The API endpoint URL to call', 'string') }}",
        "method": "={{ $fromAI('httpMethod', 'HTTP method (GET, POST, PUT, DELETE)', 'string', 'GET') }}",
        "options": {},
        "toolDescription": "Makes HTTP requests to external fleet management systems for vehicle history, service records, and compliance databases"
      },
      "typeVersion": 4.4
    },
    {
      "id": "8006a3aa-1e71-4715-9848-23a0cc542fa2",
      "name": "Route by Service Priority",
      "type": "n8n-nodes-base.switch",
      "position": [
        2352,
        816
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.servicePriority }}",
                    "rightValue": "URGENT"
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.servicePriority }}",
                    "rightValue": "HIGH"
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.servicePriority }}",
                    "rightValue": "NORMAL"
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "leftValue": "",
                  "caseSensitive": true
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.servicePriority }}",
                    "rightValue": "LOW"
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.4
    },
    {
      "id": "dd3f4450-cb38-4146-8dc7-8be019e9b063",
      "name": "Urgent Service API Call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2576,
        560
      ],
      "parameters": {
        "url": "<__PLACEHOLDER_VALUE__urgent_service_api_endpoint__>",
        "method": "POST",
        "options": {
          "timeout": 30000
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "serviceAction",
              "value": "={{ $json.output.serviceAction }}"
            },
            {
              "name": "servicePriority",
              "value": "={{ $json.output.servicePriority }}"
            },
            {
              "name": "scheduledDate",
              "value": "={{ $json.output.scheduledDate }}"
            },
            {
              "name": "complianceEscalation",
              "value": "={{ $json.output.complianceEscalation }}"
            }
          ]
        }
      },
      "typeVersion": 4.4
    },
    {
      "id": "2f4d36d3-3070-4d31-a45c-823ac4ef5c85",
      "name": "Prepare High Priority Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        752
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-1",
              "name": "priority",
              "type": "string",
              "value": "HIGH"
            },
            {
              "id": "id-2",
              "name": "serviceType",
              "type": "string",
              "value": "={{ $json.serviceAction }}"
            },
            {
              "id": "id-3",
              "name": "scheduledDate",
              "type": "string",
              "value": "={{ $json.scheduledDate }}"
            },
            {
              "id": "id-4",
              "name": "notificationSent",
              "type": "boolean",
              "value": "={{ $json.customerNotification.required }}"
            },
            {
              "id": "id-5",
              "name": "timestamp",
              "type": "string",
              "value": "={{ $now.toISO() }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "a049ec66-007e-4b3f-aa54-370ede16e9bd",
      "name": "Prepare Normal Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        944
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-1",
              "name": "priority",
              "type": "string",
              "value": "NORMAL"
            },
            {
              "id": "id-2",
              "name": "serviceType",
              "type": "string",
              "value": "={{ $json.serviceAction }}"
            },
            {
              "id": "id-3",
              "name": "scheduledDate",
              "type": "string",
              "value": "={{ $json.scheduledDate }}"
            },
            {
              "id": "id-4",
              "name": "notificationSent",
              "type": "boolean",
              "value": "={{ $json.customerNotification.required }}"
            },
            {
              "id": "id-5",
              "name": "timestamp",
              "type": "string",
              "value": "={{ $now.toISO() }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fea448ab-180d-4ea6-9388-9cdbebd94a4e",
      "name": "Prepare Low Priority Service",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        1136
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-1",
              "name": "priority",
              "type": "string",
              "value": "LOW"
            },
            {
              "id": "id-2",
              "name": "serviceType",
              "type": "string",
              "value": "={{ $json.serviceAction }}"
            },
            {
              "id": "id-3",
              "name": "scheduledDate",
              "type": "string",
              "value": "={{ $json.scheduledDate }}"
            },
            {
              "id": "id-4",
              "name": "notificationSent",
              "type": "boolean",
              "value": "={{ $json.customerNotification.required }}"
            },
            {
              "id": "id-5",
              "name": "timestamp",
              "type": "string",
              "value": "={{ $now.toISO() }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "15a66a66-37e3-4df2-aa91-43b9ce66cb17",
      "name": "Check Compliance Escalation",
      "type": "n8n-nodes-base.if",
      "position": [
        2352,
        1200
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "id-1",
              "operator": {
                "type": "boolean",
                "operation": "true"
              },
              "leftValue": "={{ $json.complianceEscalation }}"
            }
          ]
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "8b19b680-dd78-4918-9804-bc1ca12cf038",
      "name": "Prepare Compliance Report",
      "type": "n8n-nodes-base.set",
      "position": [
        2576,
        1328
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-1",
              "name": "reportType",
              "type": "string",
              "value": "COMPLIANCE_ESCALATION"
            },
            {
              "id": "id-2",
              "name": "complianceDetails",
              "type": "string",
              "value": "={{ $json.complianceDetails }}"
            },
            {
              "id": "id-3",
              "name": "faultSeverity",
              "type": "string",
              "value": "={{ $('Telemetry Validation Agent').item.json.output.faultSeverity }}"
            },
            {
              "id": "id-4",
              "name": "safetyCritical",
              "type": "boolean",
              "value": "={{ $('Telemetry Validation Agent').item.json.output.safetyCritical }}"
            },
            {
              "id": "id-5",
              "name": "timestamp",
              "type": "string",
              "value": "={{ $now.toISO() }}"
            },
            {
              "id": "id-6",
              "name": "vehicleId",
              "type": "string",
              "value": "={{ $('Receive Vehicle Telemetry').item.json.body.vehicleId }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3f4536f5-ac44-405d-bc83-999c9a54bf90",
      "name": "Log Safety Traceability",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2800,
        832
      ],
      "parameters": {
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "5f97a9f7-6e20-4e2c-9552-cfe370f3379c",
      "name": "Log Compliance Escalation",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2800,
        1328
      ],
      "parameters": {
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.7
    },
    {
      "id": "ee3be083-86d9-4de7-ae55-2b96a3f3a459",
      "name": "Send Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3024,
        1040
      ],
      "parameters": {
        "options": {},
        "respondWith": "json",
        "responseBody": "={\n  \"status\": \"processed\",\n  \"validationStatus\": \"={{ $('Telemetry Validation Agent').item.json.output.validationStatus }}\",\n  \"faultSeverity\": \"={{ $('Telemetry Validation Agent').item.json.output.faultSeverity }}\",\n  \"serviceAction\": \"={{ $('Fleet Orchestration Agent').item.json.output.serviceAction }}\",\n  \"servicePriority\": \"={{ $('Fleet Orchestration Agent').item.json.output.servicePriority }}\",\n  \"complianceEscalation\": \"={{ $('Fleet Orchestration Agent').item.json.output.complianceEscalation }}\",\n  \"traceabilityLogged\": true,\n  \"message\": \"Vehicle telemetry processed successfully. No control commands issued.\"\n}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "203dcba6-49f2-4af7-b00b-da27661e0f76",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        176
      ],
      "parameters": {
        "color": 6,
        "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 alerts by severity\n## Customisation\n- Swap OpenAI for any LangChain-compatible model\n## Benefits\n- Eliminates manual telemetry triage, reducing response lag"
      },
      "typeVersion": 1
    },
    {
      "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 Customer Email Notification Tool.\n4. Link Google Sheets credentials; set target sheet IDs for Safety Traceability and Compliance Escalation logs.\n5. Configure the Fleet Management API Tool and Urgent Service API Call with your fleet service endpoint URLs.\n6. Set safety threshold values in the Safety Threshold Calculator node."
      },
      "typeVersion": 1
    },
    {
      "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-volume vehicle telemetry data, a process prone to delays, missed safety thresholds, and inconsistent service prioritisation. Incoming vehicle telemetry is received via webhook and validated by a Telemetry Validation Agent using an AI model and output parser. Validated data is passed to a Fleet Orchestration Agent that coordinates three specialist sub-agents: a Safety Compliance Sub-Agent (checking thresholds and escalating breaches), a Service Scheduling Sub-Agent (optimising maintenance windows), and a Customer Email Notification Tool. The orchestrator then routes each case by service priority, namely: urgent, high, normal, or low, triggering the appropriate service preparation step and logging traceability data to Google Sheets. Compliance escalations follow a parallel path: checking status, preparing reports, and logging to Sheets. All branches converge into a unified webhook response, ensuring downstream systems receive a consistent, structured reply."
      },
      "typeVersion": 1
    },
    {
      "id": "f7f397b5-a1c0-4e6f-9f5a-59cb4eda758b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        992
      ],
      "parameters": {
        "color": 7,
        "width": 1504,
        "height": 656,
        "content": "## Safety Compliance & Service Scheduling Sub-Agents\n**Why** \u2014 Detects threshold breaches to trigger escalation and optimises maintenance scheduling to minimise fleet downtime."
      },
      "typeVersion": 1
    },
    {
      "id": "3e4376e7-5405-4744-ac01-a9ab0d293458",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        624
      ],
      "parameters": {
        "color": 7,
        "width": 1104,
        "height": 336,
        "content": "## Fleet Orchestration Agent\n**Why** \u2014 Central coordinator that delegates tasks to specialised sub-agents for parallel processing."
      },
      "typeVersion": 1
    },
    {
      "id": "ddfcc11b-09ee-4ccd-a080-aa270696d736",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        624
      ],
      "parameters": {
        "color": 7,
        "width": 544,
        "height": 608,
        "content": "## Telemetry Validation Agent\n**Why** \u2014 AI validates data integrity before orchestration to prevent bad data propagation."
      },
      "typeVersion": 1
    },
    {
      "id": "db731db8-1d39-4471-8738-15a322a4a073",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        608
      ],
      "parameters": {
        "color": 7,
        "height": 1040,
        "content": "## Route by Service Priority\n**Why** \u2014 Rules-based routing ensures urgent cases receive immediate attention."
      },
      "typeVersion": 1
    },
    {
      "id": "9d042308-e142-4ddd-8350-a942482df23e",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        432
      ],
      "parameters": {
        "color": 7,
        "width": 672,
        "height": 1376,
        "content": "## Log Safety Traceability / Log Compliance Escalation and Response\n**Why** \u2014 Google Sheets logging maintains auditable records for regulatory compliance.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "binaryMode": "separate",
    "executionOrder": "v1"
  },
  "versionId": "6ba811f8-7d64-49a3-b0c3-0eb71ef418c0",
  "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
          }
        ]
      ]
    }
  }
}