{
  "updatedAt": "2026-04-15T19:40:16.492Z",
  "createdAt": "2026-04-15T19:40:16.492Z",
  "id": "Z6NNFryayhZnT9Xd",
  "name": "EN \u2014 Onboarding Status Check",
  "description": null,
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "httpMethod": "GET",
        "path": "en-onboard-status",
        "responseMode": "responseNode",
        "options": {
          "allowedOrigins": "*"
        }
      },
      "id": "status-wh-0001-0001-0001-000000000001",
      "name": "Status Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        240,
        300
      ],
      "webhookId": "en-onboard-status"
    },
    {
      "parameters": {
        "operation": "read",
        "documentId": {
          "__rl": true,
          "value": "1MoX5uy7wYWAWW04zR-gj1-iwVQUDzqsvEUkLX7tdYww",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "options": {}
      },
      "id": "status-sheets-0002-0002-0002-000000000002",
      "name": "Read LIDs Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        500,
        300
      ],
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "OhjizsinSISmx4Gl",
          "name": "Google Sheets OAuth2 API"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const lid = $('Status Webhook').first().json.query.lid || '';\n\nif (!lid) {\n  return [{ json: { submitted: false, error: 'no lid' } }];\n}\n\nconst rows = $input.all();\nconst match = rows.find(r => (r.json['Location ID'] || '').trim() === lid.trim());\n\nif (match) {\n  return [{ json: { submitted: true, status: 'done' } }];\n}\nreturn [{ json: { submitted: false } }];"
      },
      "id": "status-code-0003-0003-0003-000000000003",
      "name": "Check LID",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        760,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              }
            ]
          }
        }
      },
      "id": "status-resp-0004-0004-0004-000000000004",
      "name": "Respond",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1020,
        300
      ]
    }
  ],
  "connections": {
    "Status Webhook": {
      "main": [
        [
          {
            "node": "Read Queue Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check LID": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read LIDs Sheet": {
      "main": [
        [
          {
            "node": "Check LID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": false
  },
  "staticData": null,
  "meta": null,
  "pinData": null,
  "versionId": "8b8c9cc4-48e7-4211-add3-2da00271767f",
  "activeVersionId": "8b8c9cc4-48e7-4211-add3-2da00271767f",
  "versionCounter": 3,
  "triggerCount": 1,
  "shared": [
    {
      "updatedAt": "2026-04-15T19:40:16.494Z",
      "createdAt": "2026-04-15T19:40:16.494Z",
      "role": "workflow:owner",
      "workflowId": "Z6NNFryayhZnT9Xd",
      "projectId": "91dLj8Hg37i136qG",
      "project": {
        "updatedAt": "2026-03-22T06:53:28.112Z",
        "createdAt": "2026-02-12T18:32:53.056Z",
        "id": "91dLj8Hg37i136qG",
        "name": "Bryce Folsom <bfolsom@emersonnorth.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "17d3676f-3e74-4586-8363-5c1f4d237ed7"
      }
    }
  ],
  "tags": [],
  "activeVersion": {
    "updatedAt": "2026-04-15T19:40:16.526Z",
    "createdAt": "2026-04-15T19:40:16.526Z",
    "versionId": "8b8c9cc4-48e7-4211-add3-2da00271767f",
    "workflowId": "Z6NNFryayhZnT9Xd",
    "nodes": [
      {
        "parameters": {
          "httpMethod": "GET",
          "path": "en-onboard-status",
          "responseMode": "responseNode",
          "options": {
            "allowedOrigins": "*"
          }
        },
        "id": "status-wh-0001-0001-0001-000000000001",
        "name": "Status Webhook",
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 2,
        "position": [
          240,
          300
        ],
        "webhookId": "en-onboard-status"
      },
      {
        "parameters": {
          "operation": "read",
          "documentId": {
            "__rl": true,
            "value": "1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k",
            "mode": "id"
          },
          "sheetName": {
            "__rl": true,
            "value": "gid=0",
            "mode": "list",
            "cachedResultName": "Sheet1"
          },
          "options": {}
        },
        "id": "status-sheets-0002-0002-0002-000000000002",
        "name": "Read Queue Sheet",
        "type": "n8n-nodes-base.googleSheets",
        "typeVersion": 4.5,
        "position": [
          500,
          300
        ],
        "credentials": {
          "googleSheetsOAuth2Api": {
            "id": "OhjizsinSISmx4Gl",
            "name": "Google Sheets OAuth2 API"
          }
        }
      },
      {
        "parameters": {
          "jsCode": "const lid = $('Status Webhook').first().json.query.lid || '';\n\nif (!lid) {\n  return [{ json: { submitted: false, error: 'no lid' } }];\n}\n\nconst rows = $input.all();\nconst match = rows.find(r => (r.json['Location ID'] || '').trim() === lid.trim());\n\nif (match) {\n  return [{ json: { submitted: true, status: match.json['Status'] || 'unknown' } }];\n}\nreturn [{ json: { submitted: false } }];"
        },
        "id": "status-code-0003-0003-0003-000000000003",
        "name": "Check LID",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          760,
          300
        ]
      },
      {
        "parameters": {
          "respondWith": "json",
          "responseBody": "={{ JSON.stringify($json) }}",
          "options": {
            "responseHeaders": {
              "entries": [
                {
                  "name": "Access-Control-Allow-Origin",
                  "value": "*"
                }
              ]
            }
          }
        },
        "id": "status-resp-0004-0004-0004-000000000004",
        "name": "Respond",
        "type": "n8n-nodes-base.respondToWebhook",
        "typeVersion": 1.1,
        "position": [
          1020,
          300
        ]
      }
    ],
    "connections": {
      "Status Webhook": {
        "main": [
          [
            {
              "node": "Read Queue Sheet",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Read Queue Sheet": {
        "main": [
          [
            {
              "node": "Check LID",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Check LID": {
        "main": [
          [
            {
              "node": "Respond",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "authors": "Bryce Folsom",
    "name": null,
    "description": null,
    "autosaved": false,
    "workflowPublishHistory": [
      {
        "createdAt": "2026-04-15T19:40:25.619Z",
        "id": 713,
        "workflowId": "Z6NNFryayhZnT9Xd",
        "versionId": "8b8c9cc4-48e7-4211-add3-2da00271767f",
        "event": "activated",
        "userId": "17d3676f-3e74-4586-8363-5c1f4d237ed7"
      }
    ]
  }
}